| 1 |
% \iffalse meta comment |
| 2 |
% File: hfoldsty.dtx Copyright (C) 2003--2005, 2012 Harald Harders |
| 3 |
% \fi |
| 4 |
% |
| 5 |
% \iffalse |
| 6 |
% |
| 7 |
%<*driver> |
| 8 |
\documentclass[ngerman,english]{ltxdoc} |
| 9 |
\usepackage[T1]{fontenc} |
| 10 |
\IfFileExists{fix-cm.sty}{\usepackage{fix-cm}}{} |
| 11 |
\IfFileExists{hfoldsty.sty}{\usepackage{hfoldsty}}{% |
| 12 |
\GenericWarning{hfoldsty.dtx}{Package file hfoldsty.sty not found |
| 13 |
(Documentation will be messed up!^^J^^A |
| 14 |
Generate hfoldsty.sty by (La)TeXing hfoldsty.ins, process |
| 15 |
hfoldsty.dtx again)^^J}\stop} |
| 16 |
\usepackage{textcomp} |
| 17 |
\usepackage{longtable} |
| 18 |
\usepackage{array} |
| 19 |
\usepackage{babel} |
| 20 |
\usepackage{ragged2e} |
| 21 |
\GetFileInfo{hfoldsty.sty} |
| 22 |
\title{European Computer Modern font with oldstyle digits} |
| 23 |
\author{Harald Harders\\\texttt{[email protected]}} |
| 24 |
\date{Version \fileversion, \filedate; printed \today} |
| 25 |
\newlength{\tempdima}% |
| 26 |
\makeatletter |
| 27 |
\renewenvironment{table}[1][]{% |
| 28 |
\@float{table}[#1]% |
| 29 |
\centering% |
| 30 |
\setlength{\tempdima}{\abovecaptionskip}% |
| 31 |
\setlength{\abovecaptionskip}{\belowcaptionskip}% |
| 32 |
\setlength{\belowcaptionskip}{\tempdima}% |
| 33 |
}{% |
| 34 |
\end@float |
| 35 |
} |
| 36 |
\def\meta@font@select{\normalfont\itshape} |
| 37 |
\makeatother |
| 38 |
\newcommand*\Tone{\textsc{t}1} |
| 39 |
\newcommand*\TSone{\textsc{ts}1} |
| 40 |
\EnableCrossrefs |
| 41 |
\CodelineIndex |
| 42 |
\DoNotIndex{\def,\edef,\let,\newcommand,\newenvironment,\newcounter} |
| 43 |
\DoNotIndex{\setcounter,\space,\if,\else,\fi,\empty,\@empty,\ifx,\fi} |
| 44 |
\DoNotIndex{\ifnum,\fi,\expandafter,\csname,\endcsname,\the} |
| 45 |
\DoNotIndex{\MessageBreak,\message,\newlength,\newif,\xdef,\newcount} |
| 46 |
\CodelineNumbered |
| 47 |
\RecordChanges |
| 48 |
\CheckSum{476} |
| 49 |
\begin{document} |
| 50 |
\DocInput{hfoldsty.dtx} |
| 51 |
\end{document} |
| 52 |
%</driver> |
| 53 |
% \fi |
| 54 |
% |
| 55 |
% \changes{1.15}{2012/01/01}{Update documentation with regards to |
| 56 |
% \texttt{microtype.sty}}% |
| 57 |
% \changes{1.15}{2012/01/01}{Update e-mail address}% |
| 58 |
% \changes{1.15}{2012/01/01}{Clean up Makefiles and zip files}% |
| 59 |
% \changes{1.13}{2004/11/19}{Fix errors in \cs{ProvidesFile} lines in |
| 60 |
% \texttt{fd} files}% |
| 61 |
% \changes{1.11}{2004/08/21}{Detect already loaded \texttt{fix-cm.sty}}% |
| 62 |
% \changes{1.11}{2004/08/21}{Add more fd files and generate them by |
| 63 |
% the dtx file}% |
| 64 |
% \changes{1.10}{2004/08/19}{New option \texttt{fix-cm} similar to |
| 65 |
% \texttt{fix-cm} package}% |
| 66 |
% \changes{1.00}{2003/10/12}{Total new implementation}% |
| 67 |
% |
| 68 |
% \maketitle |
| 69 |
% \begin{abstract} |
| 70 |
% \noindent |
| 71 |
% The |hfoldsty| package provides virtual fonts for using oldstyle |
| 72 |
% (0123456789) figures with the European Computer Modern fonts. |
| 73 |
% It does a similar job as the |eco| package by Sebastian Kirsch |
| 74 |
% <[email protected]> but includes a couple of |
| 75 |
% improvements, e.g., better kerning with guillemets, support for |
| 76 |
% character protruding using the |pdfcprot| package, using the |
| 77 |
% pdfcprot package, arbitrary font sizes in conjunction with |
| 78 |
% |fix-cm.sty| (see section~\ref{sec:vergleich}). |
| 79 |
% \end{abstract} |
| 80 |
% |
| 81 |
% \tableofcontents |
| 82 |
% |
| 83 |
% \section*{Copyright} |
| 84 |
% \changes{1.01}{2003/10/15}{Changed copyright to GPL since I don't |
| 85 |
% know if I am permitted to use LPPL} |
| 86 |
% |
| 87 |
% Copyright \textcopyright\ 2003--2005, 2012 Harald Harders <[email protected]> |
| 88 |
% |
| 89 |
% This program is free software; you can redistribute it and/or modify |
| 90 |
% it under the terms of the GNU General Public License as published by |
| 91 |
% the Free Software Foundation; either version 2 of the License, or |
| 92 |
% (at your option) any later version. |
| 93 |
% |
| 94 |
% This program is distributed in the hope that it will be useful, |
| 95 |
% but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 96 |
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 97 |
% GNU General Public License for more details. |
| 98 |
% |
| 99 |
% You should have received a copy of the GNU General Public License |
| 100 |
% along with this program; if not, write to the Free Software |
| 101 |
% Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 102 |
% |
| 103 |
% |
| 104 |
% \section{The user interface} |
| 105 |
% |
| 106 |
% \subsection{Using this package} |
| 107 |
% |
| 108 |
% To use this package place |
| 109 |
% \begin{verbatim} |
| 110 |
%\usepackage{hfoldsty}\end{verbatim} |
| 111 |
% in the preamble of your document. |
| 112 |
% |
| 113 |
% \DescribeMacro{newstylett} |
| 114 |
% By default, the roman and the sans-serif font families are changed |
| 115 |
% to use oldstyle figures while the typewriter family stays unchanged. |
| 116 |
% This is done because the typewriter font mostly is used for source |
| 117 |
% code where oldstyle figures look strange. Equivalent to use no package |
| 118 |
% option is to use the |newstylett| package option. |
| 119 |
% |
| 120 |
% \DescribeMacro{oldstylett} |
| 121 |
% \changes{1.14}{2005/01/01}{Fix documenation about package options |
| 122 |
% (Thanks to Rainer Thiel)}% |
| 123 |
% If you want to use oldstyle figures also with typewriter fonts |
| 124 |
% specify the |oldstylett| package option when loading the |hfoldsty| |
| 125 |
% package. |
| 126 |
% As side effect, the typewriter font then uses ligatures instead of |
| 127 |
% single characters for ``fi'', ``fl'', ``ff'', ``ffi'', and ``ffl''. |
| 128 |
% Have a look at the two examples: |
| 129 |
% \begin{verbatim} |
| 130 |
%int main() |
| 131 |
%{ |
| 132 |
% int var1=123, var2=345; |
| 133 |
% FILE *file1; |
| 134 |
% file1=fopen("test.out","w"); |
| 135 |
% fprintf(file1,"%d + %d = %d\n",var1,var2,var1+var2); |
| 136 |
% return 0; |
| 137 |
%} // main\end{verbatim} |
| 138 |
% and |
| 139 |
% \begingroup |
| 140 |
% \renewcommand\ttdefault{hfott} |
| 141 |
% \begin{verbatim} |
| 142 |
%int main() |
| 143 |
%{ |
| 144 |
% int var1=123, var2=345; |
| 145 |
% FILE *file1; |
| 146 |
% file1=fopen("test.out","w"); |
| 147 |
% fprintf(file1,"%d + %d = %d\n",var1,var2,var1+var2); |
| 148 |
% return 0; |
| 149 |
%} // main\end{verbatim} |
| 150 |
% \endgroup\noindent |
| 151 |
% Look at the variable \texttt{file1} which is |
| 152 |
% \texttt{\oldstylenums{file1}} in the second example. |
| 153 |
% \oldstylenums{\texttt{file1}} in the second example. |
| 154 |
% |
| 155 |
% \DescribeMacro{\oldstylenums} |
| 156 |
% The \cs{oldstylenums} command is redefined in order to allow |
| 157 |
% arbitrary text in the argument. |
| 158 |
% |
| 159 |
% \DescribeMacro{\newstylenums} |
| 160 |
% The \cs{newstylenums} command is the analogous command to |
| 161 |
% \cs{oldstylenums} to switch to lining figures. |
| 162 |
% |
| 163 |
% Even font switching commands are possible in the argument of the |
| 164 |
% \cs{oldstylenums} and \cs{newstylenums} commands, e.g., |
| 165 |
% \begin{verbatim} |
| 166 |
% Hello 1234, \textsf{Hello 1234}, |
| 167 |
% \newstylenums{Hello 1234, \textsf{Hello 1234}.}\end{verbatim} |
| 168 |
% leads to |
| 169 |
% ``Hello 1234, \textsf{Hello 1234}, |
| 170 |
% \newstylenums{Hello 1234, \textsf{Hello 1234}.}'' |
| 171 |
% |
| 172 |
% |
| 173 |
% \subsection{Slanted small capitals} |
| 174 |
% |
| 175 |
% \DescribeMacro{slantsc.sty} |
| 176 |
% The font definition files of the |hfoldsty| package provide |
| 177 |
% additional shapes for small capitals, an italic and slanted version. |
| 178 |
% You may access them using the |slantsc| package. |
| 179 |
% |
| 180 |
% |
| 181 |
% \subsection{Allow arbitrary font sizes and reduce number of design |
| 182 |
% sizes} |
| 183 |
% |
| 184 |
% \DescribeMacro{fix-cm} |
| 185 |
% The default \Tone\ encoded fonts use a large number of different |
| 186 |
% design sizes, and they do not allow to use arbitrary font sizes. |
| 187 |
% For normal European Computer Modern fonts, this is fixed by using |
| 188 |
% |fix-cm.sty|. |
| 189 |
% With this package, you can reach it by either including the |fix-cm| |
| 190 |
% option when loading |hfoldsty|, |
| 191 |
% \begin{verbatim} |
| 192 |
%\usepackage[fix-cm]{hfoldsty}\end{verbatim} |
| 193 |
% or by loading |fix-cm.sty| before |hfoldsty.sty|. |
| 194 |
% According to the documentation for the |fix-cm| package, you shall |
| 195 |
% load the |fix-cm| package even before the \cs{documentclass} |
| 196 |
% command, using \cs{RequirePackage}: |
| 197 |
% \begin{verbatim} |
| 198 |
%\RequirePackage{fix-cm} |
| 199 |
%\documentclass{article} |
| 200 |
%\usepackage{hfoldsty}\end{verbatim} |
| 201 |
% |
| 202 |
% \subsection{Character protruding} |
| 203 |
% |
| 204 |
% \DescribeMacro{pdfcprot.sty} |
| 205 |
% The |hfoldsty| package does not produde any characters into the |
| 206 |
% margin by itself. |
| 207 |
% It, however, provides the produsion information for the |pdfcprot| |
| 208 |
% package with the extension |.cpa|. |
| 209 |
% |
| 210 |
% \DescribeMacro{microtype.sty} |
| 211 |
% The |microtype| package has build-in support of the fonts provided |
| 212 |
% by |hfoldsty| so that no separate code is required. |
| 213 |
% |
| 214 |
% I recommend to use |microtype| rather than |pdfcprot|. |
| 215 |
% |
| 216 |
% |
| 217 |
% \section{Differences between the \textmd{\texttt{eco}} and the |
| 218 |
% \textmd{\texttt{hfoldsty}} packages}% |
| 219 |
% \label{sec:vergleich}% |
| 220 |
% |
| 221 |
% \begin{longtable}[l]% |
| 222 |
% {@{}>{\RaggedRight}p{0.25\linewidth}% |
| 223 |
% >{\RaggedRight}p{0.33\linewidth}>{\RaggedRight}p{0.33\linewidth}@{}} |
| 224 |
% Item& \texttt{eco}& \texttt{hfoldsty} \\*[\medskipamount] |
| 225 |
% Typewriter font& oldstyle figures and ligatures& lining figures, |
| 226 |
% no ligatures by default, can be switched.\\ |
| 227 |
% slanted small caps& not available& Access using the package |
| 228 |
% \texttt{slantsc} \\ |
| 229 |
% character protruding& protrudes the hyphen char into the right |
| 230 |
% margin& by default no protruding, provides files for the |
| 231 |
% |pdfcprot| package, supported by |microtype| package \\ |
| 232 |
% kerning& same kerning as European Computer Modern fonts& Improved |
| 233 |
% kerning for guillemets (\flqq, \frqq) \\ |
| 234 |
% TS1 encoding& ---& Includes necessary fd files \\ |
| 235 |
% font sizes& restricted as European Computer Modern with \Tone\ |
| 236 |
% encoding& adjustable: as \texttt{eco} or arbitrary \\ |
| 237 |
% design sizes& many, as European Computer Modern with \Tone\ |
| 238 |
% encoding& adjustable: as \texttt{eco} or reduced by |
| 239 |
% \texttt{fix-cm.sty} |
| 240 |
% \end{longtable} |
| 241 |
% |
| 242 |
% |
| 243 |
% \section{To Do} |
| 244 |
% |
| 245 |
% \begin{itemize} |
| 246 |
% \item |
| 247 |
% Add kerning information for English and German quotation marks. |
| 248 |
% \end{itemize} |
| 249 |
% |
| 250 |
% \StopEventually{\PrintChanges\clearpage \PrintIndex} |
| 251 |
% |
| 252 |
% |
| 253 |
% \section{The implementation} |
| 254 |
% |
| 255 |
% Heading of the package: |
| 256 |
% \begin{macrocode} |
| 257 |
%<package>\NeedsTeXFormat{LaTeX2e} |
| 258 |
%<hformnT1>\ProvidesFile{hformnT1.cpa} |
| 259 |
%<hformitT1>\ProvidesFile{hformitT1.cpa} |
| 260 |
%<hformslT1>\ProvidesFile{hformslT1.cpa} |
| 261 |
%<hforbxnT1>\ProvidesFile{hforbxnT1.cpa} |
| 262 |
%<hforbxitT1>\ProvidesFile{hforbxitT1.cpa} |
| 263 |
%<hforbxslT1>\ProvidesFile{hforbxslT1.cpa} |
| 264 |
%<hfossmnT1>\ProvidesFile{hfossmnT1.cpa} |
| 265 |
%<hfossmitT1>\ProvidesFile{hfossmitT1.cpa} |
| 266 |
%<hfossmslT1>\ProvidesFile{hfossmslT1.cpa} |
| 267 |
%<hfossbxnT1>\ProvidesFile{hfossbxnT1.cpa} |
| 268 |
%<hfossbxitT1>\ProvidesFile{hfossbxitT1.cpa} |
| 269 |
%<hfossbxslT1>\ProvidesFile{hfossbxslT1.cpa} |
| 270 |
%<hformnTS1>\ProvidesFile{hformnTS1.cpa} |
| 271 |
%<hformitTS1>\ProvidesFile{hformitTS1.cpa} |
| 272 |
%<hformslTS1>\ProvidesFile{hformslTS1.cpa} |
| 273 |
%<hforbxnTS1>\ProvidesFile{hforbxnTS1.cpa} |
| 274 |
%<hforbxitTS1>\ProvidesFile{hforbxitTS1.cpa} |
| 275 |
%<hforbxslTS1>\ProvidesFile{hforbxslTS1.cpa} |
| 276 |
%<hfossmnTS1>\ProvidesFile{hfossmnTS1.cpa} |
| 277 |
%<hfossmitTS1>\ProvidesFile{hfossmitTS1.cpa} |
| 278 |
%<hfossmslTS1>\ProvidesFile{hfossmslTS1.cpa} |
| 279 |
%<hfossbxnTS1>\ProvidesFile{hfossbxnTS1.cpa} |
| 280 |
%<hfossbxitTS1>\ProvidesFile{hfossbxitTS1.cpa} |
| 281 |
%<hfossbxslTS1>\ProvidesFile{hfossbxslTS1.cpa} |
| 282 |
%<omlhfor>\ProvidesFile{omlhfor.fd} |
| 283 |
%<omshfor>\ProvidesFile{omshfor.fd} |
| 284 |
%<ts1hfor>\ProvidesFile{ts1hfor.fd} |
| 285 |
%<ts1hfoss>\ProvidesFile{ts1hfoss.fd} |
| 286 |
%<ts1hfott>\ProvidesFile{ts1hfott.fd} |
| 287 |
%<ts1hfovtt>\ProvidesFile{ts1hfovtt.fd} |
| 288 |
%<package>\ProvidesPackage{hfoldsty} |
| 289 |
%<package|cpaT1|cpaTS1|fd> [2012/01/01 v1.15 European Computer Modern with oldstyle digits] |
| 290 |
% \end{macrocode} |
| 291 |
% Boolean to decide which typewriter font is used. |
| 292 |
% \begin{macrocode} |
| 293 |
%<*package> |
| 294 |
\newif\ifhfo@oldstylett |
| 295 |
% \end{macrocode} |
| 296 |
% Boolean to decide if reduced design sizes are to be used. |
| 297 |
% \begin{macrocode} |
| 298 |
\newif\ifhfofixcm |
| 299 |
% \end{macrocode} |
| 300 |
% Package options for type of typewriter font. |
| 301 |
% \begin{macrocode} |
| 302 |
\DeclareOption{oldstylett}{\hfo@oldstyletttrue} |
| 303 |
\DeclareOption{newstylett}{\hfo@oldstylettfalse} |
| 304 |
\DeclareOption{origtt}{\hfo@oldstylettfalse} |
| 305 |
% \end{macrocode} |
| 306 |
% Option |fix-cm| reduces the design sizes and alows to use arbitrary |
| 307 |
% fonts sizes. |
| 308 |
% \begin{macrocode} |
| 309 |
\DeclareOption{fix-cm}{\hfofixcmtrue} |
| 310 |
% \end{macrocode} |
| 311 |
% Pass all unknown options to the package |fontenc|. |
| 312 |
% \begin{macrocode} |
| 313 |
\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{fontenc}} |
| 314 |
% \end{macrocode} |
| 315 |
% By default, use the original typewriter font with lining figures and |
| 316 |
% without ligatures. |
| 317 |
% \begin{macrocode} |
| 318 |
\ExecuteOptions{origtt} |
| 319 |
\ProcessOptions\relax |
| 320 |
% \end{macrocode} |
| 321 |
% If the package |fix-cm.sty| is loaded, switch on the reduced design |
| 322 |
% size set, too. |
| 323 |
% \begin{macrocode} |
| 324 |
\@ifpackageloaded{fix-cm}{\hfofixcmtrue}{} |
| 325 |
% \end{macrocode} |
| 326 |
% This package needs the Cork encoding, \Tone. |
| 327 |
% \begin{macrocode} |
| 328 |
\RequirePackage[T1]{fontenc} |
| 329 |
% \end{macrocode} |
| 330 |
% If |fix-cm| has been used, load |fix-cm.sty| for consistence. |
| 331 |
% \begin{macrocode} |
| 332 |
\ifhfofixcm |
| 333 |
\typeout{hfoldsty: Using fewer design sizes (fix-cm)}% |
| 334 |
\RequirePackage{fix-cm} |
| 335 |
\else |
| 336 |
\typeout{hfoldsty: Using all design sizes}% |
| 337 |
\fi |
| 338 |
% \end{macrocode} |
| 339 |
% More robust if decisions. |
| 340 |
% \begin{macrocode} |
| 341 |
\RequirePackage{ifthen} |
| 342 |
% \end{macrocode} |
| 343 |
% \begin{macro}{\rmdefault} |
| 344 |
% \begin{macro}{\sfdefault} |
| 345 |
% \begin{macro}{\ttdefault} |
| 346 |
% Do the main task of this package, switch the three font families |
| 347 |
% from lining figures to the virtual fonts using oldstyle figures and |
| 348 |
% improved kerning with guillemets. |
| 349 |
% \begin{macrocode} |
| 350 |
\renewcommand\rmdefault{hfor} |
| 351 |
\renewcommand\sfdefault{hfoss} |
| 352 |
\ifhfo@oldstylett |
| 353 |
\renewcommand\ttdefault{hfott} |
| 354 |
\fi |
| 355 |
% \end{macrocode} |
| 356 |
% \end{macro} |
| 357 |
% \end{macro} |
| 358 |
% \end{macro} |
| 359 |
% \begin{macro}{\oldstylenums} |
| 360 |
% Redeclare the \cs{oldstylenums} command. |
| 361 |
% This version is more useful than the original one because it allows |
| 362 |
% to use ordinary text in its argument. |
| 363 |
% In ordinary text with oldstyle figures, it has only one effect |
| 364 |
% because it switches on oldstyle figures for the typewriter font, |
| 365 |
% too. |
| 366 |
% \begin{macrocode} |
| 367 |
\newcommand\hfo@oldstylenums{} |
| 368 |
\let\hfo@oldstylenums=\oldstylenums |
| 369 |
\DeclareRobustCommand{\oldstylenums}[1]{% |
| 370 |
\begingroup |
| 371 |
% \end{macrocode} |
| 372 |
% Redefine the family defaults in order to be available to change the |
| 373 |
% font family inside the argument. |
| 374 |
% \begin{macrocode} |
| 375 |
\renewcommand{\rmdefault}{hfor}% |
| 376 |
\renewcommand{\sfdefault}{hfoss}% |
| 377 |
\renewcommand{\ttdefault}{hfott}% |
| 378 |
\newif\ifhfo@knownfamily |
| 379 |
\hfo@knownfamilytrue |
| 380 |
% \end{macrocode} |
| 381 |
% If the font family is known switch to the corresponding font family |
| 382 |
% with oldstyle figures. |
| 383 |
% Some switches, e.g., \texttt{hfor}$\to$\texttt{hfor}, are performed |
| 384 |
% to avoid the fall-back call of the original \cs{oldstylenums} |
| 385 |
% command. |
| 386 |
% \begin{macrocode} |
| 387 |
\ifthenelse{\equal{\f@family}{cmr}\or\equal{\f@family}{hfor}}{% |
| 388 |
\fontfamily{\rmdefault}% |
| 389 |
}{% |
| 390 |
\ifthenelse{\equal{\f@family}{cmss}\or\equal{\f@family}{hfoss}}{% |
| 391 |
\fontfamily{\sfdefault}% |
| 392 |
}{% |
| 393 |
\ifthenelse{\equal{\f@family}{cmtt}\or\equal{\f@family}{hfott}}{% |
| 394 |
\fontfamily{\ttdefault}% |
| 395 |
}{% |
| 396 |
% \end{macrocode} |
| 397 |
% If the font family is unknown, call the original \cs{oldstylenums} |
| 398 |
% command that has been copied before. |
| 399 |
% \begin{macrocode} |
| 400 |
\hfo@oldstylenums{#1}\hfo@knownfamilyfalse |
| 401 |
}% |
| 402 |
}% |
| 403 |
}% |
| 404 |
% \end{macrocode} |
| 405 |
% Only select the modified font if the font family has been known. |
| 406 |
% \begin{macrocode} |
| 407 |
\ifhfo@knownfamily |
| 408 |
\selectfont |
| 409 |
#1% |
| 410 |
\fi |
| 411 |
\endgroup |
| 412 |
} |
| 413 |
% \end{macrocode} |
| 414 |
% \end{macro} |
| 415 |
% \begin{macro}{\newstylenums} |
| 416 |
% Declare an analogous \cs{newstylenums} command that switches back to |
| 417 |
% lining figures. |
| 418 |
% If the font family is unknown, do nothing before typesetting the |
| 419 |
% argument. |
| 420 |
% \begin{macrocode} |
| 421 |
\DeclareRobustCommand{\newstylenums}[1]{% |
| 422 |
\begingroup |
| 423 |
% \end{macrocode} |
| 424 |
% Redefine the family defaults in order to be available to change the |
| 425 |
% font family inside the argument. |
| 426 |
% \begin{macrocode} |
| 427 |
\renewcommand{\rmdefault}{cmr}% |
| 428 |
\renewcommand{\sfdefault}{cmss}% |
| 429 |
\renewcommand{\ttdefault}{cmtt}% |
| 430 |
\ifthenelse{\equal{\f@family}{hfor}}{% |
| 431 |
\fontfamily{\rmdefault}% |
| 432 |
}{% |
| 433 |
\ifthenelse{\equal{\f@family}{hfoss}}{% |
| 434 |
\fontfamily{\sfdefault}% |
| 435 |
}{% |
| 436 |
\ifthenelse{\equal{\f@family}{hfott}}{% |
| 437 |
\fontfamily{\ttdefault}% |
| 438 |
}{}% |
| 439 |
}% |
| 440 |
}% |
| 441 |
\selectfont |
| 442 |
#1% |
| 443 |
\endgroup |
| 444 |
} |
| 445 |
%</package> |
| 446 |
% \end{macrocode} |
| 447 |
% \end{macro} |
| 448 |
% |
| 449 |
% \section{Character protruding file for pdfcprot package} |
| 450 |
% |
| 451 |
% \subsection{Cork (\Tone) encoding} |
| 452 |
% |
| 453 |
% Roman medium upright. |
| 454 |
% \begin{macrocode} |
| 455 |
%<hformnT1>\expandafter\gdef\csname hformnT1\endcsname{% |
| 456 |
% \end{macrocode} |
| 457 |
% |
| 458 |
% Roman medium italics. |
| 459 |
% \begin{macrocode} |
| 460 |
%<hformitT1>\expandafter\gdef\csname hformitT1\endcsname{% |
| 461 |
% \end{macrocode} |
| 462 |
% |
| 463 |
% Roman medium slanted. |
| 464 |
% \begin{macrocode} |
| 465 |
%<hformslT1>\expandafter\gdef\csname hformslT1\endcsname{% |
| 466 |
% \end{macrocode} |
| 467 |
% |
| 468 |
% Roman bold-extended upright. |
| 469 |
% \begin{macrocode} |
| 470 |
%<hforbxnT1>\expandafter\gdef\csname hforbxnT1\endcsname{% |
| 471 |
% \end{macrocode} |
| 472 |
% |
| 473 |
% Roman bold-extended italics. |
| 474 |
% \begin{macrocode} |
| 475 |
%<hforbxitT1>\expandafter\gdef\csname hforbxitT1\endcsname{% |
| 476 |
% \end{macrocode} |
| 477 |
% |
| 478 |
% Roman bold-extended slanted. |
| 479 |
% \begin{macrocode} |
| 480 |
%<hforbxslT1>\expandafter\gdef\csname hforbxslT1\endcsname{% |
| 481 |
% \end{macrocode} |
| 482 |
% |
| 483 |
% Sans-serif medium upright. |
| 484 |
% \begin{macrocode} |
| 485 |
%<hfossmnT1>\expandafter\gdef\csname hfossmnT1\endcsname{% |
| 486 |
% \end{macrocode} |
| 487 |
% |
| 488 |
% Sans-serif medium italics. |
| 489 |
% \begin{macrocode} |
| 490 |
%<hfossmitT1>\expandafter\gdef\csname hfossmitT1\endcsname{% |
| 491 |
% \end{macrocode} |
| 492 |
% |
| 493 |
% Sans-serif medium slanted. |
| 494 |
% \begin{macrocode} |
| 495 |
%<hfossmslT1>\expandafter\gdef\csname hfossmslT1\endcsname{% |
| 496 |
% \end{macrocode} |
| 497 |
% |
| 498 |
% Sans-serif bold-extended upright. |
| 499 |
% \begin{macrocode} |
| 500 |
%<hfossbxnT1>\expandafter\gdef\csname hfossbxnT1\endcsname{% |
| 501 |
% \end{macrocode} |
| 502 |
% |
| 503 |
% Sans-serif bold-extended italics. |
| 504 |
% \begin{macrocode} |
| 505 |
%<hfossbxitT1>\expandafter\gdef\csname hfossbxitT1\endcsname{% |
| 506 |
% \end{macrocode} |
| 507 |
% |
| 508 |
% Sans-serif bold-extended slanted. |
| 509 |
% \begin{macrocode} |
| 510 |
%<hfossbxslT1>\expandafter\gdef\csname hfossbxslT1\endcsname{% |
| 511 |
% \end{macrocode} |
| 512 |
% |
| 513 |
% Common settings for all \Tone\ cpa files. |
| 514 |
% \begin{macrocode} |
| 515 |
%<*cpaT1> |
| 516 |
\lpcode\font 16=400 % `` |
| 517 |
\rpcode\font 17=400 % '' |
| 518 |
\rpcode\font 21=300 % -- |
| 519 |
\rpcode\font 22=200 % --- |
| 520 |
% german quotation marks |
| 521 |
\lpcode\font\quotedblbase=500 |
| 522 |
\rpcode\font\textquotedblleft=500 |
| 523 |
% set the protrusion of ",","-" and "." a bit smaller |
| 524 |
% than originally suggested by Han The Than |
| 525 |
\rpcode\font`\,=550 |
| 526 |
\rpcode\font`\-=550 |
| 527 |
\rpcode\font`\.=550 |
| 528 |
% originial Setting from Han The Thans protcode.tex |
| 529 |
\rpcode\font`\!=200 |
| 530 |
\rpcode\font`\;=500 |
| 531 |
\rpcode\font`\:=500 |
| 532 |
\rpcode\font`\?=200 |
| 533 |
\lpcode\font`\`=600 |
| 534 |
\rpcode\font`\'=600 |
| 535 |
\rpcode\font`\)=50 |
| 536 |
\rpcode\font`\A=\rpcode\font`\A |
| 537 |
\rpcode\font 196=50 % A umlaut |
| 538 |
\rpcode\font`\F=50 |
| 539 |
\rpcode\font`\K=50 |
| 540 |
\rpcode\font`\L=50 |
| 541 |
\rpcode\font`\T=50 |
| 542 |
\rpcode\font`\V=50 |
| 543 |
\rpcode\font`\W=50 |
| 544 |
\rpcode\font`\X=50 |
| 545 |
\rpcode\font`\Y=50 |
| 546 |
\rpcode\font`\k=50 |
| 547 |
\rpcode\font`\r=50 |
| 548 |
\rpcode\font`\t=50 |
| 549 |
\rpcode\font`\v=50 |
| 550 |
\rpcode\font`\w=50 |
| 551 |
\rpcode\font`\x=50 |
| 552 |
\rpcode\font`\y=50 |
| 553 |
\lpcode\font`\(=50 |
| 554 |
\lpcode\font`\A=50 |
| 555 |
\lpcode\font 196=\lpcode\font`\A % A umlaut |
| 556 |
\lpcode\font`\J=50 |
| 557 |
\lpcode\font`\T=50 |
| 558 |
\lpcode\font`\V=50 |
| 559 |
\lpcode\font`\W=50 |
| 560 |
\lpcode\font`\X=50 |
| 561 |
\lpcode\font`\Y=50 |
| 562 |
\lpcode\font`\v=50 |
| 563 |
\lpcode\font`\w=50 |
| 564 |
\lpcode\font`\x=50 |
| 565 |
\lpcode\font`\y=50 |
| 566 |
}% |
| 567 |
%</cpaT1> |
| 568 |
% \end{macrocode} |
| 569 |
% |
| 570 |
% \subsection{Text Companion (\TSone) encoding} |
| 571 |
% |
| 572 |
% Roman medium upright. |
| 573 |
% \begin{macrocode} |
| 574 |
%<hformnTS1>\expandafter\gdef\csname hformnTS1\endcsname{% |
| 575 |
% \end{macrocode} |
| 576 |
% |
| 577 |
% Roman medium italics. |
| 578 |
% \begin{macrocode} |
| 579 |
%<hformitTS1>\expandafter\gdef\csname hformitTS1\endcsname{% |
| 580 |
% \end{macrocode} |
| 581 |
% |
| 582 |
% Roman medium slanted. |
| 583 |
% \begin{macrocode} |
| 584 |
%<hformslTS1>\expandafter\gdef\csname hformslTS1\endcsname{% |
| 585 |
% \end{macrocode} |
| 586 |
% |
| 587 |
% Roman bold-extended upright. |
| 588 |
% \begin{macrocode} |
| 589 |
%<hforbxnTS1>\expandafter\gdef\csname hforbxnTS1\endcsname{% |
| 590 |
% \end{macrocode} |
| 591 |
% |
| 592 |
% Roman bold-extended italics. |
| 593 |
% \begin{macrocode} |
| 594 |
%<hforbxitTS1>\expandafter\gdef\csname hforbxitTS1\endcsname{% |
| 595 |
% \end{macrocode} |
| 596 |
% |
| 597 |
% Roman bold-extended slanted. |
| 598 |
% \begin{macrocode} |
| 599 |
%<hforbxslTS1>\expandafter\gdef\csname hforbxslTS1\endcsname{% |
| 600 |
% \end{macrocode} |
| 601 |
% |
| 602 |
% Sans-serif medium upright. |
| 603 |
% \begin{macrocode} |
| 604 |
%<hfossmnTS1>\expandafter\gdef\csname hfossmnTS1\endcsname{% |
| 605 |
% \end{macrocode} |
| 606 |
% |
| 607 |
% Sans-serif medium italics. |
| 608 |
% \begin{macrocode} |
| 609 |
%<hfossmitTS1>\expandafter\gdef\csname hfossmitTS1\endcsname{% |
| 610 |
% \end{macrocode} |
| 611 |
% |
| 612 |
% Sans-serif medium slanted. |
| 613 |
% \begin{macrocode} |
| 614 |
%<hfossmslTS1>\expandafter\gdef\csname hfossmslTS1\endcsname{% |
| 615 |
% \end{macrocode} |
| 616 |
% |
| 617 |
% Sans-serif bold-extended upright. |
| 618 |
% \begin{macrocode} |
| 619 |
%<hfossbxnTS1>\expandafter\gdef\csname hfossbxnTS1\endcsname{% |
| 620 |
% \end{macrocode} |
| 621 |
% |
| 622 |
% Sans-serif bold-extended italics. |
| 623 |
% \begin{macrocode} |
| 624 |
%<hfossbxitTS1>\expandafter\gdef\csname hfossbxitTS1\endcsname{% |
| 625 |
% \end{macrocode} |
| 626 |
% |
| 627 |
% Sans-serif bold-extended slanted. |
| 628 |
% \begin{macrocode} |
| 629 |
%<hfossbxslTS1>\expandafter\gdef\csname hfossbxslTS1\endcsname{% |
| 630 |
% \end{macrocode} |
| 631 |
% |
| 632 |
% Common settings for all \TSone\ cpa files. |
| 633 |
% \begin{macrocode} |
| 634 |
%<*cpaTS1> |
| 635 |
\rpcode\font 176=500 % \textdegree |
| 636 |
}% |
| 637 |
%</cpaTS1> |
| 638 |
% \end{macrocode} |
| 639 |
% |
| 640 |
% \section{fd files} |
| 641 |
% |
| 642 |
% \begin{macrocode} |
| 643 |
%<*omlhfor> |
| 644 |
\DeclareFontFamily{OML}{hfor}{\skewchar\font127 } |
| 645 |
\DeclareFontShape{OML}{hfor}{m}{n}% |
| 646 |
{<->ssub*cmm/m/it}{} |
| 647 |
\DeclareFontShape{OML}{hfor}{m}{it}% |
| 648 |
{<->ssub*cmm/m/it}{} |
| 649 |
\DeclareFontShape{OML}{hfor}{m}{sl}% |
| 650 |
{<->ssub*cmm/m/it}{} |
| 651 |
\DeclareFontShape{OML}{hfor}{m}{sc}% |
| 652 |
{<->ssub*cmm/m/it}{} |
| 653 |
\DeclareFontShape{OML}{hfor}{bx}{n}% |
| 654 |
{<->ssub*cmm/b/it}{} |
| 655 |
\DeclareFontShape{OML}{hfor}{bx}{it}% |
| 656 |
{<->ssub*cmm/b/it}{} |
| 657 |
\DeclareFontShape{OML}{hfor}{bx}{sl}% |
| 658 |
{<->ssub*cmm/b/it}{} |
| 659 |
\DeclareFontShape{OML}{hfor}{bx}{sc}% |
| 660 |
{<->ssub*cmm/b/it}{} |
| 661 |
%</omlhfor> |
| 662 |
% \end{macrocode} |
| 663 |
% |
| 664 |
% \begin{macrocode} |
| 665 |
%<*omshfor> |
| 666 |
\DeclareFontFamily{OMS}{hfor}{\skewchar\font48 } |
| 667 |
\DeclareFontShape{OMS}{hfor}{m}{n}% |
| 668 |
{<->ssub*cmsy/m/n}{} |
| 669 |
\DeclareFontShape{OMS}{hfor}{m}{it}% |
| 670 |
{<->ssub*cmsy/m/n}{} |
| 671 |
\DeclareFontShape{OMS}{hfor}{m}{sl}% |
| 672 |
{<->ssub*cmsy/m/n}{} |
| 673 |
\DeclareFontShape{OMS}{hfor}{m}{sc}% |
| 674 |
{<->ssub*cmsy/m/n}{} |
| 675 |
\DeclareFontShape{OMS}{hfor}{bx}{n}% |
| 676 |
{<->ssub*cmsy/b/n}{} |
| 677 |
\DeclareFontShape{OMS}{hfor}{bx}{it}% |
| 678 |
{<->ssub*cmsy/b/n}{} |
| 679 |
\DeclareFontShape{OMS}{hfor}{bx}{sl}% |
| 680 |
{<->ssub*cmsy/b/n}{} |
| 681 |
\DeclareFontShape{OMS}{hfor}{bx}{sc}% |
| 682 |
{<->ssub*cmsy/b/n}{} |
| 683 |
%</omshfor> |
| 684 |
% \end{macrocode} |
| 685 |
% |
| 686 |
% \begin{macrocode} |
| 687 |
%<*ts1hfor> |
| 688 |
\ifhfofixcm |
| 689 |
\typeout{ts1hfor.fd: Using fewer design sizes (fix-cm)}% |
| 690 |
\providecommand{\HFO@family}[5]{% |
| 691 |
\DeclareFontShape{#1}{#2}{#3}{#4}% |
| 692 |
{<-6><6-7><7-8><8-9><9-10><10-12><12-17><17->genb*#5}{}} |
| 693 |
\else |
| 694 |
\typeout{ts1hfor.fd: Using all design sizes}% |
| 695 |
\providecommand{\HFO@family}[5]{% |
| 696 |
\DeclareFontShape{#1}{#2}{#3}{#4}% |
| 697 |
{<5><6><7><8><9><10><10.95><12><14.4>% |
| 698 |
<17.28><20.74><24.88><29.86><35.83>genb*#5}{}} |
| 699 |
\fi |
| 700 |
\DeclareFontFamily{TS1}{hfor}{\hyphenchar\font\m@ne} |
| 701 |
\HFO@family{TS1}{hfor}{m}{n}{tcrm} |
| 702 |
\HFO@family{TS1}{hfor}{m}{sl}{tcsl} |
| 703 |
\HFO@family{TS1}{hfor}{m}{it}{tcti} |
| 704 |
\HFO@family{TS1}{hfor}{bx}{n}{tcbx} |
| 705 |
\HFO@family{TS1}{hfor}{b}{n}{tcrb} |
| 706 |
\HFO@family{TS1}{hfor}{bx}{it}{tcbi} |
| 707 |
\HFO@family{TS1}{hfor}{bx}{sl}{tcbl} |
| 708 |
\HFO@family{TS1}{hfor}{m}{ui}{tcui} |
| 709 |
%</ts1hfor> |
| 710 |
% \end{macrocode} |
| 711 |
% |
| 712 |
% \begin{macrocode} |
| 713 |
%<*ts1hfoss> |
| 714 |
\ifhfofixcm |
| 715 |
\typeout{ts1hfor.fd: Using fewer design sizes (fix-cm)}% |
| 716 |
\providecommand{\HFO@family}[5]{% |
| 717 |
\DeclareFontShape{#1}{#2}{#3}{#4}% |
| 718 |
{<-6><6-7><7-8><8-9><9-10><10-12><12-17><17->genb*#5}{}} |
| 719 |
\else |
| 720 |
\typeout{ts1hfor.fd: Using all design sizes}% |
| 721 |
\providecommand{\HFO@family}[5]{% |
| 722 |
\DeclareFontShape{#1}{#2}{#3}{#4}% |
| 723 |
{<5><6><7><8><9><10><10.95><12><14.4>% |
| 724 |
<17.28><20.74><24.88><29.86><35.83>genb*#5}{}} |
| 725 |
\fi |
| 726 |
\DeclareFontFamily{TS1}{hfoss}{\hyphenchar\font\m@ne} |
| 727 |
\HFO@family{TS1}{hfoss}{m}{n}{tcss} |
| 728 |
\HFO@family{TS1}{hfoss}{m}{sl}{tcsi} |
| 729 |
\HFO@family{TS1}{hfoss}{m}{it}{tcsi} |
| 730 |
\HFO@family{TS1}{hfoss}{bx}{n}{tcsx} |
| 731 |
\HFO@family{TS1}{hfoss}{bx}{it}{tcso} |
| 732 |
\HFO@family{TS1}{hfoss}{bx}{sl}{tcso} |
| 733 |
%</ts1hfoss> |
| 734 |
% \end{macrocode} |
| 735 |
% |
| 736 |
% \begin{macrocode} |
| 737 |
%<*ts1hfott> |
| 738 |
\ifhfofixcm |
| 739 |
\typeout{ts1hfor.fd: Using fewer design sizes (fix-cm)}% |
| 740 |
\providecommand{\HFO@family}[5]{% |
| 741 |
\DeclareFontShape{#1}{#2}{#3}{#4}% |
| 742 |
{<-6><6-7><7-8><8-9><9-10><10-12><12-17><17->genb*#5}{}} |
| 743 |
\else |
| 744 |
\typeout{ts1hfor.fd: Using all design sizes}% |
| 745 |
\providecommand{\HFO@family}[5]{% |
| 746 |
\DeclareFontShape{#1}{#2}{#3}{#4}% |
| 747 |
{<5><6><7><8><9><10><10.95><12><14.4>% |
| 748 |
<17.28><20.74><24.88><29.86><35.83>genb*#5}{}} |
| 749 |
\fi |
| 750 |
\DeclareFontFamily{TS1}{hfott}{\hyphenchar\font\m@ne} |
| 751 |
\HFO@ttfamily{TS1}{hfott}{m}{n}{tctt} |
| 752 |
\HFO@ttfamily{TS1}{hfott}{m}{sl}{tcst} |
| 753 |
\HFO@ttfamily{TS1}{hfott}{m}{it}{tcit} |
| 754 |
%</ts1hfott> |
| 755 |
% \end{macrocode} |
| 756 |
% |
| 757 |
% \begin{macrocode} |
| 758 |
%<*ts1hfovtt> |
| 759 |
\ifhfofixcm |
| 760 |
\typeout{ts1hfor.fd: Using fewer design sizes (fix-cm)}% |
| 761 |
\providecommand{\HFO@family}[5]{% |
| 762 |
\DeclareFontShape{#1}{#2}{#3}{#4}% |
| 763 |
{<-6><6-7><7-8><8-9><9-10><10-12><12-17><17->genb*#5}{}} |
| 764 |
\else |
| 765 |
\typeout{ts1hfor.fd: Using all design sizes}% |
| 766 |
\providecommand{\HFO@family}[5]{% |
| 767 |
\DeclareFontShape{#1}{#2}{#3}{#4}% |
| 768 |
{<5><6><7><8><9><10><10.95><12><14.4>% |
| 769 |
<17.28><20.74><24.88><29.86><35.83>genb*#5}{}} |
| 770 |
\fi |
| 771 |
\DeclareFontFamily{TS1}{hfovtt}{} |
| 772 |
\HFO@ttfamily{TS1}{hfovtt}{m}{n}{tcvt} |
| 773 |
\HFO@ttfamily{TS1}{hfovtt}{m}{it}{tcvi} |
| 774 |
%</ts1hfovtt> |
| 775 |
% \end{macrocode} |
| 776 |
% |
| 777 |
% |
| 778 |
% \Finale |