| 1 |
% \iffalse meta-comment |
| 2 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 3 |
% venturis2.dtx |
| 4 |
% Additions and changes Copyright (C) 2008-2024 Clea F. Rees. |
| 5 |
% Code from skeleton.dtx Copyright (C) 2015-2024 Scott Pakin (see below). |
| 6 |
% |
| 7 |
% This work may be distributed and/or modified under the |
| 8 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 9 |
% of this license or (at your option) any later version. |
| 10 |
% The latest version of this license is in |
| 11 |
% https://www.latex-project.org/lppl.txt |
| 12 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 13 |
% version 2005/12/01 or later. |
| 14 |
% |
| 15 |
% This work has the LPPL maintenance status `maintained'. |
| 16 |
% |
| 17 |
% The Current Maintainer of this work is Clea F. Rees. |
| 18 |
% |
| 19 |
% This work consists of all files listed in manifest.txt. |
| 20 |
% |
| 21 |
% The file venturis2.dtx is a derived work under the terms of the |
| 22 |
% LPPL. It is based on version 2.4 of skeleton.dtx which is part of |
| 23 |
% dtxtut by Scott Pakin. A copy of dtxtut, including the |
| 24 |
% unmodified version of skeleton.dtx is available from |
| 25 |
% https://www.ctan.org/pkg/dtxtut and released under the LPPL. |
| 26 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 27 |
% \fi |
| 28 |
% |
| 29 |
% \iffalse |
| 30 |
%<*driver> |
| 31 |
\RequirePackage{svn-prov} |
| 32 |
% ref. ateb Max Chernoff: https://tex.stackexchange.com/a/723294/ |
| 33 |
\def\MakePrivateLetters{\makeatletter\ExplSyntaxOn\endlinechar13} |
| 34 |
\ProvidesFileSVN{$Id: venturis2.dtx 10366 2024-09-18 14:25:21Z cfrees $}[v2.0 \revinfo][\filebase DTX: Venturis ADF for 8-bit engines] |
| 35 |
\DefineFileInfoSVN[venturisii] |
| 36 |
\documentclass[11pt,british]{ltxdoc} |
| 37 |
% l3doc loads fancyvrb |
| 38 |
% fancyvrb overwrites svn-prov's macros without warning |
| 39 |
% restore \fileversion \filerev in case we're using l3doc |
| 40 |
\GetFileInfoSVN{venturisii} |
| 41 |
\newcommand* \pkgname{venturisadf} |
| 42 |
\EnableCrossrefs |
| 43 |
\CodelineIndex |
| 44 |
\RecordChanges |
| 45 |
\DoNotIndex{\verb,\ProvidesPackageSVN,\NeedsTeXFormat,\ProcessKeyOptions,\revinfo,\filebase,\filename,\filedate,\RequirePackage,\usepackage,\DefineFileInfoSVN,\GetFileInfoSVN,\ProvidesPackageSVN,\documentclass,\MakeAutoQuote,\parindent,\par,\smallskip,\setlength,\bigskip,\maketitle,\title,\author,\date,\ExplSyntaxOn,\ExplSyntaxOff,\gdef,\relax,\tempf,\temps,\tempo,\tempr,} |
| 46 |
\usepackage{babel} |
| 47 |
\pdfmapfile{-yvt.map} |
| 48 |
\pdfmapfile{-yv1.map} |
| 49 |
\pdfmapfile{-yv2.map} |
| 50 |
\pdfmapfile{-yv3.map} |
| 51 |
\pdfmapfile{-yvo.map} |
| 52 |
\pdfmapfile{+yvt.map} |
| 53 |
\pdfmapfile{+yv1.map} |
| 54 |
\pdfmapfile{+yv2.map} |
| 55 |
\pdfmapfile{+yv3.map} |
| 56 |
\pdfmapfile{+yvo.map} |
| 57 |
\usepackage{venturis} |
| 58 |
% The following commands are only necessary to enable access to all the fonts in the collection in the same document. |
| 59 |
% Normally, one would load venturis2 or venturisold rather than defining things explicitly. |
| 60 |
% But those packages will overwrite the declarations in venturis so aren't an option in this peculiar context. |
| 61 |
% (It is assumed that in ordinary usage, only one of the serif/sans-serif combinations provided by venturis and venturis2 or the serif offered by venturisold will be wanted in a single document.) |
| 62 |
\DeclareRobustCommand{\venturistworm}{% |
| 63 |
\fontencoding{T1}% |
| 64 |
\fontfamily{yv2}% |
| 65 |
\selectfont} |
| 66 |
\DeclareRobustCommand{\venturistwosf}{% |
| 67 |
\fontencoding{T1}% |
| 68 |
\fontfamily{yv3}% |
| 69 |
\selectfont} |
| 70 |
\DeclareRobustCommand{\venturisold}{% |
| 71 |
\fontencoding{T1}% |
| 72 |
\fontfamily{yvo}% |
| 73 |
\selectfont} |
| 74 |
\DeclareTextFontCommand{\vtworm}{\venturistworm} |
| 75 |
\DeclareTextFontCommand{\vtwosf}{\venturistwosf} |
| 76 |
\DeclareTextFontCommand{\vo}{\venturisold} |
| 77 |
\makeatletter |
| 78 |
\DeclareRobustCommand{\vostyle}[1][]{% |
| 79 |
\not@math@alphabet\vostyle\relax |
| 80 |
\fontfamily{yvod}\selectfont} |
| 81 |
\makeatother |
| 82 |
\DeclareTextFontCommand{\textvo}{\vostyle} |
| 83 |
\DeclareTextFontCommand{\textvol}{\vostyle} |
| 84 |
\DeclareRobustCommand{\lmrmfamily}{% |
| 85 |
\fontencoding{T1}% |
| 86 |
\fontfamily{lmr}% |
| 87 |
\selectfont} |
| 88 |
\DeclareTextFontCommand{\lmrm}{\lmrmfamily} |
| 89 |
\renewcommand{\ttdefault}{lmvtt} |
| 90 |
\usepackage{fancyhdr} |
| 91 |
\usepackage{fancyref} |
| 92 |
\usepackage{array} |
| 93 |
\usepackage{longtable} |
| 94 |
\usepackage{metalogo} |
| 95 |
\setlogokern{Te}{-0.065em}% default: -0.1667em |
| 96 |
\setlogokern{eX}{-0.06em}% default: -0.125em |
| 97 |
\setlogokern{La}{-0.265em}% default: -0.36em |
| 98 |
\setlogokern{aT}{-.055em}% default: -0.15em |
| 99 |
% \setlogokern{X2}{}% default: 0.15em |
| 100 |
\setlogodrop[TeX]{0.355ex}% default: 0.5ex |
| 101 |
\setLaTeXa{\scshape a} |
| 102 |
% \setLaTeXee{<arg>} |
| 103 |
\usepackage{fixfoot} |
| 104 |
\usepackage{enumitem} |
| 105 |
\usepackage[referable]{threeparttablex} |
| 106 |
\usepackage{enumitem} |
| 107 |
\makeatletter |
| 108 |
\def\TPT@measurement{% ateb David Carlisle: https://tex.stackexchange.com/a/370691/ |
| 109 |
\ifdim\wd\@tempboxb<\TPTminimum |
| 110 |
\hsize \TPTminimum |
| 111 |
\else |
| 112 |
\hsize\wd\@tempboxb |
| 113 |
\fi |
| 114 |
\xdef\TPT@hsize{\hsize\the\hsize \noexpand\@parboxrestore}\TPT@hsize |
| 115 |
\ifx\TPT@docapt\@undefined\else |
| 116 |
\TPT@docapt \vskip.2\baselineskip |
| 117 |
\fi \par |
| 118 |
\dimen@\dp\@tempboxb % new |
| 119 |
\box\@tempboxb |
| 120 |
\ifvmode \prevdepth\dimen@ \fi% was \z@ not \dimen@ |
| 121 |
} |
| 122 |
\renewlist{tablenotes}{enumerate}{1} |
| 123 |
\setlist[tablenotes]{label=\tnote{\alph*},ref=\alph*,itemsep=\z@,topsep=\z@skip,partopsep=\z@skip,parsep=\z@,itemindent=\z@,labelindent=\tabcolsep,labelsep=.2em,leftmargin=*,align=left,before={\unskip\medskip\footnotesize}} |
| 124 |
\makeatother |
| 125 |
\usepackage{booktabs} |
| 126 |
\usepackage{multirow} |
| 127 |
\usepackage{xcolor} |
| 128 |
\usepackage{xurl} |
| 129 |
\urlstyle{sf} |
| 130 |
\usepackage{microtype} |
| 131 |
\usepackage[a4paper,headheight=14pt]{geometry} % use 14pt for 11pt text, 15pt for 12pt text |
| 132 |
\usepackage{csquotes} |
| 133 |
\MakeAutoQuote{‘}{’} |
| 134 |
\MakeAutoQuote*{“}{”} |
| 135 |
\usepackage{caption} |
| 136 |
\DeclareCaptionFont{lf}{\lstyle} |
| 137 |
\captionsetup[table]{labelfont=lf} |
| 138 |
% sicrhau hyperindex=false: llwytho CYN bookmark |
| 139 |
\usepackage{hypdoc}% ateb Ulrike Fischer: https://tex.stackexchange.com/a/695555/ |
| 140 |
\usepackage{bookmark} |
| 141 |
\hypersetup{% |
| 142 |
colorlinks=true, |
| 143 |
citecolor={moss}, |
| 144 |
extension=pdf, |
| 145 |
linkcolor={strawberry}, |
| 146 |
linktocpage=true, |
| 147 |
pdfcreator={TeX}, |
| 148 |
pdfproducer={pdfeTeX}, |
| 149 |
urlcolor={blueberry}% |
| 150 |
} |
| 151 |
\NewDocElement[% |
| 152 |
idxtype=opt., |
| 153 |
idxgroup=options, |
| 154 |
printtype=\textit{opt.}, |
| 155 |
]{Opt}{option} |
| 156 |
\NewDocumentCommand \val { m } |
| 157 |
{% |
| 158 |
{\ttfamily =\,\meta{#1}}% |
| 159 |
} |
| 160 |
\ExplSyntaxOn |
| 161 |
\NewDocumentCommand \vals { m } |
| 162 |
{ |
| 163 |
{ |
| 164 |
\ttfamily = \, |
| 165 |
\clist_use:nn { #1 } { \textbar } |
| 166 |
} |
| 167 |
} |
| 168 |
\ExplSyntaxOff |
| 169 |
\pagestyle{fancy} |
| 170 |
\fancyhf[lh]{\itshape\filebase~\fileversion} |
| 171 |
%^^A \fancyhf[rh]{\itshape\filetoday} |
| 172 |
\fancyhf[rh]{\itshape\filedate} |
| 173 |
\fancyhf[ch]{} |
| 174 |
\fancyhf[lf]{} |
| 175 |
\fancyhf[rf]{} |
| 176 |
\fancyhf[cf]{\itshape--- \thepage~/~\lastpage{} ---} |
| 177 |
\ExplSyntaxOn |
| 178 |
\hook_gput_code:nnn {shipout/lastpage} {.} |
| 179 |
{ |
| 180 |
\property_record:nn {t:lastpage}{abspage,page,pagenum} |
| 181 |
} |
| 182 |
\cs_new_protected_nopar:Npn \lastpage |
| 183 |
{ |
| 184 |
\property_ref:nn {t:lastpage}{page} |
| 185 |
} |
| 186 |
\ExplSyntaxOff |
| 187 |
\definecolor{strawberry}{rgb}{1.000,0.000,0.502} |
| 188 |
\definecolor{blueberry}{rgb}{0.000,0.000,1.000} |
| 189 |
\definecolor{moss}{rgb}{0.000,0.502,0.251} |
| 190 |
\begin{document} |
| 191 |
\DocInput{\filename} |
| 192 |
\end{document} |
| 193 |
%</driver> |
| 194 |
% \fi |
| 195 |
% |
| 196 |
% |
| 197 |
% \title{\pkgname: venturis2} |
| 198 |
% \author{Clea F. Rees\thanks{% |
| 199 |
% Bug tracker: |
| 200 |
% \href{https://codeberg.org/cfr/nfssext/issues}{\url{codeberg.org/cfr/nfssext/issues}} |
| 201 |
% \textbar{} Code: |
| 202 |
% \href{https://codeberg.org/cfr/nfssext}{\url{codeberg.org/cfr/nfssext}} |
| 203 |
% \textbar{} Mirror: |
| 204 |
% \href{https://github.com/cfr42/nfssext}{\url{github.com/cfr42/nfssext}}% |
| 205 |
% }} |
| 206 |
%^^A \date{\fileversion~\filetoday} |
| 207 |
% \date{\fileversion~\filedate} |
| 208 |
% |
| 209 |
% \providecommand*{\adf}{\textsc{adf}} |
| 210 |
% \providecommand*{\lpack}[1]{\textsf{#1}} |
| 211 |
% \providecommand*{\fgroup}[1]{\textsf{#1}} |
| 212 |
% \providecommand*{\fname}[1]{\textsf{#1}} |
| 213 |
% \providecommand*{\file}[1]{\texttt{#1}} |
| 214 |
% |
| 215 |
% |
| 216 |
% \maketitle\thispagestyle{empty} |
| 217 |
% \pdfinfo{% |
| 218 |
% /Creator (TeX) |
| 219 |
% /Producer (pdfTeX) |
| 220 |
% /Author (Clea F. Rees) |
| 221 |
% /Title (venturis2) |
| 222 |
% /Subject (TeX) |
| 223 |
% /Keywords (TeX,LaTeX,font,fonts,tex,latex,Venturis,venturis,venturisadf,VenturisADF,ADF,adf,Arkandis,Digital,Foundry,arkandis,digital,foundry,Hirwen,Harendal,Clea,Rees)} |
| 224 |
% \pdfcatalog{% |
| 225 |
% /URL () |
| 226 |
% /PageMode /UseOutlines} |
| 227 |
% \setlength{\parindent}{0pt} |
| 228 |
% \setlength{\parskip}{0.5em} |
| 229 |
% |
| 230 |
% |
| 231 |
% |
| 232 |
% \begin{abstract} |
| 233 |
% \noindent This file is part of \lpack{\pkgname}. |
| 234 |
% \file{\pkgname.pdf} constitutes the main documentation for the package. |
| 235 |
% \end{abstract} |
| 236 |
% |
| 237 |
% \tableofcontents |
| 238 |
% |
| 239 |
% \section{Example} |
| 240 |
% |
| 241 |
% \iffalse |
| 242 |
%<*ee> |
| 243 |
% \fi |
| 244 |
% \begin{macrocode} |
| 245 |
\documentclass[12pt]{article} |
| 246 |
\title{Venturis No2 Example} |
| 247 |
\author{Cinderella} |
| 248 |
|
| 249 |
\newcommand{\alphaline}{ABCDEFGHIJKLMNOPQRSTUVWXYZ\\abcdefghijklmnopqrstuvwxyz\\0123456789\\ |
| 250 |
f{}f ff f{}i fi f{}l fl f{}f{}i ffi f{}f{}l ffl \& \texteuro \texttrademark \textcopyright \textmu\\ |
| 251 |
sphinx of black quartz, judge my vow}%\textcelsius \textnumero \textservicemark} |
| 252 |
\newcommand{\abc}{ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz} |
| 253 |
\newcommand{\digits}{0123456789} |
| 254 |
\newcommand{\alphatest}{% |
| 255 |
\begin{flushleft} |
| 256 |
\textup{upright:\\\alphaline}\\[\smallskipamount] |
| 257 |
\textit{italics:\\\alphaline}\\ |
| 258 |
\end{flushleft}% |
| 259 |
} |
| 260 |
|
| 261 |
\pdfmapfile{-yv2.map} |
| 262 |
\pdfmapfile{-yvt.map} |
| 263 |
\pdfmapfile{+yv2.map} |
| 264 |
\pdfmapfile{+yvt.map} |
| 265 |
\usepackage{venturis2} |
| 266 |
|
| 267 |
\begin{document} |
| 268 |
\maketitle |
| 269 |
\setlength{\parindent}{0pt} |
| 270 |
|
| 271 |
\section*{family: yv2} |
| 272 |
|
| 273 |
This is a serif family with lining figures. |
| 274 |
|
| 275 |
\subsection*{Regular weight, regular width} |
| 276 |
|
| 277 |
\alphatest |
| 278 |
|
| 279 |
\subsection*{Medium weight, regular width} |
| 280 |
|
| 281 |
{\mbweight\alphatest} |
| 282 |
|
| 283 |
\subsection*{Bold weight, regular width (no extended)} |
| 284 |
|
| 285 |
\textbf{\alphatest} |
| 286 |
|
| 287 |
\subsection*{Heavy weight, regular width} |
| 288 |
|
| 289 |
{\ebweight\alphatest} |
| 290 |
|
| 291 |
\subsection*{Regular weight, condensed} |
| 292 |
|
| 293 |
{\cdwidth\alphatest} |
| 294 |
|
| 295 |
\subsection*{Bold weight, condensed} |
| 296 |
|
| 297 |
{\bfseries\cdwidth\alphatest} |
| 298 |
|
| 299 |
\section*{family: yvtd} |
| 300 |
|
| 301 |
\textvt{\alphaline} |
| 302 |
\medskip |
| 303 |
|
| 304 |
\textvtl{\alphaline} |
| 305 |
|
| 306 |
\end{document} |
| 307 |
% \end{macrocode} |
| 308 |
% \iffalse |
| 309 |
%</ee> |
| 310 |
% \fi |
| 311 |
% |
| 312 |
% \MaybeStop{% |
| 313 |
% \PrintChanges |
| 314 |
% \PrintIndex |
| 315 |
% } |
| 316 |
% |
| 317 |
% \section{Implementation} |
| 318 |
% |
| 319 |
% |
| 320 |
% \subsection{venturis2.sty} |
| 321 |
% |
| 322 |
% \iffalse |
| 323 |
%<*sty> |
| 324 |
% \fi |
| 325 |
% \begin{package}{venturis2} |
| 326 |
% This package uses font groups \fgroup{venturis2} and \fgroup{venturissans2}. |
| 327 |
% \begin{macrocode} |
| 328 |
\NeedsTeXFormat{LaTeX2e} |
| 329 |
\RequirePackage{svn-prov} |
| 330 |
\ProvidesPackageSVN[\filebase.sty]{$Id: venturis2.dtx 10366 2024-09-18 14:25:21Z cfrees $}[v2.0 \revinfo for VenturisADFNo2 PS 1.005] |
| 331 |
\DefineFileInfoSVN[venturisii] |
| 332 |
\RequirePackage[T1]{fontenc} |
| 333 |
\RequirePackage{nfssext-cfr}[2024/01/01] |
| 334 |
% \end{macrocode} |
| 335 |
% \lpack{nfssext-cfr} provides \cs{ProcessKeyOptions}, \cs{IfFormatAtLeastTF} on older kernels. |
| 336 |
% \begin{macrocode} |
| 337 |
\IfFormatAtLeastTF {2020-02-02}{% |
| 338 |
% \end{macrocode} |
| 339 |
% To get the oldstyle numbers etc.\ used from TS1, we need to set the subset to 0 or 1. |
| 340 |
% Unfortunately, this means characters missing from the fonts will not use default symbols as fallback, but this seems to be unavoidable. |
| 341 |
% \begin{macrocode} |
| 342 |
\DeclareEncodingSubset{TS1}{yv2}{1}% |
| 343 |
\DeclareEncodingSubset{TS1}{yv3}{1}% |
| 344 |
}{% |
| 345 |
\RequirePackage{textcomp}} |
| 346 |
\UndeclareTextCommand{\textperthousand}{T1} |
| 347 |
\ExplSyntaxOn |
| 348 |
% \end{macrocode} |
| 349 |
% The actual \verb|sty| is ultra simple. |
| 350 |
% Three options of which only two are actually needed. |
| 351 |
% \texttt{scale rm} and \texttt{scale sf} take factors by which to scale the fonts. |
| 352 |
% These are empty by default, which is equivalent to \texttt{1}, but more efficient. |
| 353 |
% \texttt{scale} is a convenience wrapper which sets both \texttt{scale rm} and \texttt{scale sf} by a common factor. |
| 354 |
% \begin{macrocode} |
| 355 |
\keys_define:nn { venturis ii } |
| 356 |
{ |
| 357 |
% \end{macrocode} |
| 358 |
% \begin{option}{scale,scale ~ rm,scale ~ sf} |
| 359 |
% \begin{macro}{\yvii@scale,\yviii@scale} |
| 360 |
% Options for scaling rm/sf or both |
| 361 |
% \begin{macrocode} |
| 362 |
scale ~ rm .tl_set:N = \yvii@scale, |
| 363 |
scale ~ rm .initial:V = \@empty, |
| 364 |
scale ~ sf .tl_set:N = \yviii@scale, |
| 365 |
scale ~ sf .initial:V = \@empty, |
| 366 |
scale .code:n = { |
| 367 |
\gdef\yvii@scale{#1} |
| 368 |
\gdef\yviii@scale{#1} |
| 369 |
}, |
| 370 |
% \end{macrocode} |
| 371 |
% \end{macro} |
| 372 |
% \end{option} |
| 373 |
% \begin{macrocode} |
| 374 |
} |
| 375 |
\ProcessKeyOptions[venturis ii] |
| 376 |
\ExplSyntaxOff |
| 377 |
% \end{macrocode} |
| 378 |
% Make Venturis No2 default for roman text |
| 379 |
% \begin{macrocode} |
| 380 |
\renewcommand{\rmdefault}{yv2} |
| 381 |
% \end{macrocode} |
| 382 |
% Make Venturis Sans No2 default for sans text |
| 383 |
% \begin{macrocode} |
| 384 |
\renewcommand{\sfdefault}{yv3} |
| 385 |
% \end{macrocode} |
| 386 |
% \begin{macro}{\vtstyle} |
| 387 |
% Introduce special titling commands |
| 388 |
% \begin{macrocode} |
| 389 |
\DeclareRobustCommand{\vtstyle}[1][]{% |
| 390 |
\edef\vt@shape{#1}% |
| 391 |
\def\tempo{ol}% |
| 392 |
\def\temps{yv3}% |
| 393 |
\def\tempr{yv2}% |
| 394 |
\not@math@alphabet\vtstyle\relax |
| 395 |
% \end{macrocode} |
| 396 |
% Because the titling fonts have limited availability, don't use the \tistyle set-up which won't work with venturis2 in any case, but choose the family explicitly in case we're currently using sans or typewriter |
| 397 |
% \begin{macrocode} |
| 398 |
\ifx\vt@shape\tempo |
| 399 |
\fontfamily{yvtd}\fontshape{ol}\selectfont |
| 400 |
\else |
| 401 |
\edef\tempf{\expandafter\exfs@get@base\f@family\@nil}% |
| 402 |
\ifx\tempf\temps |
| 403 |
\fontfamily{yv1d}\selectfont |
| 404 |
\else |
| 405 |
\ifx\tempf\tempr |
| 406 |
\fontfamily{yvtd}\selectfont |
| 407 |
\else |
| 408 |
\PackageWarning{venturis.sty}{% |
| 409 |
\tempf is unknown. |
| 410 |
This command requires that yv2 or yv3 be active in order to determine whether serif or sans-serif titling is required. |
| 411 |
I am going to guess that you want serif titling. |
| 412 |
If this is wrong, be sure to activate yv3 first or copy and adapt the styling command from venturis.sty.% |
| 413 |
}% |
| 414 |
\fontfamily{yvtd}\selectfont |
| 415 |
\fi |
| 416 |
\fi |
| 417 |
\fi |
| 418 |
} |
| 419 |
% \end{macrocode} |
| 420 |
% \end{macro} |
| 421 |
% \begin{macro}{\textvt,\textvtl} |
| 422 |
% Text font commands |
| 423 |
% \begin{macrocode} |
| 424 |
\DeclareTextFontCommand{\textvt}{\vtstyle} |
| 425 |
\DeclareTextFontCommand{\textvtl}{\vtstyle[ol]} |
| 426 |
% \end{macrocode} |
| 427 |
% \end{macro} |
| 428 |
%^^A paid â chynnwys \endinput - docstrip yn chwilio amddo fe yn arbennigol |
| 429 |
%^^A & bydd doctrip yn ei ychwanegu fe beth bynnag |
| 430 |
%^^A (Martin Scharrer: https://tex.stackexchange.com/a/28997/) |
| 431 |
% \begin{macrocode} |
| 432 |
%% end venturis2.sty |
| 433 |
% \end{macrocode} |
| 434 |
% \end{package} |
| 435 |
% \iffalse |
| 436 |
%</sty> |
| 437 |
% \fi |
| 438 |
% |
| 439 |
% The remaining files are not used directly, but are required to generate the files which allow \TeX{} and \LaTeX{} to use the fonts. |
| 440 |
% The sources use \verb|fontinst| as explained in the (sparse) comments. |
| 441 |
% While you can install these files into a \TeX{} tree, they are not required for typesetting. |
| 442 |
% |
| 443 |
% \subsection{Driver} |
| 444 |
% |
| 445 |
% The file does all the initial setup of the fonts. |
| 446 |
% It organises the fonts into families, defines shapes and reencodes as required. |
| 447 |
% |
| 448 |
% \iffalse |
| 449 |
%<*drv> |
| 450 |
% \fi |
| 451 |
% \begin{macrocode} |
| 452 |
\input fontinst.sty |
| 453 |
\needsfontinstversion{1.926} |
| 454 |
% \end{macrocode} |
| 455 |
% Substitutions |
| 456 |
% Bold for bold extended |
| 457 |
% \begin{macrocode} |
| 458 |
\substitutesilent{bx}{b} |
| 459 |
\substitutesilent{sl}{it} |
| 460 |
\substitutesilent{scit}{sc} |
| 461 |
\substitutesilent{scsl}{scit} |
| 462 |
\substitutesilent{si}{scsl} |
| 463 |
\substitutesilent{sc}{n} |
| 464 |
% \end{macrocode} |
| 465 |
% Record transformations for later map file creation |
| 466 |
% \begin{macrocode} |
| 467 |
\recordtransforms{yv2-rec.tex} |
| 468 |
% \end{macrocode} |
| 469 |
% Allow fonts to be scaled via variable in fd files |
| 470 |
% Also requires fontinst.lua fnttarg as no means to define variable in fontinst |
| 471 |
% \begin{macrocode} |
| 472 |
\declaresize{}{<-> \string\yvii@@scale} |
| 473 |
% \end{macrocode} |
| 474 |
% Transformations : reencode fonts |
| 475 |
% \begin{macrocode} |
| 476 |
\transformfont{t1-yv2r}{\reencodefont{t1-f_f}{\fromafm{yv2r8a}}} |
| 477 |
\transformfont{t1-yv2ri}{\reencodefont{t1-f_f}{\fromafm{yv2ri8a}}} |
| 478 |
\transformfont{t1-yv2b}{\reencodefont{t1-f_f}{\fromafm{yv2b8a}}} |
| 479 |
\transformfont{t1-yv2bi}{\reencodefont{t1-f_f}{\fromafm{yv2bi8a}}} |
| 480 |
\transformfont{ts1-yv2r}{\reencodefont{ts1-euro}{\fromafm{yv2r8a}}} |
| 481 |
\transformfont{ts1-yv2ri}{\reencodefont{ts1-euro}{\fromafm{yv2ri8a}}} |
| 482 |
\transformfont{ts1-yv2b}{\reencodefont{ts1-euro}{\fromafm{yv2b8a}}} |
| 483 |
\transformfont{ts1-yv2bi}{\reencodefont{ts1-euro}{\fromafm{yv2bi8a}}} |
| 484 |
% \end{macrocode} |
| 485 |
% Transformations : reencode condensed widths |
| 486 |
% \begin{macrocode} |
| 487 |
\transformfont{t1-yv2r-c}{\reencodefont{t1-f_f}{\fromafm{yv2r8ac}}} |
| 488 |
\transformfont{t1-yv2ri-c}{\reencodefont{t1-f_f}{\fromafm{yv2ri8ac}}} |
| 489 |
\transformfont{t1-yv2b-c}{\reencodefont{t1-f_f}{\fromafm{yv2b8ac}}} |
| 490 |
\transformfont{t1-yv2bi-c}{\reencodefont{t1-f_f}{\fromafm{yv2bi8ac}}} |
| 491 |
\transformfont{ts1-yv2r-c}{\reencodefont{ts1-euro}{\fromafm{yv2r8ac}}} |
| 492 |
\transformfont{ts1-yv2ri-c}{\reencodefont{ts1-euro}{\fromafm{yv2ri8ac}}} |
| 493 |
\transformfont{ts1-yv2b-c}{\reencodefont{ts1-euro}{\fromafm{yv2b8ac}}} |
| 494 |
\transformfont{ts1-yv2bi-c}{\reencodefont{ts1-euro}{\fromafm{yv2bi8ac}}} |
| 495 |
% \end{macrocode} |
| 496 |
% Transformations : reencode expanded widths |
| 497 |
% \begin{macrocode} |
| 498 |
\transformfont{t1-yv2m}{\reencodefont{t1-f_f}{\fromafm{yv2m8a}}} |
| 499 |
\transformfont{t1-yv2mi}{\reencodefont{t1-f_f}{\fromafm{yv2mi8a}}} |
| 500 |
\transformfont{t1-yv2x}{\reencodefont{t1-f_f}{\fromafm{yv2x8a}}} |
| 501 |
\transformfont{t1-yv2xi}{\reencodefont{t1-f_f}{\fromafm{yv2xi8a}}} |
| 502 |
\transformfont{ts1-yv2m}{\reencodefont{ts1-euro}{\fromafm{yv2m8a}}} |
| 503 |
\transformfont{ts1-yv2mi}{\reencodefont{ts1-euro}{\fromafm{yv2mi8a}}} |
| 504 |
\transformfont{ts1-yv2x}{\reencodefont{ts1-euro}{\fromafm{yv2x8a}}} |
| 505 |
\transformfont{ts1-yv2xi}{\reencodefont{ts1-euro}{\fromafm{yv2xi8a}}} |
| 506 |
% \end{macrocode} |
| 507 |
% Installation: creation of virtual fonts |
| 508 |
% \begin{macrocode} |
| 509 |
\installfonts |
| 510 |
% \end{macrocode} |
| 511 |
% \begin{family}{T1/yv2} |
| 512 |
% venturis2 |
| 513 |
% \begin{macrocode} |
| 514 |
\installfamily{T1}{yv2}{} |
| 515 |
\installfont{yv2r8t}{t1-yv2r,newlatin}{t1-f_f}{T1}{yv2}{m}{n}{} |
| 516 |
\installfont{yv2ri8t}{t1-yv2ri,newlatin}{t1-f_f}{T1}{yv2}{m}{it}{} |
| 517 |
% \end{macrocode} |
| 518 |
% Installation: repeat for bold |
| 519 |
% \begin{macrocode} |
| 520 |
\installfont{yv2b8t}{t1-yv2b,newlatin}{t1-f_f}{T1}{yv2}{b}{n}{} |
| 521 |
\installfont{yv2bi8t}{t1-yv2bi,newlatin}{t1-f_f}{T1}{yv2}{b}{it}{} |
| 522 |
% \end{macrocode} |
| 523 |
% Installation: and condensed widths |
| 524 |
% \begin{macrocode} |
| 525 |
\installfont{yv2r8tc}{t1-yv2r-c,newlatin}{t1-f_f}{T1}{yv2}{c}{n}{} |
| 526 |
\installfont{yv2ri8tc}{t1-yv2ri-c,newlatin}{t1-f_f}{T1}{yv2}{c}{it}{} |
| 527 |
% \end{macrocode} |
| 528 |
% Installation: and bold condensed |
| 529 |
% \begin{macrocode} |
| 530 |
\installfont{yv2b8tc}{t1-yv2b-c,newlatin}{t1-f_f}{T1}{yv2}{bc}{n}{} |
| 531 |
\installfont{yv2bi8tc}{t1-yv2bi-c,newlatin}{t1-f_f}{T1}{yv2}{bc}{it}{} |
| 532 |
% \end{macrocode} |
| 533 |
% Installation: semi-bold |
| 534 |
% \begin{macrocode} |
| 535 |
\installfont{yv2m8t}{t1-yv2m,newlatin}{t1-f_f}{T1}{yv2}{sb}{n}{} |
| 536 |
\installfont{yv2mi8t}{t1-yv2mi,newlatin}{t1-f_f}{T1}{yv2}{sb}{it}{} |
| 537 |
% \end{macrocode} |
| 538 |
% Installation: and bold expanded |
| 539 |
% \begin{macrocode} |
| 540 |
\installfont{yv2x8t}{t1-yv2x,newlatin}{t1-f_f}{T1}{yv2}{eb}{n}{} |
| 541 |
\installfont{yv2xi8t}{t1-yv2xi,newlatin}{t1-f_f}{T1}{yv2}{eb}{it}{} |
| 542 |
% \end{macrocode} |
| 543 |
% \end{family} |
| 544 |
% \begin{family}{TS1/yv2} |
| 545 |
% Installation: install with TS1 encoding for extra glyphs through textcomp |
| 546 |
% \begin{macrocode} |
| 547 |
\installfamily{TS1}{yv2}{} |
| 548 |
\installfont{yv2r8c}{t1-yv2r,ts1-yv2r,textcomp}{ts1-euro}{TS1}{yv2}{m}{n}{} |
| 549 |
\installfont{yv2ri8c}{t1-yv2ri,ts1-yv2ri,textcomp}{ts1-euro}{TS1}{yv2}{m}{it}{} |
| 550 |
% \end{macrocode} |
| 551 |
% Installation: repeat for bold fonts |
| 552 |
% \begin{macrocode} |
| 553 |
\installfont{yv2b8c}{t1-yv2b,ts1-yv2b,textcomp}{ts1-euro}{TS1}{yv2}{b}{n}{} |
| 554 |
\installfont{yv2bi8c}{t1-yv2bi,ts1-yv2bi,textcomp}{ts1-euro}{TS1}{yv2}{b}{it}{} |
| 555 |
% \end{macrocode} |
| 556 |
% Installation: and condensed widths |
| 557 |
% \begin{macrocode} |
| 558 |
\installfont{yv2r8cc}{t1-yv2r-c,ts1-yv2r-c,textcomp}{ts1-euro}{TS1}{yv2}{c}{n}{} |
| 559 |
\installfont{yv2ri8cc}{t1-yv2ri-c,ts1-yv2ri-c,textcomp}{ts1-euro}{TS1}{yv2}{c}{it}{} |
| 560 |
% \end{macrocode} |
| 561 |
% Installation: and bold condensed |
| 562 |
% \begin{macrocode} |
| 563 |
\installfont{yv2b8cc}{t1-yv2b-c,ts1-yv2b-c,textcomp}{ts1-euro}{TS1}{yv2}{bc}{n}{} |
| 564 |
\installfont{yv2bi8cc}{t1-yv2bi-c,ts1-yv2bi-c,textcomp}{ts1-euro}{TS1}{yv2}{bc}{it}{} |
| 565 |
% \end{macrocode} |
| 566 |
% Installation: semi-bold |
| 567 |
% \begin{macrocode} |
| 568 |
\installfont{yv2m8c}{t1-yv2m,ts1-yv2m,textcomp}{ts1-euro}{TS1}{yv2}{sb}{n}{} |
| 569 |
\installfont{yv2mi8c}{t1-yv2mi,ts1-yv2mi,textcomp}{ts1-euro}{TS1}{yv2}{sb}{it}{} |
| 570 |
% \end{macrocode} |
| 571 |
% Installation: and bold expanded |
| 572 |
% \begin{macrocode} |
| 573 |
\installfont{yv2x8c}{t1-yv2x,ts1-yv2x,textcomp}{ts1-euro}{TS1}{yv2}{eb}{n}{} |
| 574 |
\installfont{yv2xi8c}{t1-yv2xi,ts1-yv2xi,textcomp}{ts1-euro}{TS1}{yv2}{eb}{it}{} |
| 575 |
% \end{macrocode} |
| 576 |
% \end{family} |
| 577 |
% Finish up |
| 578 |
% \begin{macrocode} |
| 579 |
\endinstallfonts |
| 580 |
\endrecordtransforms |
| 581 |
\bye |
| 582 |
% \end{macrocode} |
| 583 |
% \iffalse |
| 584 |
%</drv> |
| 585 |
% \fi |
| 586 |
% \subsection{Map} |
| 587 |
% |
| 588 |
% This file is compiled to produce the map file fragment \verb|updmap| needs to install the fonts. |
| 589 |
% It uses files recorded during compilation of the driver. |
| 590 |
% \iffalse |
| 591 |
%<*map> |
| 592 |
% \fi |
| 593 |
% \begin{macrocode} |
| 594 |
\input finstmsc.sty |
| 595 |
\resetstr{PSfontsuffix}{.pfb} |
| 596 |
\adddriver{dvips}{yv2.map} |
| 597 |
\adddriver{pltotf}{yv2-pltotf.sh} |
| 598 |
\input yv2-rec.tex |
| 599 |
\donedrivers |
| 600 |
\bye |
| 601 |
% \end{macrocode} |
| 602 |
% \iffalse |
| 603 |
%</map> |
| 604 |
% \fi |
| 605 |
% |
| 606 |
%\Finale |
| 607 |
%^^A vim: tw=0: |