1 % \iffalse meta-comment
4 % The LaTeX3 Project and any individual authors listed elsewhere
7 % This file is part of the LaTeX base system.
8 % -------------------------------------------
10 % It may be distributed and/or modified under the
11 % conditions of the LaTeX Project Public License, either version 1.3c
12 % of this license or (at your option) any later version.
13 % The latest version of this license is in
14 % http://www.latex-project.org/lppl.txt
15 % and version 1.3c or later is part of all distributions of LaTeX
16 % version 2005/12/01 or later.
18 % This file has the LPPL maintenance status "maintained".
20 % The list of all files belonging to the LaTeX base distribution is
21 % given in the file `manifest.txt'. See also `legal.txt' for additional
24 % The list of derived (unpacked) files belonging to the distribution
25 % and covered by LPPL is defined by the unpacking scripts (with
26 % extension .ins) which are part of the distribution.
30 %%% From File: ltoutenc.dtx
31 %\NeedsTeXFormat{LaTeX2e}[2000/06/01]
32 %<OT1>\ProvidesFile{ot1enc.def}
33 %<T1>\ProvidesFile{t1enc.def}
34 %<OMS>\ProvidesFile{omsenc.def}
35 %<OML>\ProvidesFile{omlenc.def}
36 %<OT4>\ProvidesFile{ot4enc.def}
37 %<TS1>\ProvidesFile{ts1enc.def}[2001/06/05 v3.0e (jk/car/fm)
38 %<package>\ProvidesPackage{fontenc}
39 %<TS1sty>\ProvidesPackage{textcomp}
40 %<OT1|T1|OMS|OML|OT4|package|TS1sty> [2005/09/27 v1.99g
41 %<OT1|T1|OMS|OML|OT4|TS1> Standard LaTeX file]
42 %<package|TS1sty> Standard LaTeX package]
46 \ProvidesFile{ltoutenc.dtx}
47 [2015/02/21 v1.99n LaTeX Kernel (font encodings)]
49 \documentclass{ltxdoc}
50 \GetFileInfo{ltoutenc.dtx}
62 \MaintainedByLaTeXTeam{latex}
72 % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
73 % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
74 % Digits \0\1\2\3\4\5\6\7\8\9
75 % Exclamation \! Double quote \" Hash (number) \#
76 % Dollar \$ Percent \% Ampersand \&
77 % Acute accent \' Left paren \( Right paren \)
78 % Asterisk \* Plus \+ Comma \,
79 % Minus \- Point \. Solidus \/
80 % Colon \: Semicolon \; Less than \<
81 % Equals \= Greater than \> Question mark \?
82 % Commercial at \@ Left bracket \[ Backslash \\
83 % Right bracket \] Circumflex \^ Underscore \_
84 % Grave accent \` Left brace \{ Vertical bar \|
85 % Right brace \} Tilde \~}
88 % \changes{v1.99e}{2004/02/13}{Documentation fixes: typos}
89 % \changes{v1.9k}{1998/01/12}{Added \cs{ProvidesPackage}
91 % \changes{v1.9i}{1997/12/19}{Documentation corrections.}
92 % \changes{v1.9h}{1997/12/17}{Documentation changes and additions.}
93 % \changes{v1.9h}{1997/12/17}{Added textcomp.sty.}
94 % \changes{v1.9f}{1997/08/29}{Added OT4 encoding,
95 % provided by Marcin Woli\'nski.}
96 % \changes{v1.7r}{1995/11/28}{doc fixes}
97 % \changes{v1.7h}{1995/04/21}{Added \cs{null} \cs{k} latex/1274}
98 % \changes{v1.7f}{1994/12/14}{Added braces to \cs{copyright} so it
99 % works unbraced in subscripts.}
100 % \changes{v1.7f}{1994/12/14}{Added check for math mode in
101 % \cs{@changed@cmd}.}
102 % \changes{v1.7f}{1994/12/14}{Commented out \cs{textasciicircum},
103 % \cs{textasciitilde}, \cs{textbackslash}, \cs{textbar},
104 % \cs{textgreater}, \cs{texthyphenchar}, \cs{texthyphen} and
105 % \cs{textless} to save memory.}
106 % \changes{v1.7e}{1994/12/10}{Added documentation for the OML encoding.}
107 % \changes{v1.7e}{1994/12/10}{Replaced width with \cs{@width} and
108 % ditto height in vrules.}
109 % \changes{v1.7d}{1994/12/08}{Added \cs{null} and \cs{sh@ft} to \cs{b}
111 % \changes{v1.7c}{1994/12/05}{Added braces to \cs{textcircled}.}
112 % \changes{v1.7b}{1994/12/02}{Fixed a bug with \cs{a}.}
113 % \changes{v1.7a}{1994/11/30}{Added new code for encoding-specific
114 % commands. These now expand in the mouth, which means that
115 % ligaturing and kerning can happen.}
116 % \changes{v1.6i}{1994/11/22}{Fixed empty accents. Again.}
117 % \changes{v1.6i}{1994/11/22}{Corrected \cs{dots} so that there's no
118 % kerning in monowidth fonts.}
119 % \changes{v1.6i}{1994/11/22}{Corrected typo with
120 % \cs{mathunderscore}.}
121 % \changes{v1.6h}{1994/11/17}{(DPC) \cs{@tempa} to \cs{reserved@a}}
122 % \changes{v1.6d}{1994/11/02}{Wrapped lines longer than 70 characters.}
123 % \changes{v1.6d}{1994/10/30}{Added math commands.}
124 % \changes{v1.6d}{1994/10/30}{Added OML encoding.}
125 % \changes{v1.6d}{1994/10/30}{Added \cs{textcircled}.}
126 % \changes{v1.6d}{1994/10/30}{Added \cs{DeclareTextCompositeCommand}.}
127 % \changes{v1.6c}{1994/10/29}{Renamed \cs{P}, \cs{S}, \cs{dag} and
128 % \cs{ddag} to \cs{textparagraph}, \cs{textsection},
129 % \cs{textdagger} and \cs{textdaggerdbl}.}
130 % \changes{v1.6b}{1994/10/27}{Removed the enc.def files}
131 % \changes{v1.6a}{1994/10/25}{Added \cs{ProvideTextCommand},
132 % \cs{UseTextSymbol},
133 % \cs{UseTextAccent},
134 % \cs{DeclareTextSymbolDefault},
135 % \cs{DeclareTextAccentDefault},
136 % \cs{DeclareTextCommandDefault}, and
137 % \cs{ProvideTextCommandDefault}.}
138 % \changes{v1.5m}{1994/10/18}{Added new definitions of \cs{patterns}
139 % and \cs{hyphenation}.}
140 % \changes{v1.5l}{1994/10/07}{Moved the ogonek accent.}
141 % \changes{v1.5k}{1994/05/18}{Removed braces from \cs{pounds} and
143 % \changes{v1.5k}{1994/05/18}{Replaced \cs{defaultencoding} with
144 % \cs{encodingdefault}.}
145 % \changes{v1.5k}{1994/05/18}{Made dotted-i produce `i'.}
146 % \changes{v1.5j}{1994/05/17}{Added braces to \cs{pounds} so it works
148 % \changes{v1.5i}{1994/05/16}{Fixed a bug with \cs{d}.}
149 % \changes{v1.5h}{1994/05/16}{Added \cs{NG}, \cs{ng}, \cs{TH},
150 % \cs{th}, \cs{DH}, \cs{dh}, \cs{DJ} and \cs{dj}.}
151 % \changes{v1.5h}{1994/05/16}{Added \cs{r} (ring accent) and \cs{k}
153 % \changes{v1.5h}{1994/05/16}{Removed \cs{P} from the OT1 definitions
155 % \changes{v1.5h}{1994/05/16}{Fixed a bug with \cs{pounds}.}
156 % \changes{v1.5g}{1994/05/16}{Made fontenc.sty use the new mixed-case
158 % \changes{v1.5f}{1994/05/16}{Revert code so that the encoding
159 % given is used in \cs{DeclareTextCommand} (FMi)}
160 % \changes{v1.5f}{1994/05/16}{enc files now have uc encoding name
162 % \changes{v1.5e}{1994/05/14}{Replaced \cs{ENC@cmd} by \cs{ENC-cmd}.}
163 % \changes{v1.5d}{1994/05/14}{Rewrote \cs{DeclareTextCommand} to define
164 % its argument to use the current encoding by default, rather than
165 % the encoding provided to \cs{DeclareTextCommand}.}
166 % \changes{v1.5d}{1994/05/14}{Tidied up the documentation.}
167 % \changes{v1.5c}{1994/05/14}{Added the fontenc package.}
168 % \changes{v1.5c}{1994/05/14}{Fixed a bug which caused an infinite loop
169 % if \cs{f@encoding} was incorrectly set.}
170 % \changes{v1.5c}{1994/05/14}{Moved fontsmpl to its own dtx file.}
171 % \changes{v1.5b}{1994/05/13}{Added \cmd\{, \cmd\} and \cmd\$.}
172 % \changes{v1.5b}{1994/05/13}
173 % {Replaces \cs{space} by `~' in \cs{csname}.}
174 % \changes{v1.5b}{1994/05/13}{Renamed \cs{DeclareProtectedCommand} to
175 % \cs{DeclareRobustCommand}.}
176 % \changes{v1.5a}{1994/05/11}{Renamed the commands again. Made the
177 % encoding part of the command syntax. Added the
178 % \cs{DeclareTextCommand} interface. Used
179 % \cs{DeclareProtectedCommand}.}
180 % \changes{v1.4a}{1994/05/01}{Renamed the commands, removed the
181 % \cs{EncodingSpecific} command. Turned all slots into decimal.
183 % \changes{v1.4a}{1994/05/01}{Removed Rokicki's encoding.}
184 % \changes{v1.3d}{1993/12/18}{Some T1 stuff had drifted into the OT1
186 % \changes{v1.3c}{1993/12/18}{A new syntax, separating
187 % accent-definitions from encoding-specific definitions, and
188 % allowing encoding-specific \cs{chardef}, \cs{let}, etc.}
189 % \changes{v1.3c}{1993/12/18}{Rewrote for the new syntax of
190 % \cs{EncodingSpecific}.}
191 % \changes{v1.3b}{1993/12/18}{Corrected typos.}
192 % \changes{v1.3b}{1993/12/18}{Replaced the missing last argument to
193 % \cs{DeclareFontEncoding}.}
194 % \changes{v1.3a}{1993/12/18}{Replaced OT3 by XXX}
195 % \changes{v1.3}{1993/12/17}{Added \cs{EncodingSpecificAccent},
196 % \cs{EncodingSpecificAccentedLetter} and
197 % \cs{EncodingSpecificCommand}.}
198 % \changes{v1.3}{1993/12/17}{Made Rokicki's encoding a proper encoding
199 % scheme rather than a variant of OT1.}
200 % \changes{v1.2b}{1993/12/13}{Corrected file name in driver code.}
201 % \changes{v1.2a}{1993/12/11}{Corrected for t1enc, math.}
202 % \changes{v1.2}{1993/12/10}{Added source code for t1enc.sty.}
203 % \changes{v1.1}{1993/12/07}{Made all character numbers decimal.}
204 % \changes{v1.1}{1993/12/07}{Removed a lot of equal signs and the
206 % \changes{v1.99m}{2015/02/21}
207 % {Removed autoload code}
210 % \section{Font encodings}
212 % This section of the kernel contains commands for declaring
214 % commands, such as accents. It also contains the code for some of
215 % the encoding files, including |omlenc.def|,
216 % |omsenc.def|, |t1enc.def| and |ot1enc.def| files, which define
218 % |OMS|, |T1| and |OT1| encodings, and the |fontenc| package
219 % for selecting encodings.
221 % The |fontenc| package has options for encodings, of which the
222 % last option is the default encoding. For example, to use the
223 % |OT2|, |OT3| and |T1| encodings, with |T1| as the default, you
226 % \usepackage[OT2,OT3,T1]{fontenc}
228 % The standard kernel set-up loads font encoding files and selects
229 % an encoding as follows.
231 % \input {omlenc.def}
233 % \input {ot1enc.def}
234 % \input {omsenc.def}
237 % Note that the files in the standard |inputenc| package depend on
238 % this behaviour of the kernel.
240 % The syntax for declaring encoding-specific commands is:
242 % |\DeclareTextCommand{|^^A
243 % \meta{command}|}{|^^A
244 % \meta{encoding}|}|\\\hspace*{\fill}|[|^^A
245 % \meta{number}|][|^^A
246 % \meta{default}|]{|^^A
249 % This command is like |\newcommand|, except that it defines a
250 % command which is specific to one encoding. The resulting command
251 % is always robust, even if its definition is fragile. For example,
252 % the definition of |\l| in the |OT1| encoding is:
254 % \DeclareTextCommand{\l}{OT1}{{\@xxxii l}}
256 % |\DeclareTextCommand| takes the same optional arguments as
259 % |\ProvideTextCommand{|^^A
260 % \meta{command}|}{|^^A
261 % \meta{encoding}|}|\\\hspace*{\fill}|[|^^A
262 % \meta{number}|][|^^A
263 % \meta{default}|]{|^^A
266 % This acts like |\DeclareTextCommand|, but does nothing if the
267 % command is already defined.
269 % |\DeclareTextSymbol{|^^A
270 % \meta{command}|}{|^^A
271 % \meta{encoding}|}{|^^A
274 % This command defines a text symbol, with a particular slot in that
275 % encoding. The commands:
276 % \changes{v1.9h}{1997/12/17}{Example corrected, braces removed.}
278 % \DeclareTextSymbol{\ss}{OT1}{25}
279 % \DeclareTextCommand{\ss}{OT1}{\char25 }
281 % have the same effect, but the |\DeclareTextSymbol| is faster.
283 % |\DeclareTextAccent{|^^A
284 % \meta{command}|}{|^^A
285 % \meta{encoding}|}{|^^A
288 % \changes{v1.8e}{1996/11/23}{Corrected description}
289 % \changes{v1.9k}{1997/12/31}{Further correction}
290 % This command declares a text accent. The commands:
292 % \DeclareTextAccent{\"}{OT1}{127}
293 % \DeclareTextCommand{\"}{OT1}{\add@accent {127}}
295 % have the same effect.
296 % \changes{v1.8c}{1996/10/27}
297 % {Corrected syntax descriptions}
299 % |\DeclareTextComposite{|^^A
300 % \meta{command}|}|\\\hspace*{\fill}|{|^^A
301 % \meta{encoding}|}{|^^A
302 % \meta{argument}|}{|^^A
305 % This command declares a composite letter, for example in the |T1|
306 % encoding |\'{a}| is slot 225, which is declared by:
308 % \DeclareTextComposite{\'}{T1}{a}{225}
310 % \changes{v1.8e}{1996/11/23}
311 % {Corrected description}
312 % The \emph{command} will normally have been declared with
313 % |\DeclareTextAccent|, or as a one-argument |\DeclareTextCommand|.
315 % |\DeclareTextComposite| is the most common example of using
316 % the more general declaration
317 % |\DeclareTextCompositeCommand|, which can define a composite
318 % to be an arbitrary piece of text.
320 % |\DeclareTextCompositeCommand{|^^A
321 % \meta{command}|}|\\\hspace*{\fill}|{|^^A
322 % \meta{encoding}|}{|^^A
323 % \meta{argument}|}{|^^A
326 % For example, in the OT1 encoding \r A has a hand-crafted
327 % definition this is declared as follows
329 % \DeclareTextCompositeCommand{\r}{OT1}{A}
330 % {\leavevmode\setbox\z@\hbox{!}\dimen@\ht\z@\advance\dimen@-1ex%
331 % \rlap{\raise.67\dimen@\hbox{\char23}}A}
333 % \changes{v1.8e}{1996/11/23}
334 % {Corrected description}
335 % The \emph{command} will normally have been declared with
336 % |\DeclareTextAccent|, or as a one-argument |\DeclareTextCommand|.
338 % The commands defined using the above declarations can be used in
340 % Normally they are used by just calling the command in the
341 % appropriate encoding, for example |\ss|. However, sometimes you
342 % may wish to use a command in an encoding where it is not defined.
343 % If the command has no arguments, then you can use it in another
344 % encoding by calling |\UseTextSymbol|:
346 % |\UseTextSymbol{|^^A
347 % \meta{encoding}|}{|^^A
351 % \task{?}{Document the problems of these commands, see pr/3160}
352 % \changes{v1.9e}{1997/08/05}{Corrected order of arguments in
353 % \cs{UseTextSymbol} example.}
354 % For example, |\UseTextSymbol{OT1}{\ss}| has the same effect as:
356 % {\fontencoding{OT1}\selectfont\ss}
358 % If the command has one argument then you can use it in another
359 % encoding by calling
362 % |\UseTextAccent{|^^A
363 % \meta{encoding}|}{|^^A
364 % \meta{command}|}{|^^A
367 % For example, if the current encoding is |OT2| then
368 % |\UseTextAccent{OT1}{\'}{a}| has the same effect as:
370 % {\fontencoding{OT1}\selectfont\'{\fontencoding{OT2}\selectfont a}}
372 % \changes{v1.8e}{1996/11/23}
373 % {Extended description}
374 % You can also declare a default definition for a text command, which
375 % will be used if the current encoding has no appropriate definition.
376 % Such use will also set the definition for this command in the
377 % current encoding to equal this default definition; this makes
378 % subsequent uses of the command much faster.
380 % |\DeclareTextCommandDefault{|^^A
381 % \meta{command}|}{|^^A
382 % \meta{definition}|}|
384 % For example, the default definition of the command
385 % |\textonequarter| (which produces the fraction $\frac14$) could be
386 % built using math mode:
388 % \DeclareTextCommandDefault{\textonequarter}{\ensuremath {\frac14}}
390 % There is a matching |\Provide| command which will not override an
391 % existing default definition:
393 % |\ProvideTextCommandDefault{|^^A
394 % \meta{command}|}{|^^A
395 % \meta{definition}|}|
397 % The most common use for these commands is to use symbols from
398 % other encodings, so there are some optimizations provided:
400 % |\DeclareTextSymbolDefault{|^^A
401 % \meta{command}|}|^^A
402 % \meta{encoding}|}|\\
403 % |\DeclareTextAccentDefault{|^^A
404 % \meta{command}|}|^^A
409 % |\DeclareTextCommandDefault{|^^A
410 % \meta{command}|}|\\\hspace*{\fill}^^A
411 % |{\UseTextSymbol{|^^A
412 % \meta{encoding}|}{|\meta{command}|}}| \\
413 % |\DeclareTextCommandDefault[1]{|^^A
414 % \meta{command}|}|\\\hspace*{\fill}^^A
415 % |{\UseTextAccent{|^^A
416 % \meta{encoding}|}{|\meta{command}|}{#1}}|
418 % For example, to make |OT1| the default encoding for |\ss| and
421 % \DeclareTextSymbolDefault{\ss}{OT1}
422 % \DeclareTextAccentDefault{\'}{OT1}
424 % Note that you can use these commands on any zero- or one-argument
425 % commands declared with |\DeclareText*| or |\ProvideText*|, not
426 % just those defined using |\DeclareTextSymbol| or
427 % |\DeclareTextAccent|.
429 % \subsection{Removing encoding-specific commands}
430 % \label{sec:removeencspec}
432 % \changes{v1.9o}{1998/03/20}{Documentation added for pr/2783}
434 % In some cases encoding definitions are given to provide some limited
435 % support since nothing better is available, for example, the definition
436 % for |\textdollar| in \texttt{OT1} is a hack since \$ and \pounds{}
437 % actually share the same slot in this encoding. Thus if such a glyph
438 % becomes available in a different encoding (e.g., \texttt{TS1}) one
439 % would like to get rid of the flacky one and make the default
440 % definition point to the new encoding. In such a case defining
442 % \DeclareTextSymbol{\textdollar}{TS1}{36}
443 % \DeclareTextSymbolDefault{\textdollar}{TS1}
445 % is not enough since if typesetting in \texttt{OT1} \LaTeX{} will
446 % still find the encoding specific-definition for \texttt{OT1} and
447 % therefore ignore the new default.
448 % Therefore to ensure that in this case the \texttt{TS1} version is
449 % used we have to remove the \texttt{OT1} declaration:
451 % \UndeclareTextCommand{\textdollar}{OT1}
454 % Since the \$ sign is a proper glyph in the \texttt{T1} encoding there
455 % is no point removing its definition and forcing \LaTeX{} to pick up
456 % the \texttt{TS1} version if typesetting in this encoding.
457 % However, assume you want to use the variant dollar sign,
458 % i.e., \textdollaroldstyle{}
459 % for your dollars. In that case you have to get rid of the \texttt{T1}
460 % declaration as well, e.g., the following would do that for you:
462 % \UndeclareTextCommand{\textdollar}{OT1}
463 % \UndeclareTextCommand{\textdollar} {T1}
464 % \DeclareTextCommandDefault{\textdollar}
465 % {\UseTextSymbol{TS1}\textdollaroldstyle}
468 % \subsection{The order of declarations}\label{sec:orderofdecls}
470 % \changes{v1.9o}{1998/03/20}{Documentation added about order of decls}
472 % If an encoding-specific command is defined for more than one encoding,
473 % then it will execute fastest in the encoding in which it was defined
474 % last since its top-level definition will be set up to execute in that
475 % encoding without any overhead.
477 % For this reason the file \texttt{fonttext.ltx} currently first loads
478 % the definitions for the \texttt{T1} encoding and then those for the
479 % \texttt{OT1} encoding so that typesetting in \texttt{OT1} is optimized
480 % since that is (still) the default. However, when \texttt{T1} is
481 % explicitly requested (via |\usepackage[T1]{fontenc}|) the
482 % top-level definitions are automatically changed to favour
483 % \texttt{T1} since its declarations are reloaded in the process.
485 % For the same reason default declarations should never come last since
486 % they are implemented as a special encoding themselves (with the
488 % Specifying them last would simply mean to make those encoding-specific
489 % commands equally inefficient in all encodings. Therefore the
490 % \texttt{textcomp} package, for example, first sets up all defaults
491 % to point to \texttt{TS1} and then declares the commands in the
492 % \texttt{TS1} encoding.
497 % \subsection{Docstrip modules}
499 % This |.dtx| file is be used to generate several related files
500 % containing font encoding definitions. The mutually exclusive
501 % docstrip options are listed here.
503 % \begin{tabular}{lp{10cm}}
504 % |T1| & generates |t1enc.def| for the Cork encoding. \\
505 % |TS1| & generates |ts1enc.def| for the Text Companion
507 % |TS1sty| & generates |textcomp.sty|, package that sets up use
508 % of the Text Companion encoding. \\
509 % |OT1| & generates |ot1enc.def| for Knuth's CM encoding. \\
510 % |OMS| & generates |omsenc.def| for Knuth's
511 % math symbol encoding. \\
512 % |OML| & generates |omlenc.def| for Knuth's
513 % math letters encoding. \\
514 % |OT4| & generates |ot4enc.def| for the Polish extension to
515 % the OT1 encoding, created by B.~Jackowski and
516 % M.~Ry\'cko for use with the Polish version of
517 % Computer Modern and Computer Concrete.\\
518 % |package| & generates |fontenc.sty| for
519 % selecting encodings. \\
520 % |2ekernel| & for the kernel commands.\\
523 % \changes{1.0d}{1993/07/17}{changed \cs{catcoding} @}
524 % \changes{1.0f}{1993/08/13}{Protected against active @ sign.}
525 % \changes{1.0g}{1993/08/16}{Needs space after \cs{string}}
526 % \changes{1.1}{1993/12/07}{Protected all special characters with
528 % \changes{1.3}{1993/12/17}{Removed the catcode hackery, since the file
529 % is only read as a package in the preamble, and removed all the
530 % messages on the screen, which just confuse users. Replaced them
531 % by the appropriate \cs{ProvidesPackage} commands. Added XXXenc.}
532 % \changes{1.3b}{1993/12/18}
533 % {Fixed typos with \cs{ProvidesPackage} lines.
534 % Added the \cs{NeedsTeXFormat} line. Added the last argument to
535 % \cs{DeclareEncoding}. Moved the use of the encodings to after their
537 % \changes{1.4a}{1994/04/29}{Removed Rokicki's OT1 variant encoding.
538 % Moved the driver to the top.}
539 % \changes{1.5a}{1994/05/11}{Made T1 and OT1 generate packages rather
540 % than def files. Renamed the `package' module to `teststy'.}
541 % \changes{1.5d}{1994/05/14}{Moved the driver to the top.}
543 % \subsection{Definitions for the kernel}
545 % \subsubsection{Declaration commands}
547 % \changes{1.3}{1993/12/17}{Added this section}
548 % \changes{1.3c}{1993/12/18}{Split \cs{EncodingSpecificAccent} up into
549 % \cs{EncodingSpecific} and \cs{DeclareAccent}.}
550 % \changes{1.4a}{1994/04/29}{Removed \cs{EncodingSpecific}. Renamed
551 % all the commands. Added \cs{DeclareTextGlyph} and
552 % \cs{UndeclareTextCommand}.}
553 % \changes{v1.5a}{1994/05/11}{Reimplemented \cs{DeclareTextCommand}
554 % using \cs{@changed@cmd} and \cs{DeclareProtectedCommand}.}
555 % \changes{v1.5c}{1994/05/14}{Fixed a bug which caused an infinite loop
556 % if \cs{f@encoding} was incorrectly set.}
557 % \changes{v1.5d}{1994/05/14}{Rewrote \cs{DeclareTextCommand} to define
558 % its argument to use the current encoding by default, rather than
559 % the encoding provided to \cs{DeclareTextCommand}.}
560 % \changes{v1.6a}{1994/10/25}{Added the \cs{Provide} commands,
561 % and the default definitions.}
563 % This section contains definitions for commands such as accents which
564 % depend on the current encoding. These commands will usually be kept
565 % in |.def| files, for example |ot1enc.def| contains the definitions
566 % for the |OT1| encoding.
569 \message{font encodings,}
572 % \changes{v1.5d}{1994/10/27}{Rewrote \cs{DeclareTextSymbol} to define
573 % its argument to use the current encoding by default, to fit with
574 % \cs{DeclareTextCommand}.}
576 % \changes{v1.7a}{1994/11/30}{Redefined \cs{@changed@cmd} to expand in
578 % \changes{v1.7a}{1994/11/30}{Removed \cs{@changed@x@mouth} since
579 % \cs{@changed@x} now expands in the mouth.}
581 % \changes{v1.7r}{1995/11/28}{Renamed \cs{@changed@x@err} to
582 % \cs{TextSymbolUnavailable}.}
583 % \changes{v1.7r}{1995/11/28}{Added math mode checks to text commands.}
584 % Far too many macros in one block here!
585 % \begin{macro}{\DeclareTextCommand}
586 % \begin{macro}{\ProvideTextCommand}
587 % \begin{macro}{\DeclareTextSymbol}
588 % \begin{macro}{\@dec@text@cmd}
589 % \begin{macro}{\chardef@text@cmd}
590 % \begin{macro}{\@changed@cmd}
591 % \begin{macro}{\@changed@x}
592 % \begin{macro}{\TextSymbolUnavailable}
593 % \begin{macro}{\@inmathwarn}
596 % \DeclareTextCommand{\foo}{T1}...
598 % then |\foo| is defined to be |\T1-cmd \foo \T1\foo|,
599 % where |\T1\foo| is \emph{one} control sequence, not two!
600 % We then call |\newcommand| to define |\T1\foo|.
602 \def\DeclareTextCommand{%
603 \@dec@text@cmd\newcommand}
607 \def\ProvideTextCommand{%
608 \@dec@text@cmd\providecommand}
612 \def\@dec@text@cmd#1#2#3{%
613 \expandafter\def\expandafter#2%
615 \csname#3-cmd\expandafter\endcsname
617 \csname#3\string#2\endcsname
619 \let\@ifdefinable\@rc@ifdefinable
620 \expandafter#1\csname#3\string#2\endcsname}
622 % \changes{v1.99d}{2004/02/06}{New command added to fix
623 % severe bug: pr/3563}
624 % This command was introduced to fix a major bug
625 % in |\@dec@text@cmd| without changing that command itself.
626 % This was thought to be necessary because it is defined
627 % in more than one package. (Perhaps the more serious bug is to put
628 % complex low-level commands like this in packages?)
630 % The problem it solves is that whereas both |\newcommand| and
631 % |\providecommand| (used just above) both handle the
632 % resetting of |\@ifdefinable| (following its disabling in
633 % |\@dec@text@cmd|), the primitive |\chardef| neither needs the
634 % disabling, nor does the resetting.
637 \def\chardef@text@cmd{%
638 \let\@ifdefinable\@@ifdefinable
641 \def\DeclareTextSymbol#1#2#3{%
642 \@dec@text@cmd\chardef@text@cmd#1{#2}#3\relax
646 % The declarations are only available before |\begin{document}|.
647 % \changes{v1.7h}{1995/05/21}{Added several \cs{@onlypreamble}}
648 % \changes{v1.7k}{1995/06/05}{Removed \cs{protected@cmd} and replaced
649 % with explicit \cs{noexpand}.}
651 \@onlypreamble\DeclareTextCommand
652 \@onlypreamble\DeclareTextSymbol
654 % The sneaky bit in all this is what |\T1-cmd \foo \T1\foo| does.
655 % There are five possibilities, depending on the current values of
656 % |\protect|, |\cf@encoding| and |\ifmmode|:
658 % \item If |\protect| is |\@typeset@protect| and |\cf@encoding| is
659 % |T1|, then we execute |\T1\foo|. This should be the normal
660 % behaviour, and is optimized for speed.
661 % \item If |\protect| is |\@typeset@protect|, |\cf@encoding| is
662 % (say) |OT1|, and |\OT1\foo| is defined, then we execute
664 % \item If |\protect| is |\@typeset@protect|, |\cf@encoding| is
665 % (say) |OT1|, we're in text mode,
666 % and |\OT1\foo| is undefined, then we define
667 % |\OT1\foo| to be the default value of |\foo|, and execute
669 % \item If |\protect| is |\@typeset@protect|, |\cf@encoding| is
670 % (say) |OT1|, we're in math mode,
671 % and |\OT1\foo| is undefined, then we execute the default value
672 % of |\foo|. (This is necessary so that things like
673 % |$X_\copyright$| work properly.)
674 % \item If |\protect| is not |\@typeset@protect| then we execute
675 % |\noexpand\foo|. For example, if we are writing to a file,
676 % then this results in |\foo| being written. If we are in a
677 % |\mark|, then |\foo| will be put in the mark---since |\foo| is
678 % robust, it will then survive all the things which may happen
679 % to it whilst it's a |\mark|.
681 % So after all that, we will either execute the appropriate
682 % definition of |\foo| for the current encoding, or we will execute
685 % The default value of |\foo| is |\?\foo| if it is defined, and an
686 % error message otherwise.
688 % When the encoding is changed from |T1| to |OT1|, |\T1-cmd| is
689 % defined to be |\@changed@cmd| and |\OT1-cmd| is defined to be
690 % |\@current@cmd|. This means that the test for what the current
691 % encoding is can be performed quickly.
693 \def\@current@cmd#1{%
694 \ifx\protect\@typeset@protect
697 \noexpand#1\expandafter\@gobble
702 \def\@changed@cmd#1#2{%
703 \ifx\protect\@typeset@protect
705 \expandafter\ifx\csname\cf@encoding\string#1\endcsname\relax
706 \expandafter\ifx\csname ?\string#1\endcsname\relax
707 \expandafter\def\csname ?\string#1\endcsname{%
708 \TextSymbolUnavailable#1%
711 \global\expandafter\let
712 \csname\cf@encoding \string#1\expandafter\endcsname
713 \csname ?\string#1\endcsname
715 \csname\cf@encoding\string#1%
716 \expandafter\endcsname
721 % \changes{v1.7m}{1995/10/09}{Autoload error}
722 % \changes{v1.7v}{1995/12/05}{Changed \cs{TextSymbolUnavailable} text}
724 \gdef\TextSymbolUnavailable#1{%
726 Command \protect#1 unavailable in encoding \cf@encoding%
729 % The command |\@inmathwarn| produces a warning message if we are
730 % currently in math mode. Note that since this command is used
731 % inside text commands, it can't call |\relax| before the
732 % |\ifmmode|. This means that it is possible for the warning to
733 % fail to be issued at the beginning of a row of an halign whose
734 % template enters math mode. This is probably a bad feature, but
735 % there's not much that can be done about it, since adding a |\relax|
736 % would break ligatures and kerning between text symbols.
738 % A more efficient solution would be to make |\@inmathwarn| and
739 % |\@inmatherr| equal to |\@empty| and |\relax| by default, and
741 % |\everymath| reset them to their usual definitions. This is left
742 % for future investigation (for example it may break some third
747 \@latex@warning{Command \protect#1 invalid in math mode}%
760 % \changes{v1.7k}{1995/06/05}{Allowed \cs{ProvideTextCommandDefault}
761 % after the preamble.}
763 % \begin{macro}{\DeclareTextCommandDefault}
764 % \begin{macro}{\ProvideTextCommandDefault}
765 % These define commands with encoding |?|.
767 % Note that |\DeclareTextCommandDefault| can only be used in the
768 % preamble, but that the |\Provide| version is allowed in inputenc
769 % |.def| files, so is allowed anywhere.
771 \def\DeclareTextCommandDefault#1{%
772 \DeclareTextCommand#1?}
776 \def\ProvideTextCommandDefault#1{%
777 \ProvideTextCommand#1?}
781 \@onlypreamble\DeclareTextCommandDefault
782 %\@onlypreamble\ProvideTextCommandDefault
784 % They require |\?-cmd| to be initialized as |\@changed@cmd|.
786 \expandafter\let\csname?-cmd\endcsname\@changed@cmd
791 % \begin{macro}{\DeclareTextAccent}
792 % \changes{v1.5a}{1994/05/11}
793 % {Reimplemented using \cs{DeclareTextCommand}.}
794 % \changes{v1.7z}{1996/05/23}
795 % {Reimplemented using \cs{add@accent} to save space latex/2133}
796 % This is just a disguise for defining a \TeX~|\accent| command.
798 \def\DeclareTextAccent#1#2#3{%
799 \DeclareTextCommand#1{#2}{\add@accent{#3}}}
803 \@onlypreamble\DeclareTextAccent
807 % \changes{v1.7a}{1994/11/30}{Rewrote \cs{@text@composite} so it
808 % allows an empty argument, or an argument containing lots of
811 % \begin{macro}{\add@accent}
812 % \changes{v1.7z}{1996/05/23}{macro added. latex/2133}
813 % \changes{v1.91}{2000/08/30}{Rearranged but no change to final code,
815 % To save space this code is shared between all text accents that are
816 % set using the |\accent| primitive.
817 % The argument is pre-set in a box so that any
818 % font loading that is needed is already done within the box.
819 % This is needed because font-loading involves grouping and that would
820 % prevent the accent mechanism from working so that the accent would
821 % not be positioned over the argument.
822 % Declarations that change the font should be allowed (only low-level
823 % ones are at present) inside the argument of an accent command,
824 % but not size changes, as they involve |\setbox| operations which
825 % also inhibit the mechanism of the |\accent| primitive.
827 % Note that the whole process is within a group.
828 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
830 % For a detailed discussion of this reimplementation and its
831 % deficiencies, see pr/3160.
832 % \task{?}{Improve this and document its problems, see pr/3160}
833 % \changes{v1.9z}{2000/01/30}{Macro reimplemented (pr/3160)}
835 \def\add@accent#1#2{\hmode@bgroup
837 % Turn off the group in |\UseTextSymbol| in case this is used
838 % inside the argument of |\add@accent|.
840 \let\hmode@start@before@group\@firstofone
841 \setbox\@tempboxa\hbox{#2%
843 % When presetting the argument in a box we record its |\spacefactor|
844 % for later use after the accent got typeset. This way something like
845 % |\`A| gets the spacefactor of |A| (i.e., 999) rather than the
846 % default value of 1000.
847 % \changes{v1.9q}{1998/06/12}
848 % {Explicitly set \cs{spacefactor} after \cs{accent} (pr/2877)}
850 \global\mathchardef\accent@spacefactor\spacefactor}%
851 \accent#1 #2\egroup\spacefactor\accent@spacefactor}
853 % Default definition for |\accent@spacefactor| prevents a horrible
854 % death of the above macro inside an unprotected |\edef|.
855 % \changes{v1.9w}{1999/10/28}{Give \cs{accent@spacefactor} a default
856 % definition (pr/3084)}
858 \let\accent@spacefactor\relax
862 % \begin{macro}{\hmode@bgroup}
863 % \changes{v1.9y}{2000/01/30}{Macro added}
865 \def\hmode@bgroup{\leavevmode\bgroup}
870 % \begin{macro}{\DeclareTextCompositeCommand}
871 % \changes{v1.7z}{1996/05/23}
872 % {Modified to cope with new \cs{add@accent} command: required
873 % removal of check for one argument-command}
874 % \begin{macro}{\DeclareTextComposite}
875 % \changes{v1.7l}{1995/06/09}{Rewrote \cs{DeclareTextComposite} to
876 % define the composite as a no-argument command rather than a
877 % two-argument command.}
878 % \begin{macro}{\@text@composite}
879 % \begin{macro}{\@text@composite@x}
880 % \begin{macro}{\@strip@args}
881 % \changes{v1.8c}{1996/10/27}
883 % Another amusing game to play with |\expandafter|, |\csname|, and
884 % |\string|. When you say
885 % |\DeclareTextCompositeCommand{\foo}{T1}{a}{bar}|, we look to see
886 % if the expansion of |\T1\foo| begins with |\@text@composite|, and
887 % if it doesn't, we redefine |\T1\foo| to be:
889 % #1 -> \@text@composite \T1\foo #1\@empty \@text@composite {...}
892 % previous definition of |\T1\foo|. Finally, we define |\\T1\foo-a|
893 % to expand to |bar|.
895 \def\DeclareTextCompositeCommand#1#2#3#4{%
896 \expandafter\let\expandafter\reserved@a\csname#2\string#1\endcsname
897 \expandafter\expandafter\expandafter\ifx
898 \expandafter\@car\reserved@a\relax\relax\@nil \@text@composite \else
899 \edef\reserved@b##1{%
900 \def\expandafter\noexpand
901 \csname#2\string#1\endcsname####1{%
902 \noexpand\@text@composite
903 \expandafter\noexpand\csname#2\string#1\endcsname
904 ####1\noexpand\@empty\noexpand\@text@composite
906 \expandafter\reserved@b\expandafter{\reserved@a{##1}}%
908 \expandafter\def\csname\expandafter\string\csname
909 #2\endcsname\string#1-\string#3\endcsname{#4}}
913 \@onlypreamble\DeclareTextCompositeCommand
915 % This all works because:
917 % \@text@composite \T1\foo A\@empty \@text@composite {...}
920 % |\\T1\foo-A| if |\\T1\foo-A| has been defined, and |{...}|
923 % Note that |\@text@composite| grabs the first token of the
924 % argument and puts just that in the
925 % csname. This is so that |\'{\textit{e}}| will work---it checks
926 % whether |\\T1\'-\textit| is defined (which presumably it isn't)
927 % and so expands to |{\accent 1 \textit{e}}|.
929 % This trick won't always work, for example |\'{{\itshape e}}| will
930 % expand to (with spaces added for clarity):
932 % \csname \string \T1\' - \string {\itshape e} \@empty \endcsname
934 % which will die pretty horribly. Unfortunately there's not much
935 % can be done about this if we're going to use |\csname| lookups as a
936 % fast way of accessing composites.
938 % This has an unfortunate `misfeature' though, which is that in
939 % the T1 encoding, |\'{aa}| produces \'a. This is not the expected
940 % behaviour, and should perhaps be fixed if the fix doesn't affect
941 % performance too badly.
943 % Finally, it's worth noting that the |\@empty| is used in
944 % |\@text@composite| so that accents will work even when the
945 % argument is empty. If you say |\'{}| then this looks up
946 % |\\T1\'-\@empty|, which ought to be |\relax|, and so all is well.
947 % If we didn't include the |\@empty|, then |\'{}| would expand to:
949 % \csname \string \T1\' - \string \endcsname
951 % so the |\endcsname| would be |\string|'ed and the whole of the
952 % rest of the document would be put inside the |\csname|. This
955 \def\@text@composite#1#2#3\@text@composite{%
956 \expandafter\@text@composite@x
957 \csname\string#1-\string#2\endcsname}
960 % \changes{v1.7z}{1996/05/23}
961 % {\cs{expandafter} added to match other changes for latex/2133}
962 % \changes{v1.9r}{1999/01/06}{New impl for latex/2930}
963 % \changes{v1.9s}{1999/01/13}{Simplified solution for latex/2930}
964 % Originally the |\@text@composite@x| macro had two arguments and if
965 % |#1| was not |\relax| it was executed, otherwise |#2| was executed.
966 % All this happened within the |\ifx| code so that neither |#1|
967 % nor |#2| could have picked up any additional arguments form
969 % This has now being changed using the typical |\@firstoftwo| /
970 % |\@secondoftwo| coding. This way the
971 % final expansion will happen without any |\else| or |\fi|
972 % intervening in the case that we need to get a further token
973 % from the input stream.
975 \def\@text@composite@x#1{%
977 \expandafter\@secondoftwo
979 \expandafter\@firstoftwo
983 % The command |\DeclareTextComposite| uses
984 % |\DeclareTextCompositeCommand| to declare a command which
985 % expands out to a single glyph.
986 % \changes{v1.8a}{1996/07/19}
987 % {Use char 0 not @ as carrier for \cs{lowercase} /2197}
993 \def\DeclareTextComposite#1#2#3#4{%
994 \def\reserved@a{\DeclareTextCompositeCommand#1{#2}{#3}}%
1003 \catcode\z@=15\relax
1007 \@onlypreamble\DeclareTextComposite
1015 % \begin{macro}{\UseTextAccent}
1016 % \begin{macro}{\UseTextSymbol}
1017 % \changes{v1.7p}{1995/11/17}{Support \cs{@wrong@font@char} latex/1676}
1018 % \changes{v1.7q}{1995/11/18}{Modify message slightly}
1019 % \begin{macro}{\@use@text@encoding}
1020 % \changes{v1.91}{2000/08/30}{Rearranged but no change to final code,
1022 % These fragile commands access glyphs from different encodings.
1023 % They use grotty low-level calls to the font selection scheme for
1024 % speed, and in order to make sure that |\UseTextSymbol| doesn't
1025 % do anything which you're not allowed to do between an |\accent|
1028 % For a detailed discussion of this reimplementation and its
1029 % deficiencies, see pr/3160.
1030 % \task{?}{Improve this and document its problems, see pr/3160}
1031 % \changes{v1.9z}{2000/01/30}{Macro reimplemented (pr/3160)}
1033 \def\UseTextAccent#1#2#3{%
1034 \hmode@start@before@group
1037 % Turn off the group in |\UseTextSymbol| in case this is used
1038 % inside the arguments of |\UseTextAccent|.
1040 \let\hmode@start@before@group\@firstofone
1041 \let\@curr@enc\cf@encoding
1042 \@use@text@encoding{#1}%
1043 #2{\@use@text@encoding\@curr@enc#3}%
1047 % \changes{v1.9z}{2000/01/30}{Macro reimplemented (pr/3160)}
1049 \def\UseTextSymbol#1#2{%
1050 \hmode@start@before@group
1052 \def\@wrong@font@char{\MessageBreak
1053 for \noexpand\symbol`\string#2'}%
1054 \@use@text@encoding{#1}%
1061 \def\@use@text@encoding#1{%
1062 \edef\f@encoding{#1}%
1064 \csname\curr@fontshape/\f@size\endcsname}%
1073 % \begin{macro}{\hmode@start@before@group}
1074 % The |\hmode@start@before@group| starts hmode and should be
1075 % immediately followed by an explicit |{...}|. Its purpose is to
1076 % ensure that hmode is started before this group is opened. Inside
1077 % |\add@accent| and |\UseTextAccent| it is redefined to remove this
1078 % group so that it doesn't conflict with the |\accent| primitive.
1080 % For a detailed discussion see pr/3160.
1081 % \changes{v1.9z}{2000/01/30}{Macro added (pr/3160)}
1083 \let\hmode@start@before@group\leavevmode
1087 % \begin{macro}{\DeclareTextSymbolDefault}
1088 % \begin{macro}{\DeclareTextAccentDefault}
1089 % Some syntactic sugar. Again, these should probably be optimized
1092 \def\DeclareTextSymbolDefault#1#2{%
1093 \DeclareTextCommandDefault#1{\UseTextSymbol{#2}#1}}
1097 \def\DeclareTextAccentDefault#1#2{%
1098 \DeclareTextCommandDefault#1{\UseTextAccent{#2}#1}}
1102 \@onlypreamble\DeclareTextSymbolDefault
1103 \@onlypreamble\DeclareTextAccentDefault
1109 % \begin{macro}{\UndeclareTextCommand}
1110 % This command safely removes and encoding specific declaration
1111 % for a given encoding. It is helpful if one intends to use the
1112 % default definition always and therefore wants to get rid of
1113 % a declaration for some specific encoding.
1114 % \changes{v1.9o}{1998/03/20}{Macro added for pr/2783}
1116 \def\UndeclareTextCommand#1#2{%
1118 % If there is no declaration for the current encoding do nothing.
1119 % (This makes a hash table entry but without e\TeX{} we can't do
1120 % anything about that).
1122 \expandafter\ifx\csname#2\string#1\endcsname\relax
1125 % Else: throw away that declaration.
1127 \global\expandafter\let\csname#2\string#1\endcsname
1130 % But this is unfortunately not enough, we have to take a look
1131 % at the top-level definition of the encoding specific command
1132 % which for a command |\foo| would look similar to
1133 % |\T1-cmd \foo \T1\foo| (three tokens).
1135 % Of course, instead of |T1| one could see a different encoding name;
1136 % which one depends the encoding for which |\foo| was declared
1139 % Now assume we have just removed the declaration for |\foo| in |T1|
1140 % and the top-level of |\foo| expands to the above. Then we better
1141 % change that pretty fast otherwise we do get an ``undefined csname
1142 % error'' when we try to typeset |\foo| within |T1| instead of
1143 % getting the default definition for |\foo|.
1144 % And what is the best way to change that top-level definition? Well,
1145 % the only ``encoding'' we know for sure will still be around is
1146 % the default encoding denoted by |?|.
1148 % Thus in case the last token of the top-level expansion
1149 % is now undefined we change the declaration to look like
1150 % |\?-cmd \foo \?\foo| which is done by the following
1153 \expandafter\expandafter\expandafter
1154 \ifx\expandafter\@thirdofthree#1\@undefined
1155 \expandafter\gdef\expandafter#1\expandafter
1156 {\csname ?-cmd\expandafter\endcsname\expandafter
1157 #1\csname?\string#1\endcsname}%
1164 \@onlypreamble\UndeclareTextCommand
1169 % \subsubsection{Hyphenation}
1171 % \changes{v1.5l}{1994/10/18}{Added new definitions of \cs{patterns}
1172 % and \cs{hyphenation}.}
1173 % \changes{v1.6g}{1994/11/05}{Added setting of \cs{@typeset@protect}
1174 % to \cs{patterns} and \cs{hyphenation}.}
1175 % \changes{v1.6g}{1994/11/30}{Removed new definitions of \cs{patterns}
1176 % and \cs{hyphenation}, since encoding-specific commands now expand
1179 % \begin{macro}{\patterns}
1180 % \begin{macro}{\@@patterns}
1181 % \begin{macro}{\hyphenation}
1182 % \begin{macro}{\@@hyphenation}
1183 % We redefine |\patterns| and |\hyphenation| to allow the use of
1184 % commands declared with |\DeclareText*| to be used inside them.
1186 %\let\@@patterns\patterns
1187 %\let\@@hyphenation\hyphenation
1190 % \let\protect\@empty
1191 % \let\@typeset@protect\@empty
1192 % \let\@changed@x\@changed@x@mouth
1193 % \afterassignment\egroup
1198 % \let\protect\@empty
1199 % \let\@typeset@protect\@empty
1200 % \let\@changed@x\@changed@x@mouth
1201 % \afterassignment\egroup
1210 % \subsubsection{Miscellania}
1212 % \changes{1.4a}{1994/05/01}{Added the \cs{a} command.}
1213 % \changes{1.7a}{1994/11/30}{Redefined \cs{a} for the new scheme.}
1214 % \changes{1.7b}{1994/12/02}{Redefined \cs{a} properly.}
1215 % \changes{1.7g}{1995/03/03}{Corrected an error in documentation
1216 % referring to the tabular rather than the tabbing
1218 % \changes{v1.7n}{1995/11/02}{Changed internal name \cs{a} to
1219 % \cs{@tabacckludge} to protect against redefinition by malicious
1223 % The |\a| command is used to access the accent commands even when
1224 % they have been redefined (for example by the |tabbing|
1225 % environment). Its internal name is |\@tabacckludge|.
1227 % The |\string| within the |\csname| guards against something
1228 % like |'| being active at the point of use.
1229 % \changes{v1.9r}{1998/09/19}{Added \cs{string} (pr/2878)}
1231 \def\@tabacckludge#1{\expandafter\@changed@cmd
1232 \csname\string#1\endcsname\relax}
1233 \let\a=\@tabacckludge
1237 % \changes{v1.6a}{1994/10/25}{Added the files OT1enc.def, T1enc.def and
1239 % \changes{v1.6b}{1994/10/27}{Removed the files OT1enc.def, T1enc.def
1242 % \subsubsection{Default encodings}
1244 % We define the default encodings for most commands to be either OT1,
1245 % OML or OMS. These defaults are in the kernel and therefore
1246 % fonts with these encodings must be available unless these
1247 % defaults are redefined elsewhere. Recall that the standard kernel
1248 % loads the encoding files for these encodings, and also that for
1251 % The naming conventions in the kernel are not what we would use if we
1252 % were starting from scratch\dots\
1253 % Those defined by DEK (like |\ae| and |\ss|) or by the \TeX{} Users
1254 % Group Technical Working Group on multi-lingual typesetting (like
1255 % |\th| and |\ng|) have short names. Those which were added to the
1256 % kernel in 1993 and early 1994 are named after their Adobe glyph
1257 % names (like |\guillemotleft| and |\quotedblbase|). Unfortunately,
1258 % this naming scheme won't work for all glyphs, since some names (like
1259 % |\space|) are already used, and some (like |\endash|) are very
1260 % likely to be defined by users. So we're now using the naming scheme
1261 % of |\text| followed by the Adobe name, (like |\textendash| and
1262 % |\textsterling|). Except that some glyphs don't have Adobe names,
1263 % so we're using the names used by fontinst for those (like
1264 % |\textcompwordmark|). Sigh.
1266 % \changes{v1.6a}{1994/10/25}{Added the defaults.}
1267 % \changes{v1.6b}{1994/10/27}{Added more defaults for OT1.}
1268 % \changes{v1.6c}{1994/10/29}{Added commands like \cs{dots} for use in
1271 % Some accents from OT1:
1273 \DeclareTextAccentDefault{\"}{OT1}
1274 \DeclareTextAccentDefault{\'}{OT1}
1275 \DeclareTextAccentDefault{\.}{OT1}
1276 \DeclareTextAccentDefault{\=}{OT1}
1277 \DeclareTextAccentDefault{\H}{OT1}
1278 \DeclareTextAccentDefault{\^}{OT1}
1279 \DeclareTextAccentDefault{\`}{OT1}
1280 \DeclareTextAccentDefault{\b}{OT1}
1281 \DeclareTextAccentDefault{\c}{OT1}
1282 \DeclareTextAccentDefault{\d}{OT1}
1283 \DeclareTextAccentDefault{\r}{OT1}
1284 \DeclareTextAccentDefault{\u}{OT1}
1285 \DeclareTextAccentDefault{\v}{OT1}
1286 \DeclareTextAccentDefault{\~}{OT1}
1288 % Some symbols from OT1:
1289 % \changes{v1.8c}{1996/10/27}
1290 % {Removed \cs{aa} and \cs{AA}}
1292 %\DeclareTextSymbolDefault{\AA}{OT1}
1293 \DeclareTextSymbolDefault{\AE}{OT1}
1294 \DeclareTextSymbolDefault{\L}{OT1}
1295 \DeclareTextSymbolDefault{\OE}{OT1}
1296 \DeclareTextSymbolDefault{\O}{OT1}
1297 %\DeclareTextSymbolDefault{\aa}{OT1}
1298 \DeclareTextSymbolDefault{\ae}{OT1}
1299 \DeclareTextSymbolDefault{\i}{OT1}
1300 \DeclareTextSymbolDefault{\j}{OT1}
1302 % \changes{v1.99h}{2005/11/08}
1303 % {Added \cs{ij} and \cs{IJ} from babel. (pr/3771)}
1305 \DeclareTextSymbolDefault{\ij}{OT1}
1306 \DeclareTextSymbolDefault{\IJ}{OT1}
1309 \DeclareTextSymbolDefault{\l}{OT1}
1310 \DeclareTextSymbolDefault{\oe}{OT1}
1311 \DeclareTextSymbolDefault{\o}{OT1}
1312 \DeclareTextSymbolDefault{\ss}{OT1}
1313 \DeclareTextSymbolDefault{\textdollar}{OT1}
1314 \DeclareTextSymbolDefault{\textemdash}{OT1}
1315 \DeclareTextSymbolDefault{\textendash}{OT1}
1316 \DeclareTextSymbolDefault{\textexclamdown}{OT1}
1317 %\DeclareTextSymbolDefault{\texthyphenchar}{OT1}
1318 %\DeclareTextSymbolDefault{\texthyphen}{OT1}
1319 \DeclareTextSymbolDefault{\textquestiondown}{OT1}
1320 \DeclareTextSymbolDefault{\textquotedblleft}{OT1}
1321 \DeclareTextSymbolDefault{\textquotedblright}{OT1}
1322 \DeclareTextSymbolDefault{\textquoteleft}{OT1}
1323 \DeclareTextSymbolDefault{\textquoteright}{OT1}
1324 \DeclareTextSymbolDefault{\textsterling}{OT1}
1326 % Some symbols from OMS:
1327 % \changes{v1.7t}{1995/11/29}{Added \cs{textbackslash} and
1329 % \changes{v1.8c}{1996/10/27}
1330 % {Added \cs{textasteriskcentered}}
1331 % \changes{v1.95}{2002/06/16}{Added default for \cs{textbardbl} (pr/3400)}
1333 \DeclareTextSymbolDefault{\textasteriskcentered}{OMS}
1334 \DeclareTextSymbolDefault{\textbackslash}{OMS}
1335 \DeclareTextSymbolDefault{\textbar}{OMS}
1336 \DeclareTextSymbolDefault{\textbardbl}{OMS}
1337 \DeclareTextSymbolDefault{\textbraceleft}{OMS}
1338 \DeclareTextSymbolDefault{\textbraceright}{OMS}
1339 \DeclareTextSymbolDefault{\textbullet}{OMS}
1340 \DeclareTextSymbolDefault{\textdaggerdbl}{OMS}
1341 \DeclareTextSymbolDefault{\textdagger}{OMS}
1342 \DeclareTextSymbolDefault{\textparagraph}{OMS}
1343 \DeclareTextSymbolDefault{\textperiodcentered}{OMS}
1344 \DeclareTextSymbolDefault{\textsection}{OMS}
1345 \DeclareTextAccentDefault{\textcircled}{OMS}
1348 % \changes{v1.6d}{1994/10/30}{Added OML encoding.}
1349 % \changes{v1.6d}{1994/10/30}{Made \cs{textless} and \cs{textgreater}
1351 % \changes{v1.6d}{1994/10/30}{Added \cs{t}.}
1352 % \changes{v1.7k}{1995/06/05}{Commented out \cs{textless} and
1353 % \cs{textgreater}.}
1355 % Some symbols from OML:
1356 % \changes{v1.7t}{1995/11/29}{Added \cs{textless} and
1357 % \cs{textgreater}.}
1359 \DeclareTextSymbolDefault{\textless}{OML}
1360 \DeclareTextSymbolDefault{\textgreater}{OML}
1361 \DeclareTextAccentDefault{\t}{OML}
1364 % \changes{v1.6d}{1994/10/30}{Added \cs{textcircled}.}
1365 % \changes{v1.6d}{1994/10/30}{Rewrote \cs{copyright} to use
1366 % \cs{textcircled}.}
1367 % \changes{v1.6d}{1994/10/30}{Removed \cs{textregistered}.}
1368 % \changes{v1.7k}{1995/06/05}{Save some tokens in
1369 % \cs{textvisiblespace} and \cs{textunderscore}.}
1370 % \changes{v1.7t}{1995/11/29}{Added \cs{textasciicircum},
1371 % \cs{textasciitilde}, \cs{textregistered} and \cs{texttrademark}.}
1372 % \changes{v1.7u}{1995/12/01}{Made \cs{SS} a Default, rather than
1373 % having the default point to the OT1 definition.}
1374 % \changes{v1.7w}{1995/12/11}{Modified \cs{copyright}}
1375 % \changes{v1.9a}{1997/04/30}{Introduced \cs{textcopyright} and modified
1378 % Some defaults we can fake.
1380 % The interface for defining |\copyright| changed, it used to
1381 % use |\expandafter| to add braces at the appropriate points.
1383 \DeclareTextCommandDefault{\textcopyright}{\textcircled{c}}
1384 % \expandafter\def\expandafter
1385 % \copyright\expandafter{\expandafter{\copyright}}
1388 % \changes{v1.9a}{1997/04/30}{Modified \cs{textunderscore}, removing
1389 % \cs{mathunderscore}}
1390 % \changes{v1.9b}{1997/04/30}{Added \cs{leavevmode} to
1391 % \cs{textunderscore}}
1392 % \changes{v1.9d}{1997/05/07}{Added \cs{leavevmode} to
1393 % \cs{textcompwordmark}}
1395 \DeclareTextCommandDefault{\textasciicircum}{\^{}}
1396 \DeclareTextCommandDefault{\textasciitilde}{\~{}}
1397 \DeclareTextCommandDefault{\textcompwordmark}{\leavevmode\kern\z@}
1398 \DeclareTextCommandDefault{\textunderscore}{%
1399 \leavevmode \kern.06em\vbox{\hrule\@width.3em}}
1403 \DeclareTextCommandDefault{\textvisiblespace}{%
1404 \mbox{\kern.06em\vrule \@height.3ex}%
1405 \vbox{\hrule \@width.3em}%
1406 \hbox{\vrule \@height.3ex}}
1409 % Using |\fontdimen3| in the next definition is some sort of a
1410 % kludge (since it is the interword stretch) but it makes the
1411 % ellipsis come out right in mono-spaced fonts too (since there it
1414 \DeclareTextCommandDefault{\textellipsis}{%
1415 .\kern\fontdimen3\font
1416 .\kern\fontdimen3\font
1417 .\kern\fontdimen3\font}
1420 % \changes{v1.9a}{1997/04/30}{Changed \cs{textsc} to \cs{scshape}}
1421 % \changes{v1.95}{2002/06/18}{Changed def for \cs{textregistered} to
1422 % avoid small caps (pr/3420)}
1424 %\DeclareTextCommandDefault{\textregistered}{\textcircled{\scshape r}}
1425 \DeclareTextCommandDefault{\textregistered}{\textcircled{%
1426 \check@mathfonts\fontsize\sf@size\z@\math@fontsfalse\selectfont R}}
1427 \DeclareTextCommandDefault{\texttrademark}{\textsuperscript{TM}}
1428 \DeclareTextCommandDefault{\SS}{SS}
1431 % \changes{v1.9n}{1998/03/05}{Added masc/fem ords as in pr/2579}
1433 \DeclareTextCommandDefault{\textordfeminine}{\textsuperscript{a}}
1434 \DeclareTextCommandDefault{\textordmasculine}{\textsuperscript{o}}
1437 % \subsubsection{Math material}
1439 % Some commands can be used in both text and math mode:
1441 \DeclareRobustCommand{\$}{\ifmmode\mathdollar\else\textdollar\fi}
1442 \DeclareRobustCommand{\{}{\ifmmode\lbrace\else\textbraceleft\fi}
1443 \DeclareRobustCommand{\}}{\ifmmode\rbrace\else\textbraceright\fi}
1444 \DeclareRobustCommand{\P}{\ifmmode\mathparagraph\else\textparagraph\fi}
1445 \DeclareRobustCommand{\S}{\ifmmode\mathsection\else\textsection\fi}
1446 \DeclareRobustCommand{\dag}{\ifmmode{\dagger}\else\textdagger\fi}
1447 \DeclareRobustCommand{\ddag}{\ifmmode{\ddagger}\else\textdaggerdbl\fi}
1450 % For historical reasons |\copyright|
1451 % needs |{}| around the definition in maths.
1453 % \changes{v1.6f}{1994/11/04}{Added \cmd\_.}
1455 % \changes{v1.9a}{1997/04/30}{Modified \cs{underscore}, removing
1456 % \cs{mathunderscore}}
1457 % \changes{v1.9a}{1997/04/30}{Introduced \cs{textcopyright} and modify
1460 \DeclareRobustCommand{\_}{%
1461 \ifmmode\nfss@text{\textunderscore}\else\textunderscore\fi}
1462 \DeclareRobustCommand{\copyright}{%
1463 \ifmmode{\nfss@text{\textcopyright}}\else\textcopyright\fi}
1464 \DeclareRobustCommand{\pounds}{%
1465 \ifmmode\mathsterling\else\textsterling\fi}
1469 \DeclareRobustCommand{\dots}{%
1470 \ifmmode\mathellipsis\else\textellipsis\fi}
1478 % \changes{v1.6d}{1994/10/30}{Moved math commands here from ltmath.}
1479 % \changes{v1.6f}{1994/11/04}{Added \cs{mathunderscore}.}
1480 % \changes{v1.7k}{1995/06/05}{Moved math commands to fontdef.dtx.}
1483 % \changes{1.4a}{1994/05/01}{Added the \cs{SaveAtCatcode} and
1484 % \cs{RestoreAtCatcode} commands.}
1486 % \changes{1.5a}{1994/05/12}{Removed the \cs{SaveAtCatcode} and
1487 % \cs{RestoreAtCatcode} commands.}
1490 % \subsection{Definitions for the OT1 encoding}
1492 % \changes{1.3}{1993/12/17}{Removed all the hackery for use in
1493 % \cs{DeclareFontEncoding}, and redid everything using
1494 % \cs{DeclareTextFoo}.}
1495 % \changes{1.3b}{1993/12/18}{Replaced the missing last argument to
1496 % \cs{DeclareFontEncoding}.}
1497 % \changes{1.3c}{1993/12/18}{Rewrote for the new syntax of
1498 % \cs{EncodingSpecific}.}
1499 % \changes{1.4a}{1994/05/01}{Rewrote for the new syntax.}
1500 % \changes{1.5a}{1994/05/12}{Rewrote for the new syntax.}
1501 % \changes{1.5h}{1994/05/16}{\cs{pounds} was still using u rather than
1503 % \changes{1.6b}{1994/10/27}{Added:
1506 % \cs{textexclamdown}
1507 % \cs{texthyphenchar}
1509 % \cs{textquestiondown}
1510 % \cs{textquotedblleft}
1511 % \cs{textquotedblright}
1512 % \cs{textquoteleft}
1513 % \cs{textquoteright}
1516 % The definitions for the `\TeX{} text' (OT1) encoding.
1518 % Declare the encoding.
1521 \DeclareFontEncoding{OT1}{}{}
1523 % Declare the accents.
1525 \DeclareTextAccent{\"}{OT1}{127}
1526 \DeclareTextAccent{\'}{OT1}{19}
1527 \DeclareTextAccent{\.}{OT1}{95}
1528 \DeclareTextAccent{\=}{OT1}{22}
1529 \DeclareTextAccent{\^}{OT1}{94}
1530 \DeclareTextAccent{\`}{OT1}{18}
1531 \DeclareTextAccent{\~}{OT1}{126}
1532 \DeclareTextAccent{\H}{OT1}{125}
1533 \DeclareTextAccent{\u}{OT1}{21}
1534 \DeclareTextAccent{\v}{OT1}{20}
1535 \DeclareTextAccent{\r}{OT1}{23}
1537 % Some accents have to be built by hand:
1538 % Note that |\ooalign| and |\o@lign| must be inside a group.
1539 % \changes{v1.7j}{1995/05/21}{Updated some plain macros}
1540 % \changes{v1.7o}{1995/11/07}{Added \cs{leavevmode} at start of
1541 % \cs{c}, otherwise the output routine might be invoked within the
1543 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
1545 % \changes{v1.99g}{2005/09/27}{Replace \cs{sh@ft} by \cs{ltx@sh@ft}}
1546 % In these definitions we no longer use the helper function |\sh@ft|
1547 % from plain.tex since that now has two incompatible definitions.
1549 \DeclareTextCommand{\b}{OT1}[1]
1550 {\hmode@bgroup\o@lign{\relax#1\crcr\hidewidth\ltx@sh@ft{-3ex}%
1551 \vbox to.2ex{\hbox{\char22}\vss}\hidewidth}\egroup}
1552 \DeclareTextCommand{\c}{OT1}[1]
1553 {\leavevmode\setbox\z@\hbox{#1}\ifdim\ht\z@=1ex\accent24 #1%
1554 \else{\ooalign{\unhbox\z@\crcr\hidewidth\char24\hidewidth}}\fi}
1555 \DeclareTextCommand{\d}{OT1}[1]
1557 \o@lign{\relax#1\crcr\hidewidth\ltx@sh@ft{-1ex}.\hidewidth}\egroup}
1559 % Declare the text symbols.
1561 \DeclareTextSymbol{\AE}{OT1}{29}
1562 \DeclareTextSymbol{\OE}{OT1}{30}
1563 \DeclareTextSymbol{\O}{OT1}{31}
1564 \DeclareTextSymbol{\ae}{OT1}{26}
1565 \DeclareTextSymbol{\i}{OT1}{16}
1566 \DeclareTextSymbol{\j}{OT1}{17}
1567 \DeclareTextSymbol{\oe}{OT1}{27}
1568 \DeclareTextSymbol{\o}{OT1}{28}
1569 \DeclareTextSymbol{\ss}{OT1}{25}
1570 \DeclareTextSymbol{\textemdash}{OT1}{124}
1571 \DeclareTextSymbol{\textendash}{OT1}{123}
1573 % Using the ligatures helps with OT1 fonts that have
1574 % |\textexclamdown| and |\textquestiondown| in unusual positions.
1575 % \changes{v1.95}{2002/06/17}{Definition of \cs{textexclamdown} changed (pr/3368)}
1576 % \changes{v1.95}{2002/06/17}{Definition of \cs{textquestiondown} changed (pr/3368)}
1578 %\DeclareTextSymbol{\textexclamdown}{OT1}{60}
1579 %\DeclareTextSymbol{\textquestiondown}{OT1}{62}
1580 \DeclareTextCommand{\textexclamdown}{OT1}{!`}
1581 \DeclareTextCommand{\textquestiondown}{OT1}{?`}
1582 %\DeclareTextSymbol{\texthyphenchar}{OT1}{`\-}
1583 %\DeclareTextSymbol{\texthyphen}{OT1}{`\-}
1584 \DeclareTextSymbol{\textquotedblleft}{OT1}{92}
1585 \DeclareTextSymbol{\textquotedblright}{OT1}{`\"}
1586 \DeclareTextSymbol{\textquoteleft}{OT1}{`\`}
1587 \DeclareTextSymbol{\textquoteright}{OT1}{`\'}
1589 % Some symbols which are faked from others:
1590 % \changes{v1.7o}{1995/11/07}{Changed \cs{char}32 to \cs{@xxxii} (two
1592 % \changes{v1.7o}{1995/11/07}{Replaced octal number 27 by decimal
1593 % number 23 to protect against the quote character being active.}
1594 % \changes{v1.7o}{1995/11/07}{Replaced some 0's by \cs{z@} (faster).}
1595 % \changes{v1.8c}{1996/10/27}
1596 % {Removed \cs{aa} and \cs{AA}}
1597 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
1600 % \DeclareTextCommand{\aa}{OT1}
1602 \DeclareTextCommand{\L}{OT1}
1603 {\leavevmode\setbox\z@\hbox{L}\hb@xt@\wd\z@{\hss\@xxxii L}}
1604 \DeclareTextCommand{\l}{OT1}
1605 {\hmode@bgroup\@xxxii l\egroup}
1606 % \DeclareTextCommand{\AA}{OT1}
1607 % {\leavevmode\setbox\z@\hbox{h}\dimen@\ht\z@\advance\dimen@-1ex%
1608 % \rlap{\raise.67\dimen@\hbox{\char23}}A}
1610 % In the OT1 encoding \r A has a hand-crafted definition, so we
1611 % have here the first recorded explicit use of
1612 % |\DeclareTextCompositeCommand|.
1613 % \changes{v1.8c}{1996/10/27}
1615 % \changes{v1.96}{2002/10/28}{%
1616 % coding change, to follow bug fix by DEK in plain.tex (pr/3469)}
1618 \DeclareTextCompositeCommand{\r}{OT1}{A}
1619 {\leavevmode\setbox\z@\hbox{!}\dimen@\ht\z@\advance\dimen@-1ex%
1620 \rlap{\raise.67\dimen@\hbox{\char23}}A}
1622 % \changes{v1.99h}{2005/11/08}
1623 % {Added \cs{ij} and \cs{IJ} from babel. (pr/3771)}
1624 % The dutch language uses the letter `ij'. It is available in
1625 % \texttt{T1} encoded fonts, but not in the \texttt{OT1} encoded
1626 % fonts. Therefor we fake it for the \texttt{OT1} encoding.
1628 \DeclareTextCommand{\ij}{OT1}{%
1629 \nobreak\hskip\z@skip i\kern-0.02em j\nobreak\hskip\z@skip}
1630 \DeclareTextCommand{\IJ}{OT1}{%
1631 \nobreak\hskip\z@skip I\kern-0.02em J\nobreak\hskip\z@skip}
1633 % In the OT1 encoding, \pounds~and \$ share a slot.
1634 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
1637 \DeclareTextCommand{\textdollar}{OT1}{\hmode@bgroup
1638 \ifdim \fontdimen\@ne\font >\z@
1647 \DeclareTextCommand{\textsterling}{OT1}{\hmode@bgroup
1648 \ifdim \fontdimen\@ne\font >\z@
1651 \fontshape{ui}\selectfont
1656 % Here we are adding some more composite commands to the |OT1|
1657 % encoding. This makes the use of certain accents with |i|
1658 % compatible with their use with the |T1| encoding; this
1659 % enables them to become true \LaTeX{} internal representations.
1660 % However, it will make these accents work a little less fast since
1661 % a check will always be made for the existence of a composite.
1663 % \changes{v1.93}{2001/05/28}{Added composites for compatibility with
1665 % \changes{v1.94}{2001/06/05}{Text composite Commands need kludges for
1666 % `,' -- see tlb1903.lvt}
1668 \DeclareTextComposite{\.}{OT1}{i}{`\i}
1669 \DeclareTextComposite{\.}{OT1}{\i}{`\i}
1670 \DeclareTextCompositeCommand{\`}{OT1}{i}{\@tabacckludge`\i}
1671 \DeclareTextCompositeCommand{\'}{OT1}{i}{\@tabacckludge'\i}
1672 \DeclareTextCompositeCommand{\^}{OT1}{i}{\^\i}
1673 \DeclareTextCompositeCommand{\"}{OT1}{i}{\"\i}
1680 % \subsection{Definitions for the T1 encoding}
1682 % \changes{1.3}{1993/12/17}{Removed all the hackery for use in
1683 % \cs{DeclareFontEncoding}, and redid everything using
1684 % \cs{DeclareTextFoo}.}
1685 % \changes{1.3b}{1993/12/18}{Replaced the missing last argument to
1686 % \cs{DeclareFontEncoding}.}
1687 % \changes{1.3c}{1993/12/18}{Rewrote for the new syntax of
1688 % \cs{EncodingSpecific}.}
1689 % \changes{1.4a}{1994/05/01}{Rewrote for the new syntax.}
1690 % \changes{1.5a}{1994/05/12}{Rewrote for the new syntax.}
1691 % \changes{1.6a}{1994/10/25}{Added \cs{textdollar},
1692 % \cs{textlbrace}, \cs{textrbrace}, \cs{textsterling},
1693 % \cs{textunderline}.}
1694 % \changes{1.6a}{1994/10/25}{Removed
1695 % \cs{textlbrace}, \cs{textrbrace}, \cs{textunderline} to give them
1696 % their proper names.}
1697 % \changes{1.6b}{1994/10/27}{Added
1698 % \cs{textasciicircum}
1699 % \cs{textasciitilde}
1700 % \cs{textbackslash}
1702 % \cs{textbraceleft}
1703 % \cs{textbraceright}
1704 % \cs{textcompwordmark}
1707 % \cs{textexclamdown}
1709 % \cs{texthyphenchar}
1712 % \cs{textquestiondown}
1713 % \cs{textquotedblleft}
1714 % \cs{textquotedblright}
1716 % \cs{textquoteleft}
1717 % \cs{textquoteright}
1718 % \cs{textunderscore}
1719 % \cs{textvisiblespace}
1721 % \changes{v1.9h}{1997/12/17}
1722 % {Added \cs{textperthousand} and \cs{textpertenthousand}}
1724 % The definitions for the `Extended \TeX{} text' (T1) encoding.
1726 % Declare the encoding.
1729 \DeclareFontEncoding{T1}{}{}
1731 % Declare the accents.
1733 \DeclareTextAccent{\`}{T1}{0}
1734 \DeclareTextAccent{\'}{T1}{1}
1735 \DeclareTextAccent{\^}{T1}{2}
1736 \DeclareTextAccent{\~}{T1}{3}
1737 \DeclareTextAccent{\"}{T1}{4}
1738 \DeclareTextAccent{\H}{T1}{5}
1739 \DeclareTextAccent{\r}{T1}{6}
1740 \DeclareTextAccent{\v}{T1}{7}
1741 \DeclareTextAccent{\u}{T1}{8}
1742 \DeclareTextAccent{\=}{T1}{9}
1743 \DeclareTextAccent{\.}{T1}{10}
1745 % Some accents have to be built by hand.
1746 % Note that |\ooalign| and |\o@lign| must be inside a group.
1747 % \changes{v1.9h}{1997/12/17}{As in OT1, Added \cs{leavevmode} at
1748 % start of \cs{c}, otherwise the output routine might be invoked
1749 % within the macro.}
1750 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
1752 % \changes{v1.95}{2002/06/17}{Corrected \cs{c} for T1 (pr/3442)}
1753 % \changes{v1.99b}{2004/01/03}{Use \cs{ooalign} for \cs{k} (pr/3532)}
1754 % \changes{v1.99b}{2004/01/03}{Added \cs{textogonekcentered} (pr/3532)}
1755 % \changes{v1.99c}{2004/01/04}{More adjustments for ogonek (pr/3532)}
1756 % \changes{v1.99g}{2005/09/27}{Replace \cs{sh@ft} by \cs{ltx@sh@ft}}
1757 % In these definitions we no longer use the helper function |\sh@ft|
1758 % from plain.tex since that now has two incompatible definitions.
1760 \DeclareTextCommand{\b}{T1}[1]
1761 {\hmode@bgroup\o@lign{\relax#1\crcr\hidewidth\ltx@sh@ft{-3ex}%
1762 \vbox to.2ex{\hbox{\char9}\vss}\hidewidth}\egroup}
1763 \DeclareTextCommand{\c}{T1}[1]
1764 {\leavevmode\setbox\z@\hbox{#1}\ifdim\ht\z@=1ex\accent11 #1%
1765 \else{\ooalign{\unhbox\z@\crcr
1766 \hidewidth\char11\hidewidth}}\fi}
1767 \DeclareTextCommand{\d}{T1}[1]
1769 \o@lign{\relax#1\crcr\hidewidth\ltx@sh@ft{-1ex}.\hidewidth}\egroup}
1770 \DeclareTextCommand{\k}{T1}[1]
1771 {\hmode@bgroup\ooalign{\null#1\crcr\hidewidth\char12}\egroup}
1772 \DeclareTextCommand{\textogonekcentered}{T1}[1]
1773 {\hmode@bgroup\ooalign{%
1774 \null#1\crcr\hidewidth\char12\hidewidth}\egroup}
1777 % Some symbols are constructed.
1779 % \changes{v1.9h}{1997/12/17}
1780 % {Added \cs{textperthousand} and \cs{textpertenthousand}}
1781 % Slot 24 contains a small circle intended for construction of
1785 \DeclareTextCommand{\textperthousand}{T1}
1786 {\%\char 24 } % space or `relax as delimiter?
1787 \DeclareTextCommand{\textpertenthousand}{T1}
1788 {\%\char 24\char 24 } % space or `relax as delimiter?
1791 % Declare the text symbols.
1792 % \changes{v1.7t}{1995/11/29}{Added \cs{textasciicircum},
1793 % \cs{textasciitilde}, \cs{textbackslash}, \cs{textbar},
1794 % \cs{textgreater} and \cs{textless}.}
1795 % \changes{v1.8c}{1996/10/27}
1796 % {Removed \cs{aa} and \cs{AA}}
1797 % \changes{v1.99h}{2005/11/08}
1798 % {Added \cs{ij} and \cs{IJ} from babel. (pr/3771)}
1801 %\DeclareTextSymbol{\AA}{T1}{197}
1802 \DeclareTextSymbol{\AE}{T1}{198}
1803 \DeclareTextSymbol{\DH}{T1}{208}
1804 \DeclareTextSymbol{\DJ}{T1}{208}
1805 \DeclareTextSymbol{\L}{T1}{138}
1806 \DeclareTextSymbol{\NG}{T1}{141}
1807 \DeclareTextSymbol{\OE}{T1}{215}
1808 \DeclareTextSymbol{\O}{T1}{216}
1809 \DeclareTextSymbol{\SS}{T1}{223}
1810 \DeclareTextSymbol{\TH}{T1}{222}
1811 %\DeclareTextSymbol{\aa}{T1}{229}
1812 \DeclareTextSymbol{\ae}{T1}{230}
1813 \DeclareTextSymbol{\dh}{T1}{240}
1814 \DeclareTextSymbol{\dj}{T1}{158}
1815 \DeclareTextSymbol{\guillemotleft}{T1}{19}
1816 \DeclareTextSymbol{\guillemotright}{T1}{20}
1817 \DeclareTextSymbol{\guilsinglleft}{T1}{14}
1818 \DeclareTextSymbol{\guilsinglright}{T1}{15}
1819 \DeclareTextSymbol{\i}{T1}{25}
1820 \DeclareTextSymbol{\j}{T1}{26}
1821 \DeclareTextSymbol{\ij}{T1}{188}
1822 \DeclareTextSymbol{\IJ}{T1}{156}
1823 \DeclareTextSymbol{\l}{T1}{170}
1824 \DeclareTextSymbol{\ng}{T1}{173}
1825 \DeclareTextSymbol{\oe}{T1}{247}
1826 \DeclareTextSymbol{\o}{T1}{248}
1827 \DeclareTextSymbol{\quotedblbase}{T1}{18}
1828 \DeclareTextSymbol{\quotesinglbase}{T1}{13}
1829 \DeclareTextSymbol{\ss}{T1}{255}
1830 \DeclareTextSymbol{\textasciicircum}{T1}{`\^}
1831 \DeclareTextSymbol{\textasciitilde}{T1}{`\~}
1832 \DeclareTextSymbol{\textbackslash}{T1}{`\\}
1833 \DeclareTextSymbol{\textbar}{T1}{`\|}
1834 \DeclareTextSymbol{\textbraceleft}{T1}{`\{}
1835 \DeclareTextSymbol{\textbraceright}{T1}{`\}}
1836 \DeclareTextSymbol{\textcompwordmark}{T1}{23}
1837 \DeclareTextSymbol{\textdollar}{T1}{`\$}
1838 \DeclareTextSymbol{\textemdash}{T1}{22}
1839 \DeclareTextSymbol{\textendash}{T1}{21}
1840 \DeclareTextSymbol{\textexclamdown}{T1}{189}
1841 \DeclareTextSymbol{\textgreater}{T1}{`\>}
1842 %\DeclareTextSymbol{\texthyphenchar}{T1}{127}
1843 %\DeclareTextSymbol{\texthyphen}{T1}{`\-}
1844 \DeclareTextSymbol{\textless}{T1}{`\<}
1845 \DeclareTextSymbol{\textquestiondown}{T1}{190}
1846 \DeclareTextSymbol{\textquotedblleft}{T1}{16}
1847 \DeclareTextSymbol{\textquotedblright}{T1}{17}
1848 \DeclareTextSymbol{\textquotedbl}{T1}{`\"}
1849 \DeclareTextSymbol{\textquoteleft}{T1}{`\`}
1850 \DeclareTextSymbol{\textquoteright}{T1}{`\'}
1851 \DeclareTextSymbol{\textsection}{T1}{159}
1852 \DeclareTextSymbol{\textsterling}{T1}{191}
1853 \DeclareTextSymbol{\textunderscore}{T1}{95}
1854 \DeclareTextSymbol{\textvisiblespace}{T1}{32}
1855 \DeclareTextSymbol{\th}{T1}{254}
1857 % Declare the composites.
1858 % \changes{v1.93}{2001/05/28}{Changed the effect of
1859 % \cs{.}\cs{i}, pr/3295}
1861 \DeclareTextComposite{\.}{T1}{i}{`\i}
1862 \DeclareTextComposite{\.}{T1}{\i}{`\i}
1864 % \changes{v1.9c}{1997/05/04}{Added `hex index tabs'}
1867 \DeclareTextComposite{\u}{T1}{A}{128}
1868 \DeclareTextComposite{\k}{T1}{A}{129}
1869 \DeclareTextComposite{\'}{T1}{C}{130}
1870 \DeclareTextComposite{\v}{T1}{C}{131}
1871 \DeclareTextComposite{\v}{T1}{D}{132}
1872 \DeclareTextComposite{\v}{T1}{E}{133}
1873 \DeclareTextComposite{\k}{T1}{E}{134}
1874 \DeclareTextComposite{\u}{T1}{G}{135}
1878 \DeclareTextComposite{\'}{T1}{L}{136}
1879 \DeclareTextComposite{\v}{T1}{L}{137}
1880 \DeclareTextComposite{\'}{T1}{N}{139}
1881 \DeclareTextComposite{\v}{T1}{N}{140}
1882 \DeclareTextComposite{\H}{T1}{O}{142}
1883 \DeclareTextComposite{\'}{T1}{R}{143}
1887 \DeclareTextComposite{\v}{T1}{R}{144}
1888 \DeclareTextComposite{\'}{T1}{S}{145}
1889 \DeclareTextComposite{\v}{T1}{S}{146}
1890 \DeclareTextComposite{\c}{T1}{S}{147}
1891 \DeclareTextComposite{\v}{T1}{T}{148}
1892 \DeclareTextComposite{\c}{T1}{T}{149}
1893 \DeclareTextComposite{\H}{T1}{U}{150}
1894 \DeclareTextComposite{\r}{T1}{U}{151}
1898 \DeclareTextComposite{\"}{T1}{Y}{152}
1899 \DeclareTextComposite{\'}{T1}{Z}{153}
1900 \DeclareTextComposite{\v}{T1}{Z}{154}
1901 \DeclareTextComposite{\.}{T1}{Z}{155}
1902 \DeclareTextComposite{\.}{T1}{I}{157}
1906 \DeclareTextComposite{\u}{T1}{a}{160}
1907 \DeclareTextComposite{\k}{T1}{a}{161}
1908 \DeclareTextComposite{\'}{T1}{c}{162}
1909 \DeclareTextComposite{\v}{T1}{c}{163}
1910 \DeclareTextComposite{\v}{T1}{d}{164}
1911 \DeclareTextComposite{\v}{T1}{e}{165}
1912 \DeclareTextComposite{\k}{T1}{e}{166}
1913 \DeclareTextComposite{\u}{T1}{g}{167}
1917 \DeclareTextComposite{\'}{T1}{l}{168}
1918 \DeclareTextComposite{\v}{T1}{l}{169}
1919 \DeclareTextComposite{\'}{T1}{n}{171}
1920 \DeclareTextComposite{\v}{T1}{n}{172}
1921 \DeclareTextComposite{\H}{T1}{o}{174}
1922 \DeclareTextComposite{\'}{T1}{r}{175}
1926 \DeclareTextComposite{\v}{T1}{r}{176}
1927 \DeclareTextComposite{\'}{T1}{s}{177}
1928 \DeclareTextComposite{\v}{T1}{s}{178}
1929 \DeclareTextComposite{\c}{T1}{s}{179}
1930 \DeclareTextComposite{\v}{T1}{t}{180}
1931 \DeclareTextComposite{\c}{T1}{t}{181}
1932 \DeclareTextComposite{\H}{T1}{u}{182}
1933 \DeclareTextComposite{\r}{T1}{u}{183}
1937 \DeclareTextComposite{\"}{T1}{y}{184}
1938 \DeclareTextComposite{\'}{T1}{z}{185}
1939 \DeclareTextComposite{\v}{T1}{z}{186}
1940 \DeclareTextComposite{\.}{T1}{z}{187}
1944 \DeclareTextComposite{\`}{T1}{A}{192}
1945 \DeclareTextComposite{\'}{T1}{A}{193}
1946 \DeclareTextComposite{\^}{T1}{A}{194}
1947 \DeclareTextComposite{\~}{T1}{A}{195}
1948 \DeclareTextComposite{\"}{T1}{A}{196}
1949 \DeclareTextComposite{\r}{T1}{A}{197}
1950 \DeclareTextComposite{\c}{T1}{C}{199}
1954 \DeclareTextComposite{\`}{T1}{E}{200}
1955 \DeclareTextComposite{\'}{T1}{E}{201}
1956 \DeclareTextComposite{\^}{T1}{E}{202}
1957 \DeclareTextComposite{\"}{T1}{E}{203}
1958 \DeclareTextComposite{\`}{T1}{I}{204}
1959 \DeclareTextComposite{\'}{T1}{I}{205}
1960 \DeclareTextComposite{\^}{T1}{I}{206}
1961 \DeclareTextComposite{\"}{T1}{I}{207}
1965 \DeclareTextComposite{\~}{T1}{N}{209}
1966 \DeclareTextComposite{\`}{T1}{O}{210}
1967 \DeclareTextComposite{\'}{T1}{O}{211}
1968 \DeclareTextComposite{\^}{T1}{O}{212}
1969 \DeclareTextComposite{\~}{T1}{O}{213}
1970 \DeclareTextComposite{\"}{T1}{O}{214}
1974 \DeclareTextComposite{\`}{T1}{U}{217}
1975 \DeclareTextComposite{\'}{T1}{U}{218}
1976 \DeclareTextComposite{\^}{T1}{U}{219}
1977 \DeclareTextComposite{\"}{T1}{U}{220}
1978 \DeclareTextComposite{\'}{T1}{Y}{221}
1982 \DeclareTextComposite{\`}{T1}{a}{224}
1983 \DeclareTextComposite{\'}{T1}{a}{225}
1984 \DeclareTextComposite{\^}{T1}{a}{226}
1985 \DeclareTextComposite{\~}{T1}{a}{227}
1986 \DeclareTextComposite{\"}{T1}{a}{228}
1987 \DeclareTextComposite{\r}{T1}{a}{229}
1988 \DeclareTextComposite{\c}{T1}{c}{231}
1992 \DeclareTextComposite{\`}{T1}{e}{232}
1993 \DeclareTextComposite{\'}{T1}{e}{233}
1994 \DeclareTextComposite{\^}{T1}{e}{234}
1995 \DeclareTextComposite{\"}{T1}{e}{235}
1996 \DeclareTextComposite{\`}{T1}{i}{236}
1997 \DeclareTextComposite{\`}{T1}{\i}{236}
1998 \DeclareTextComposite{\'}{T1}{i}{237}
1999 \DeclareTextComposite{\'}{T1}{\i}{237}
2000 \DeclareTextComposite{\^}{T1}{i}{238}
2001 \DeclareTextComposite{\^}{T1}{\i}{238}
2002 \DeclareTextComposite{\"}{T1}{i}{239}
2003 \DeclareTextComposite{\"}{T1}{\i}{239}
2007 \DeclareTextComposite{\~}{T1}{n}{241}
2008 \DeclareTextComposite{\`}{T1}{o}{242}
2009 \DeclareTextComposite{\'}{T1}{o}{243}
2010 \DeclareTextComposite{\^}{T1}{o}{244}
2011 \DeclareTextComposite{\~}{T1}{o}{245}
2012 \DeclareTextComposite{\"}{T1}{o}{246}
2016 \DeclareTextComposite{\`}{T1}{u}{249}
2017 \DeclareTextComposite{\'}{T1}{u}{250}
2018 \DeclareTextComposite{\^}{T1}{u}{251}
2019 \DeclareTextComposite{\"}{T1}{u}{252}
2020 \DeclareTextComposite{\'}{T1}{y}{253}
2022 % \changes{v1.99b}{2004/01/03}{Added composites for \cs{k} (pr/3532)}
2024 \DeclareTextCompositeCommand{\k}{T1}{o}{\textogonekcentered{o}}
2025 \DeclareTextCompositeCommand{\k}{T1}{O}{\textogonekcentered{O}}
2032 % \changes{1.4a}{1994/05/01}{Removed the uc/lc table settings, since
2033 % the T1 uc/lc table is now the default.}
2035 % \subsection{Definitions for the OMS encoding}
2037 % \changes{v1.6a}{1994/10/25}{Added the OMS encoding.}
2038 % \changes{v1.6b}{1994/10/27}{Renamed \cs{textlbrace} to
2039 % \cs{textbraceleft} and \cs{textrbrace} to \cs{textbraceright}.}
2040 % \changes{v1.6b}{1994/10/27}{Added \cs{textbackslash}.}
2041 % \changes{v1.6d}{1994/10/30}{Added \cs{textcircled}.}
2043 % The definitions for the `\TeX{} math symbol' (OMS) encoding. Even
2044 % though this is meant to be a math font, it includes some of the
2045 % standard \LaTeX{} text symbols.
2047 % Declare the encoding.
2050 \DeclareFontEncoding{OMS}{}{}
2052 % Declare the symbols.
2053 % \changes{v1.7t}{1995/11/29}{Added \cs{textbackslash} and
2055 % \changes{v1.8c}{1996/10/27}
2056 % {Added \cs{textasteriskcentered}}
2057 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
2059 % \changes{v1.95}{2002/06/16}{Added \cs{textbardbl} (pr/3400)}
2061 % \changes{v1.99}{2004/02/02}{Added \cs{textbigcircle}}
2062 % Note that slot 13 has in places been named |\Orb|: please root
2063 % out and destroy this impolity wherever you find it!
2065 \DeclareTextSymbol{\textasteriskcentered}{OMS}{3} % "03
2066 \DeclareTextSymbol{\textbackslash}{OMS}{110} % "6E
2067 \DeclareTextSymbol{\textbar}{OMS}{106} % "6A
2068 \DeclareTextSymbol{\textbardbl}{OMS}{107} % "6B
2069 \DeclareTextSymbol{\textbraceleft}{OMS}{102} % "66
2070 \DeclareTextSymbol{\textbraceright}{OMS}{103} % "67
2071 \DeclareTextSymbol{\textbullet}{OMS}{15} % "0F
2072 \DeclareTextSymbol{\textdaggerdbl}{OMS}{122} % "7A
2073 \DeclareTextSymbol{\textdagger}{OMS}{121} % "79
2074 \DeclareTextSymbol{\textparagraph}{OMS}{123} % "7B
2075 \DeclareTextSymbol{\textperiodcentered}{OMS}{1} % "01
2076 \DeclareTextSymbol{\textsection}{OMS}{120} % "78
2077 \DeclareTextSymbol{\textbigcircle}{OMS}{13} % "0D
2078 \DeclareTextCommand{\textcircled}{OMS}[1]{\hmode@bgroup
2080 \hfil \raise .07ex\hbox {\upshape#1}\hfil \crcr
2087 % \subsection{Definitions for the OML encoding}
2089 % \changes{v1.6d}{1994/10/30}{Added the OML encoding.}
2091 % The definitions for the `\TeX{} math italic' (OML) encoding. Even
2092 % though this is meant to be a math font, it includes some of the
2093 % standard \LaTeX{} text symbols.
2095 % Declare the encoding.
2098 \DeclareFontEncoding{OML}{}{}
2100 % Declare the symbols.
2101 % \changes{v1.7t}{1995/11/29}{Added \cs{textless} and
2102 % \cs{textgreater}.}
2103 % \changes{v1.9h}{1997/12/17}{Changed to decimal codes.}
2104 % \changes{v1.9m}{1998/01/16}{fixed decimal codes. latex/2734}
2106 \DeclareTextSymbol{\textless}{OML}{`\<}
2107 \DeclareTextSymbol{\textgreater}{OML}{`\>}
2108 \DeclareTextAccent{\t}{OML}{127} % "7F
2112 % \subsection{Definitions for the OT4 encoding}
2114 % These definitions are for the Polish extension to the
2115 % `\TeX\ text' (OT1) encoding.
2116 % This encoding was created by B.~Jackowski and M.~Ry\'cko
2117 % for use with the Polish version of Computer Modern and Computer
2118 % Concrete. In positions 0--127 it is identical to OT1 but it
2119 % contains some additional characters in the upper half. The \LaTeX{}
2120 % support was developed by Mariusz Olko.
2122 % The PL fonts that use it are available as follows:\\
2124 % \texttt{ftp://ftp.gust.org.pl/TeX/language/polish/pl-mf.zip};
2127 % \texttt{ftp://ftp.gust.org.pl/TeX/language/polish/pl-tfm.zip}.
2129 % Declare the encoding.
2132 \DeclareFontEncoding{OT4}{}{}
2133 \DeclareFontSubstitution{OT4}{cmr}{m}{n}
2135 % Declare the accents.
2137 \DeclareTextAccent{\"}{OT4}{127}
2138 \DeclareTextAccent{\'}{OT4}{19}
2139 \DeclareTextAccent{\.}{OT4}{95}
2140 \DeclareTextAccent{\=}{OT4}{22}
2141 \DeclareTextAccent{\^}{OT4}{94}
2142 \DeclareTextAccent{\`}{OT4}{18}
2143 \DeclareTextAccent{\~}{OT4}{126}
2144 \DeclareTextAccent{\H}{OT4}{125}
2145 \DeclareTextAccent{\u}{OT4}{21}
2146 \DeclareTextAccent{\v}{OT4}{20}
2147 \DeclareTextAccent{\r}{OT4}{23}
2149 % The ogonek accent is available only under a e A \& E. But we
2150 % have to provide some definition for \cs{k}. Some other accents
2151 % have to be built by hand as in OT1:
2152 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
2155 \DeclareTextCommand{\k}{OT4}[1]{%
2156 \TextSymbolUnavailable{\k{#1}}#1}
2158 % In these definitions we no longer use the helper function |\sh@ft|
2159 % from plain.tex since that now has two incompatible definitions.
2160 % \changes{v1.99g}{2005/09/27}{Replace \cs{sh@ft} by \cs{ltx@sh@ft}}
2162 \DeclareTextCommand{\b}{OT4}[1]
2163 {\hmode@bgroup\o@lign{\relax#1\crcr\hidewidth\ltx@sh@ft{-3ex}%
2164 \vbox to.2ex{\hbox{\char22}\vss}\hidewidth}\egroup}
2165 \DeclareTextCommand{\c}{OT4}[1]
2166 {\leavevmode\setbox\z@\hbox{#1}\ifdim\ht\z@=1ex\accent24 #1%
2167 \else{\ooalign{\unhbox\z@\crcr\hidewidth\char24\hidewidth}}\fi}
2168 \DeclareTextCommand{\d}{OT4}[1]
2170 \o@lign{\relax#1\crcr\hidewidth\ltx@sh@ft{-1ex}.\hidewidth}\egroup}
2172 % Declare the text symbols.
2174 \DeclareTextSymbol{\AE}{OT4}{29}
2175 \DeclareTextSymbol{\OE}{OT4}{30}
2176 \DeclareTextSymbol{\O}{OT4}{31}
2177 \DeclareTextSymbol{\L}{OT4}{138}
2178 \DeclareTextSymbol{\ae}{OT4}{26}
2179 \DeclareTextSymbol{\guillemotleft}{OT4}{174}
2180 \DeclareTextSymbol{\guillemotright}{OT4}{175}
2181 \DeclareTextSymbol{\i}{OT4}{16}
2182 \DeclareTextSymbol{\j}{OT4}{17}
2183 \DeclareTextSymbol{\l}{OT4}{170}
2184 \DeclareTextSymbol{\o}{OT4}{28}
2185 \DeclareTextSymbol{\oe}{OT4}{27}
2186 \DeclareTextSymbol{\quotedblbase}{OT4}{255}
2187 \DeclareTextSymbol{\ss}{OT4}{25}
2188 \DeclareTextSymbol{\textemdash}{OT4}{124}
2189 \DeclareTextSymbol{\textendash}{OT4}{123}
2190 \DeclareTextSymbol{\textexclamdown}{OT4}{60}
2191 %\DeclareTextSymbol{\texthyphenchar}{OT4}{`\-}
2192 %\DeclareTextSymbol{\texthyphen}{OT4}{`\-}
2193 \DeclareTextSymbol{\textquestiondown}{OT4}{62}
2194 \DeclareTextSymbol{\textquotedblleft}{OT4}{92}
2195 \DeclareTextSymbol{\textquotedblright}{OT4}{`\"}
2196 \DeclareTextSymbol{\textquoteleft}{OT4}{`\`}
2197 \DeclareTextSymbol{\textquoteright}{OT4}{`\'}
2199 % Definition for \r A as in OT1:
2200 % \changes{v1.96}{2002/10/28}{%
2201 % coding change, to follow bug fix by DEK in plain.tex (pr/3469)}
2203 \DeclareTextCompositeCommand{\r}{OT4}{A}
2204 {\leavevmode\setbox\z@\hbox{!}\dimen@\ht\z@\advance\dimen@-1ex%
2205 \rlap{\raise.67\dimen@\hbox{\char23}}A}
2207 % In the OT4 encoding, \pounds~and \$ share a slot.
2208 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
2211 \DeclareTextCommand{\textdollar}{OT4}{\hmode@bgroup
2212 \ifdim \fontdimen\@ne\font >\z@
2218 \DeclareTextCommand{\textsterling}{OT4}{\hmode@bgroup
2219 \ifdim \fontdimen\@ne\font >\z@
2222 \fontshape{ui}\selectfont
2226 % Declare the composites.
2228 \DeclareTextComposite{\k}{OT4}{A}{129}
2229 \DeclareTextComposite{\'}{OT4}{C}{130}
2230 \DeclareTextComposite{\k}{OT4}{E}{134}
2231 \DeclareTextComposite{\'}{OT4}{N}{139}
2232 \DeclareTextComposite{\'}{OT4}{S}{145}
2233 \DeclareTextComposite{\'}{OT4}{Z}{153}
2234 \DeclareTextComposite{\.}{OT4}{Z}{155}
2235 \DeclareTextComposite{\k}{OT4}{a}{161}
2236 \DeclareTextComposite{\'}{OT4}{c}{162}
2237 \DeclareTextComposite{\k}{OT4}{e}{166}
2238 \DeclareTextComposite{\'}{OT4}{n}{171}
2239 \DeclareTextComposite{\'}{OT4}{s}{177}
2240 \DeclareTextComposite{\'}{OT4}{z}{185}
2241 \DeclareTextComposite{\.}{OT4}{z}{187}
2242 \DeclareTextComposite{\'}{OT4}{O}{211}
2243 \DeclareTextComposite{\'}{OT4}{o}{243}
2248 % \subsection{Definitions for the TS1 encoding}
2250 % \changes{v1.9c}{1997/05/04}{Added TS1 encoding v2.2.beta}
2251 % \changes{v1.9g}{1997/11/23}
2252 % {Use \cs{textperthousand}, \cs{textpertenthousand} and
2253 % \cs{textfractionsolidus} not
2254 % \cs{textpermill}, \cs{textpertenmill} and \cs{textfraction}.
2256 % \changes{v1.9h}{1997/12/17}
2257 % {Removed default settings, see next section.}
2261 \DeclareFontEncoding{TS1}{}{}
2262 \DeclareFontSubstitution{TS1}{cmr}{m}{n}
2264 % Some accents have to be built by hand.
2265 % Note that |\ooalign| and |\o@lign| must be inside a group.
2266 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
2269 \DeclareTextCommand{\capitalcedilla}{TS1}[1]
2271 \ooalign{\null#1\crcr\hidewidth\char11\hidewidth}\egroup}
2272 \DeclareTextCommand{\capitalogonek}{TS1}[1]
2274 \ooalign{\null#1\crcr\hidewidth\char12\hidewidth}\egroup}
2277 % Accents for capital letters.
2279 % These commands can be used by the end user either directly or through
2280 % definitions of the type
2282 % \DeclareTextCompositeCommand{\'}{T1}{X}{\capitalacute X}
2284 % None of the latter definitions are provided by default, since they
2285 % are probably rarely used.
2289 \DeclareTextAccent{\capitalgrave}{TS1}{0}
2290 \DeclareTextAccent{\capitalacute}{TS1}{1}
2291 \DeclareTextAccent{\capitalcircumflex}{TS1}{2}
2292 \DeclareTextAccent{\capitaltilde}{TS1}{3}
2293 \DeclareTextAccent{\capitaldieresis}{TS1}{4}
2294 \DeclareTextAccent{\capitalhungarumlaut}{TS1}{5}
2295 \DeclareTextAccent{\capitalring}{TS1}{6}
2296 \DeclareTextAccent{\capitalcaron}{TS1}{7}
2300 \DeclareTextAccent{\capitalbreve}{TS1}{8}
2301 \DeclareTextAccent{\capitalmacron}{TS1}{9}
2302 \DeclareTextAccent{\capitaldotaccent}{TS1}{10}
2306 % The tie accent was borrowed from the |cmmi| font. The tc fonts
2307 % now provide four tie accents, the first two are done in the
2308 % classical way with assymetric glyphs hanging out of their boxes;
2309 % the new ties are centered in their boxes like all other accents.
2310 % They need a name: please tell us if you know what to call them.
2314 \DeclareTextAccent{\t}{TS1}{26}
2315 \DeclareTextAccent{\capitaltie}{TS1}{27}
2316 \DeclareTextAccent{\newtie}{TS1}{28}
2317 \DeclareTextAccent{\capitalnewtie}{TS1}{29}
2320 % Compund word marks.
2322 % The text companion fonts contain two compound word marks of
2323 % different heights, one has |cap_height|, the other |asc_height|.
2326 \DeclareTextSymbol{\textcapitalcompwordmark}{TS1}{23}
2327 \DeclareTextSymbol{\textascendercompwordmark}{TS1}{31}
2330 % The text companion symbols.
2333 \DeclareTextSymbol{\textquotestraightbase}{TS1}{13}
2337 \DeclareTextSymbol{\textquotestraightdblbase}{TS1}{18}
2338 \DeclareTextSymbol{\texttwelveudash}{TS1}{21}
2339 \DeclareTextSymbol{\textthreequartersemdash}{TS1}{22}
2343 \DeclareTextSymbol{\textleftarrow}{TS1}{24}
2344 \DeclareTextSymbol{\textrightarrow}{TS1}{25}
2348 \DeclareTextSymbol{\textblank}{TS1}{32}
2349 \DeclareTextSymbol{\textdollar}{TS1}{36}
2350 \DeclareTextSymbol{\textquotesingle}{TS1}{39}
2354 \DeclareTextSymbol{\textasteriskcentered}{TS1}{42}
2356 % Note that '054 is a comma and '056 is a full stop: these make
2357 % numbers using oldstyle digits easier to input.
2359 \DeclareTextSymbol{\textdblhyphen}{TS1}{45}
2360 \DeclareTextSymbol{\textfractionsolidus}{TS1}{47}
2367 \DeclareTextSymbol{\textzerooldstyle}{TS1}{48}
2368 \DeclareTextSymbol{\textoneoldstyle}{TS1}{49}
2369 \DeclareTextSymbol{\texttwooldstyle}{TS1}{50}
2370 \DeclareTextSymbol{\textthreeoldstyle}{TS1}{51}
2371 \DeclareTextSymbol{\textfouroldstyle}{TS1}{52}
2372 \DeclareTextSymbol{\textfiveoldstyle}{TS1}{53}
2373 \DeclareTextSymbol{\textsixoldstyle}{TS1}{54}
2374 \DeclareTextSymbol{\textsevenoldstyle}{TS1}{55}
2378 \DeclareTextSymbol{\texteightoldstyle}{TS1}{56}
2379 \DeclareTextSymbol{\textnineoldstyle}{TS1}{57}
2382 % More text companion symbols.
2385 \DeclareTextSymbol{\textlangle}{TS1}{60}
2386 \DeclareTextSymbol{\textminus}{TS1}{61}
2387 \DeclareTextSymbol{\textrangle}{TS1}{62}
2391 \DeclareTextSymbol{\textmho}{TS1}{77}
2394 % \changes{v1.9r}{1999/01/06}{Minor documentation fix.}
2395 % The big circle is here to define the command \cs{textcircled}.
2396 % Formerly it was taken from the |cmsy| font.
2397 % \changes{v1.9h}{1997/12/17}{Changed to decimal codes in \cs{ooalign}.}
2398 % \changes{v1.9k}{1998/01/12}{Adding missing braces and \cs{ushape}.}
2399 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
2402 \DeclareTextSymbol{\textbigcircle}{TS1}{79}
2403 \DeclareTextCommand{\textcircled}{TS1}[1]{\hmode@bgroup
2405 \hfil \raise .07ex\hbox {\upshape#1}\hfil \crcr
2406 \char 79 % '117 = "4F
2411 % More text companion symbols.
2415 \DeclareTextSymbol{\textohm}{TS1}{87}
2419 \DeclareTextSymbol{\textlbrackdbl}{TS1}{91}
2420 \DeclareTextSymbol{\textrbrackdbl}{TS1}{93}
2421 \DeclareTextSymbol{\textuparrow}{TS1}{94}
2422 \DeclareTextSymbol{\textdownarrow}{TS1}{95}
2426 \DeclareTextSymbol{\textasciigrave}{TS1}{96}
2427 \DeclareTextSymbol{\textborn}{TS1}{98}
2428 \DeclareTextSymbol{\textdivorced}{TS1}{99}
2429 \DeclareTextSymbol{\textdied}{TS1}{100}
2433 \DeclareTextSymbol{\textleaf}{TS1}{108}
2434 \DeclareTextSymbol{\textmarried}{TS1}{109}
2435 \DeclareTextSymbol{\textmusicalnote}{TS1}{110}
2439 \DeclareTextSymbol{\texttildelow}{TS1}{126}
2442 % This glyph, |\textdblhyphenchar| is hanging, like the hyphenchar of
2446 \DeclareTextSymbol{\textdblhyphenchar}{TS1}{127}
2450 \DeclareTextSymbol{\textasciibreve}{TS1}{128}
2451 \DeclareTextSymbol{\textasciicaron}{TS1}{129}
2454 % This next glyph is \emph{not} the same as |\textquotedbl|.
2456 % \changes{v1.9p}{1998/06/12}{Corrected 130 and 131, see pr/2834}
2458 \DeclareTextSymbol{\textacutedbl}{TS1}{130}
2459 \DeclareTextSymbol{\textgravedbl}{TS1}{131}
2460 \DeclareTextSymbol{\textdagger}{TS1}{132}
2461 \DeclareTextSymbol{\textdaggerdbl}{TS1}{133}
2462 \DeclareTextSymbol{\textbardbl}{TS1}{134}
2463 \DeclareTextSymbol{\textperthousand}{TS1}{135}
2467 \DeclareTextSymbol{\textbullet}{TS1}{136}
2468 \DeclareTextSymbol{\textcelsius}{TS1}{137}
2469 \DeclareTextSymbol{\textdollaroldstyle}{TS1}{138}
2470 \DeclareTextSymbol{\textcentoldstyle}{TS1}{139}
2471 \DeclareTextSymbol{\textflorin}{TS1}{140}
2472 \DeclareTextSymbol{\textcolonmonetary}{TS1}{141}
2473 \DeclareTextSymbol{\textwon}{TS1}{142}
2474 \DeclareTextSymbol{\textnaira}{TS1}{143}
2478 \DeclareTextSymbol{\textguarani}{TS1}{144}
2479 \DeclareTextSymbol{\textpeso}{TS1}{145}
2480 \DeclareTextSymbol{\textlira}{TS1}{146}
2481 \DeclareTextSymbol{\textrecipe}{TS1}{147}
2482 \DeclareTextSymbol{\textinterrobang}{TS1}{148}
2483 \DeclareTextSymbol{\textinterrobangdown}{TS1}{149}
2484 \DeclareTextSymbol{\textdong}{TS1}{150}
2485 \DeclareTextSymbol{\texttrademark}{TS1}{151}
2489 \DeclareTextSymbol{\textpertenthousand}{TS1}{152}
2490 \DeclareTextSymbol{\textpilcrow}{TS1}{153}
2491 \DeclareTextSymbol{\textbaht}{TS1}{154}
2492 \DeclareTextSymbol{\textnumero}{TS1}{155}
2494 % This next name may change.
2495 % For the following sign we know only a german name, which is
2496 % abz\"uglich. The meaning is something like ``commercial minus''.
2497 % An ASCII ersatz is ./. (dot slash dot).
2498 % The temporary English name is |\textdiscount|.
2500 \DeclareTextSymbol{\textdiscount}{TS1}{156}
2501 \DeclareTextSymbol{\textestimated}{TS1}{157}
2502 \DeclareTextSymbol{\textopenbullet}{TS1}{158}
2503 \DeclareTextSymbol{\textservicemark}{TS1}{159}
2507 \DeclareTextSymbol{\textlquill}{TS1}{160}
2508 \DeclareTextSymbol{\textrquill}{TS1}{161}
2509 \DeclareTextSymbol{\textcent}{TS1}{162}
2510 \DeclareTextSymbol{\textsterling}{TS1}{163}
2511 \DeclareTextSymbol{\textcurrency}{TS1}{164}
2512 \DeclareTextSymbol{\textyen}{TS1}{165}
2513 \DeclareTextSymbol{\textbrokenbar}{TS1}{166}
2514 \DeclareTextSymbol{\textsection}{TS1}{167}
2518 \DeclareTextSymbol{\textasciidieresis}{TS1}{168}
2519 \DeclareTextSymbol{\textcopyright}{TS1}{169}
2520 \DeclareTextSymbol{\textordfeminine}{TS1}{170}
2521 \DeclareTextSymbol{\textcopyleft}{TS1}{171}
2522 \DeclareTextSymbol{\textlnot}{TS1}{172}
2525 % The meaning of the circled-P is ``sound recording copyright''.
2527 % \changes{v1.9p}{1998/06/12}{Renamed \cs{textmacron} pr/2840}
2529 \DeclareTextSymbol{\textcircledP}{TS1}{173}
2530 \DeclareTextSymbol{\textregistered}{TS1}{174}
2531 \DeclareTextSymbol{\textasciimacron}{TS1}{175}
2535 \DeclareTextSymbol{\textdegree}{TS1}{176}
2536 \DeclareTextSymbol{\textpm}{TS1}{177}
2537 \DeclareTextSymbol{\texttwosuperior}{TS1}{178}
2538 \DeclareTextSymbol{\textthreesuperior}{TS1}{179}
2539 \DeclareTextSymbol{\textasciiacute}{TS1}{180}
2540 \DeclareTextSymbol{\textmu}{TS1}{181} % micro sign
2541 \DeclareTextSymbol{\textparagraph}{TS1}{182}
2542 \DeclareTextSymbol{\textperiodcentered}{TS1}{183}
2546 \DeclareTextSymbol{\textreferencemark}{TS1}{184}
2547 \DeclareTextSymbol{\textonesuperior}{TS1}{185}
2548 \DeclareTextSymbol{\textordmasculine}{TS1}{186}
2549 \DeclareTextSymbol{\textsurd}{TS1}{187}
2550 \DeclareTextSymbol{\textonequarter}{TS1}{188}
2551 \DeclareTextSymbol{\textonehalf}{TS1}{189}
2552 \DeclareTextSymbol{\textthreequarters}{TS1}{190}
2553 \DeclareTextSymbol{\texteuro}{TS1}{191}
2557 \DeclareTextSymbol{\texttimes}{TS1}{214}
2561 \DeclareTextSymbol{\textdiv}{TS1}{246}
2565 % \section{Package files}
2567 % \changes{v1.9h}{1997/12/17}{Added section.}
2568 % \changes{v1.9h}{1997/12/17}{Added code for textcomp.sty.}
2569 % This file now also contains some packages that provide access to
2570 % the more specialised encodings.
2572 % \subsection{The fontenc package}
2574 % \changes{v1.5c}{1994/05/14}{Added the fontenc package}
2575 % \changes{v1.5g}{1994/05/16}{Removed the lowercasing of the filename.}
2576 % \changes{v1.7a}{1994/11/30}{Always load the enc.def file, so that
2577 % the default encoding for the commands will change.}
2578 % \changes{v1.7x}{1996/05/18}{Produce error if encoding not found.
2580 % \changes{v1.7y}{1996/05/21}{Corrected error message (CAR)}
2581 % \changes{v1.8d}{1996/11/18}
2582 % {(DPC) lowercase external file names. internal/1044}%
2583 % This package allows authors to specify which encodings they will use.
2584 % For each encoding |FOO|, the package looks to see if the encoding
2585 % |FOO| has already been declared. If it has not, the file |fooenc.def|
2586 % is loaded. The default encoding is set to be |FOO|.
2588 % In addition the package at the moment contains extra code to extend
2589 % the |\@uclclist| (list of upper/lower case pairs) for encodings that
2590 % involve cyrillic characters. THIS IS A TEMPORARY SOLUTION and will not
2591 % stay this way forever (or so we hope) but right now we are missing a
2592 % proper interface for this and didn't wanted to rush it.
2593 % \changes{v1.9r}{1999/01/07}{Hackery to temp support cyrillic uc/lc}
2594 % \changes{v1.9t}{1999/02/24}{Corrected hackery cyrillic uc/lc list}
2595 % \changes{v1.9x}{1999/12/08}{Changed \cs{CYRRHOOK} and \cs{cyrrhook}
2596 % to\cs{CYRRHK} and \cs{cyrrhk} as name changed in the cyrillic
2597 % bundle for naming consistency with other ``hook'' glyphs.}
2602 % Here we define a macro that extends the |\@uclclist| if needed and
2603 % afterwards turns itself in a noop.
2605 \def\update@uclc@with@cyrillic{%
2606 \expandafter\def\expandafter\@uclclist\expandafter
2608 \cyra\CYRA\cyrabhch\CYRABHCH\cyrabhchdsc\CYRABHCHDSC\cyrabhdze
2609 \CYRABHDZE\cyrabhha\CYRABHHA\cyrae\CYRAE\cyrb\CYRB\cyrbyus
2610 \CYRBYUS\cyrc\CYRC\cyrch\CYRCH\cyrchldsc\CYRCHLDSC\cyrchrdsc
2611 \CYRCHRDSC\cyrchvcrs\CYRCHVCRS\cyrd\CYRD\cyrdelta\CYRDELTA
2612 \cyrdje\CYRDJE\cyrdze\CYRDZE\cyrdzhe\CYRDZHE\cyre\CYRE\cyreps
2613 \CYREPS\cyrerev\CYREREV\cyrery\CYRERY\cyrf\CYRF\cyrfita
2614 \CYRFITA\cyrg\CYRG\cyrgdsc\CYRGDSC\cyrgdschcrs\CYRGDSCHCRS
2615 \cyrghcrs\CYRGHCRS\cyrghk\CYRGHK\cyrgup\CYRGUP\cyrh\CYRH
2616 \cyrhdsc\CYRHDSC\cyrhhcrs\CYRHHCRS\cyrhhk\CYRHHK\cyrhrdsn
2617 \CYRHRDSN\cyri\CYRI\cyrie\CYRIE\cyrii\CYRII\cyrishrt\CYRISHRT
2618 \cyrishrtdsc\CYRISHRTDSC\cyrizh\CYRIZH\cyrje\CYRJE\cyrk\CYRK
2619 \cyrkbeak\CYRKBEAK\cyrkdsc\CYRKDSC\cyrkhcrs\CYRKHCRS\cyrkhk
2620 \CYRKHK\cyrkvcrs\CYRKVCRS\cyrl\CYRL\cyrldsc\CYRLDSC\cyrlhk
2621 \CYRLHK\cyrlje\CYRLJE\cyrm\CYRM\cyrmdsc\CYRMDSC\cyrmhk\CYRMHK
2622 \cyrn\CYRN\cyrndsc\CYRNDSC\cyrng\CYRNG\cyrnhk\CYRNHK\cyrnje
2623 \CYRNJE\cyrnlhk\CYRNLHK\cyro\CYRO\cyrotld\CYROTLD\cyrp\CYRP
2624 \cyrphk\CYRPHK\cyrq\CYRQ\cyrr\CYRR\cyrrdsc\CYRRDSC\cyrrhk
2625 \CYRRHK\cyrrtick\CYRRTICK\cyrs\CYRS\cyrsacrs\CYRSACRS
2626 \cyrschwa\CYRSCHWA\cyrsdsc\CYRSDSC\cyrsemisftsn\CYRSEMISFTSN
2627 \cyrsftsn\CYRSFTSN\cyrsh\CYRSH\cyrshch\CYRSHCH\cyrshha\CYRSHHA
2628 \cyrt\CYRT\cyrtdsc\CYRTDSC\cyrtetse\CYRTETSE\cyrtshe\CYRTSHE
2629 \cyru\CYRU\cyrushrt\CYRUSHRT\cyrv\CYRV\cyrw\CYRW\cyry\CYRY
2630 \cyrya\CYRYA\cyryat\CYRYAT\cyryhcrs\CYRYHCRS\cyryi\CYRYI\cyryo
2631 \CYRYO\cyryu\CYRYU\cyrz\CYRZ\cyrzdsc\CYRZDSC\cyrzh\CYRZH
2632 \cyrzhdsc\CYRZHDSC}%
2633 \let\update@uclc@with@cyrillic\relax
2637 % Here we process each option:
2640 \let\encodingdefault\CurrentOption
2642 \lowercase{\def\noexpand\reserved@f{\CurrentOption enc.def}}}%
2644 \InputIfFileExists\reserved@f
2645 {}{\PackageError{fontenc}%
2646 {Encoding file `\reserved@f' not found.%
2648 You might have misspelt the name of the encoding}%
2649 {Necessary code for this encoding was not
2650 loaded.\MessageBreak
2651 Thus calling the encoding later on will
2652 produce further error messages.}}%
2653 \let\reserved@f\relax
2656 % In case the current encoding is one of a list of known
2657 % cyrillic ones we extend the |\@uclclist|:
2659 \expandafter\in@\expandafter{\CurrentOption}%
2660 {T2A,T2B,T2C,X2,LCY,OT2}%
2664 % But only if it hasn't already been extended. This might happen if
2665 % there are several calls to fontenc loading one of the above
2666 % encodings. If we don't do this check the |\@uclclist| gets
2667 % unnecessarily big, slowing down the processing at runtime.
2668 % \changes{v1.9v}{1999/06/12}{Extend \cs{@uclclist} only once}
2670 \expandafter\in@\expandafter\cyra\expandafter
2674 \update@uclc@with@cyrillic
2685 \fontencoding\encodingdefault\selectfont
2688 % To save some space we get rid of the macro extending the
2689 % |\@uclclist| (might have happened already).
2691 \let\update@uclc@with@cyrillic\relax
2694 % Finally we pretend that the fontenc package wasn't read in. This
2695 % allows for using it several times, e.g., in a class file and in the
2696 % preamble (at the cost of not getting any version info).
2697 % That kind of hackery shows that using a general purpose
2698 % package just for loading an encoding is not the right kind
2699 % of interface for setting up encodings --- it will get replaced at
2700 % some point in the future.
2701 % \changes{v1.9r}{1999/01/07}{Hackery to allow using fontenc several
2703 % \changes{v1.9u}{1999/06/10}{Ensure that we also forget old options
2706 \global\expandafter\let\csname ver@fontenc.sty\endcsname\relax
2707 \global\expandafter\let\csname opt@fontenc.sty\endcsname\relax
2708 \global\let\@ifl@ter@@\@ifl@ter
2709 \def\@ifl@ter#1#2#3#4#5{\global\let\@ifl@ter\@ifl@ter@@}
2714 % \subsection{The textcomp package}
2716 % This one is for the |TS1| encoding which contains text symbols
2717 % for use with the |T1|-encoded text fonts. It therefore first
2718 % inputs the file |TS1enc.def| and then sets (or resets) the
2719 % defaults for the symbols it contains. The result of this is that
2720 % when one of these symbols is accessed and the current encoding
2721 % does not provide it, the symbol will be supplied by a silent,
2722 % local change to this encoding.
2727 % Since many PostScript fonts only implement a subset of |TS1| many
2728 % commands only produce black blobs of ink. To resolve the
2729 % resulting problems a number of options have been introduced and
2730 % some code has been developed to distinguish sub-encodings.
2732 % The sub-encodings have a numerical id and are defined as follows
2734 % \begin{description}
2736 % \item[\#5] those \texttt{TS1} symbols that are also in the ISO-Adobe
2737 % character set; without \verb=textcurrency=, which is often
2738 % misused for the Euro. Older Type1 fonts from the non-\TeX{}
2739 % world provide only this subset.
2741 % \item[\#4] = \#5 + \verb=\texteuro=. Most newer fonts provide this.
2743 % \item[\#3] = \#4 + \verb=\textomega=. Can also be described as
2744 % $\texttt{TS1} \cap (\texttt{ISO-Adobe} \cup
2745 % \texttt{MacRoman})$. (Except for the missing "currency".)
2748 % \item[\#2] = \#3 + \verb=\textestimated= + \verb=\textcurrency=. Can
2749 % also be described as $\texttt{TS1} \cap
2750 % \texttt{Adobe-Western-2}$. This may be relevant for OpenType
2751 % fonts, which usually show the Adobe-Western-2 character set.
2753 % \item[\#1] = \texttt{TS1} without \verb=\textcircled= and \verb=\t=.
2754 % These two glyphs are often not implemented and if their kernel
2755 % defaults are changed commands like \verb=\copyright=
2756 % unnecessarily fail.
2758 % \item[\#0] = full \texttt{TS1}
2761 % And here a summary to go in the transcript file:
2763 \PackageInfo{textcomp}{Sub-encoding information:\MessageBreak
2764 \space\space 5 = only ISO-Adobe without
2765 \string\textcurrency\MessageBreak
2766 \space\space 4 = 5 + \string\texteuro\MessageBreak
2767 \space\space 3 = 4 + \string\textohm\MessageBreak
2768 \space\space 2 = 3 + \noexpand\textestimated+
2769 \string\textcurrency\MessageBreak
2770 \space\space 1 = TS1 - \noexpand\textcircled-
2771 \string\t\MessageBreak
2772 \space\space 0 = TS1 (full)\MessageBreak
2773 Font families with sub-encoding setting implement\MessageBreak
2774 only a restricted character set as indicated.\MessageBreak
2775 Family '?' is the default used for unknown fonts.\MessageBreak
2776 See the documentation for details\@gobble}
2779 % \begin{macro}{\DeclareEncodingSubset}
2780 % An encoding subset to which a font family belongs is declared by
2781 % the command |\DeclareEncodingSubset| that takes the major encoding as the
2782 % first argument (e.g., |TS1|), the family name as the second
2783 % argument (e.g., |cmr|), and the subset encoding id as a third,
2784 % (e.g., |0| for |cmr|).
2786 % The default encoding subset to use when nothing is known about
2787 % the current font family is named |?|.
2789 \def\DeclareEncodingSubset#1#2#3{%
2790 \@ifundefined{#1:#2}%
2791 {\PackageInfo{textcomp}{Setting #2 sub-encoding to #1/#3}}%
2792 {\PackageInfo{textcomp}{Changing #2 sub-encoding to #1/#3}}%
2793 \@namedef{#1:#2}{#3}}
2794 \@onlypreamble\DeclareEncodingSubset
2799 % The options for the package are the following:
2800 % \begin{description}
2802 % for unknown font families enables only symbols that are also
2803 % in the ISO-Adobe character set; without "currency", which is
2804 % often misused for the Euro. Older Type1 fonts from the
2805 % non-TeX world provide only this subset.
2808 % enables the ``safe'' symbols plus the |\texteuro|
2809 % command. Most newer fonts provide this.
2811 % \item[full] enables all |TS1| commands; useful only with fonts
2812 % like EC or CM bright.
2815 % same as ``full'', except that |\textcircled|
2816 % and |\t| are \emph{not} redefined from their defaults to avoid
2817 % that commands like |\copyright| suddenly no longer work.
2820 % ignore all subset encoding definitions stored in the package
2821 % itself or in the configuration file and always use the default
2822 % subset as specified by one of the other options (seldom useful,
2826 % \begin{macro}{\iftc@forced}
2827 % Switch used to implement the \texttt{force} option
2829 \newif\iftc@forced \tc@forcedfalse
2833 % This is implemented by defining the default subset:
2835 \DeclareOption{full}{\DeclareEncodingSubset{TS1}{?}{0}}
2836 \DeclareOption{almostfull}{\DeclareEncodingSubset{TS1}{?}{1}}
2837 \DeclareOption{euro}{\DeclareEncodingSubset{TS1}{?}{4}}
2838 \DeclareOption{safe}{\DeclareEncodingSubset{TS1}{?}{5}}
2840 % The default is ``almostfull'' which means that old documents will
2841 % work except that |\textcircled| and |\t| will use the kernel
2842 % defaults (with the advantage that this also works if the current
2843 % font (as often the case) doesn't implement these glyphs.
2845 % The ``force'' option simply sets the switch to true.
2847 \DeclareOption{force}{\tc@forcedtrue}
2850 % The suggestions to user is to use the ``safe'' option always
2851 % unless that balks in which case they could switch to
2852 % ``almostfull'' but then better check their output manually.
2855 \def\tc@errorwarn{\PackageError}
2856 \DeclareOption{warn}{\gdef\tc@errorwarn#1#2#3{\PackageWarning{#1}{#2}}}
2860 \ExecuteOptions{almostfull}
2861 \ProcessOptions\relax
2864 % \begin{macro}{\CheckEncodingSubset}
2865 % The command |\CheckEncodingSubset| will check if the current font
2866 % family has the right encoding subset to typeset a certain
2867 % command. It takes five arguments as follows:
2868 % first argument is either |\UseTextSymbol|, |\UseTextAccent|
2869 % depending on whether or not the symbol is a text symbol or a text
2872 % The second argument is the encoding from which this symbol should
2875 % The third argument is either a fake accessor command or an error
2876 % message. the code in that argument (if ever executed) receives
2877 % two arguments: |#2| and |#5| of |\CheckEncodingSubset|.
2879 % Argument four is the subset encoding id to test against: if this
2880 % value is higher than the subset id of the current font family
2881 % then we typeset the symbol, i.e., execute |#1{#2}#5| otherwise
2882 % it runs |#3#5|, e.g., to produce an error message or fake the
2885 % Argument five is the symbol or accent command that is being
2888 % For usage examples see definitions below.
2892 % If the ``force'' option was given we always use the default for
2895 \def\CheckEncodingSubset#1#2#3#4#5{%
2897 0\csname #2:?\endcsname
2899 \expandafter\@firstoftwo
2901 \expandafter\@secondoftwo
2907 % In normal circumstances the test is a bit more complicated: first
2908 % check if there exists a macro
2909 % |\|\meta{arg2}|:|\meta{current-family} and if so use that value
2910 % to test against, otherwise use the default to test against.
2913 \def\CheckEncodingSubset#1#2#3#4#5{%
2915 \expandafter\ifx\csname #2:\f@family\endcsname\relax
2916 0\csname #2:?\endcsname
2918 \csname #2:\f@family\endcsname
2921 \expandafter\@firstoftwo
2923 \expandafter\@secondoftwo
2932 % \begin{macro}{tc@subst}
2935 \tc@errorwarn{textcomp}% % should be latex error if general
2936 {Symbol \string#1 not provided by\MessageBreak
2937 font family \f@family\space
2938 in TS1 encoding.\MessageBreak Default family used instead}\@eha
2939 \bgroup\fontfamily\textcompsubstdefault\selectfont#1\egroup
2944 % \begin{macro}{\textcompsubstdefault}
2946 \def\textcompsubstdefault{cmr}
2950 % \begin{macro}{\tc@error}
2951 % |\tc@error| is going to be used in arg |#3| of
2952 % |\CheckEncodingSubset| when a symbol is not available in a
2953 % certain font family. It gets pass the encoding it normally lives
2954 % in (arg one) and the name of the symbol or accent that has a
2958 % error commands take argument:
2959 % #1 symbol to be used
2961 \PackageError{textcomp}% % should be latex error if general
2962 {Accent \string#1 not provided by\MessageBreak
2963 font family \f@family\space
2964 in TS1 encoding}\@eha
2970 % \begin{macro}{\tc@fake@euro}
2971 % |\tc@fake@euro| is an example of a ``fake'' definition to use in arg |#3| of
2972 % |\CheckEncodingSubset| when a symbol is not available in a
2973 % certain font family. Here we produce an Euro symbol by combining
2974 % a ``C'' with a ``=''.
2976 \def\tc@fake@euro#1{%
2978 \PackageInfo{textcomp}{Faking \noexpand#1for font family
2979 \f@family\MessageBreak in TS1 encoding}%
2981 \vfil\hbox to 0.07em{\dimen@\f@size\p@
2983 \fontsize{.7\dimen@}\z@\selectfont=\hss}%
2991 % \begin{macro}{\tc@check@symbol}
2992 % \begin{macro}{\tc@check@accent}
2993 % These are two abbreviations that we use below to check symbols
2994 % and accents in TS1. Only there to save some space, e.g., we can
2997 %\DeclareTextCommandDefault{\textcurrency}{\tc@check@symbol3\textcurrency}
2999 % to ensure that |\textcurrency| is only typeset if the current
3000 % font has a \texttt{TS1} subset id of less than 3. Otherwise
3001 % |\tc@error| is called telling the user that for this font family
3002 % |\textcurreny| is not available.
3004 \def\tc@check@symbol{\CheckEncodingSubset\UseTextSymbol{TS1}\tc@subst}
3005 \def\tc@check@accent{\CheckEncodingSubset\UseTextAccent{TS1}\tc@error}
3010 % We start with the commands that are ``safe'' and which can be
3011 % unconditionally set up, first the accents\ldots
3013 \DeclareTextAccentDefault{\capitalcedilla}{TS1}
3014 \DeclareTextAccentDefault{\capitalogonek}{TS1}
3015 \DeclareTextAccentDefault{\capitalgrave}{TS1}
3016 \DeclareTextAccentDefault{\capitalacute}{TS1}
3017 \DeclareTextAccentDefault{\capitalcircumflex}{TS1}
3018 \DeclareTextAccentDefault{\capitaltilde}{TS1}
3019 \DeclareTextAccentDefault{\capitaldieresis}{TS1}
3020 \DeclareTextAccentDefault{\capitalhungarumlaut}{TS1}
3021 \DeclareTextAccentDefault{\capitalring}{TS1}
3022 \DeclareTextAccentDefault{\capitalcaron}{TS1}
3023 \DeclareTextAccentDefault{\capitalbreve}{TS1}
3024 \DeclareTextAccentDefault{\capitalmacron}{TS1}
3025 \DeclareTextAccentDefault{\capitaldotaccent}{TS1}
3027 % \ldots and then the other glyphs.
3028 % \changes{v1.9p}{1998/06/12}{Renamed \cs{textmacron} pr/2840}
3030 \DeclareTextSymbolDefault{\textcapitalcompwordmark}{TS1}
3031 \DeclareTextSymbolDefault{\textascendercompwordmark}{TS1}
3032 \DeclareTextSymbolDefault{\textquotestraightbase}{TS1}
3033 \DeclareTextSymbolDefault{\textquotestraightdblbase}{TS1}
3034 \DeclareTextSymbolDefault{\texttwelveudash}{TS1}
3035 \DeclareTextSymbolDefault{\textthreequartersemdash}{TS1}
3036 \DeclareTextSymbolDefault{\textdollar}{TS1}
3037 \DeclareTextSymbolDefault{\textquotesingle}{TS1}
3038 \DeclareTextSymbolDefault{\textasteriskcentered}{TS1}
3039 \DeclareTextSymbolDefault{\textfractionsolidus}{TS1}
3040 \DeclareTextSymbolDefault{\textminus}{TS1}
3041 \DeclareTextSymbolDefault{\textlbrackdbl}{TS1}
3042 \DeclareTextSymbolDefault{\textrbrackdbl}{TS1}
3043 \DeclareTextSymbolDefault{\textasciigrave}{TS1}
3044 \DeclareTextSymbolDefault{\texttildelow}{TS1}
3045 \DeclareTextSymbolDefault{\textasciibreve}{TS1}
3046 \DeclareTextSymbolDefault{\textasciicaron}{TS1}
3047 \DeclareTextSymbolDefault{\textgravedbl}{TS1}
3048 \DeclareTextSymbolDefault{\textacutedbl}{TS1}
3049 \DeclareTextSymbolDefault{\textdagger}{TS1}
3050 \DeclareTextSymbolDefault{\textdaggerdbl}{TS1}
3051 \DeclareTextSymbolDefault{\textbardbl}{TS1}
3052 \DeclareTextSymbolDefault{\textperthousand}{TS1}
3053 \DeclareTextSymbolDefault{\textbullet}{TS1}
3054 \DeclareTextSymbolDefault{\textcelsius}{TS1}
3055 \DeclareTextSymbolDefault{\textflorin}{TS1}
3056 \DeclareTextSymbolDefault{\texttrademark}{TS1}
3057 \DeclareTextSymbolDefault{\textcent}{TS1}
3058 \DeclareTextSymbolDefault{\textsterling}{TS1}
3059 \DeclareTextSymbolDefault{\textyen}{TS1}
3060 \DeclareTextSymbolDefault{\textbrokenbar}{TS1}
3061 \DeclareTextSymbolDefault{\textsection}{TS1}
3062 \DeclareTextSymbolDefault{\textasciidieresis}{TS1}
3063 \DeclareTextSymbolDefault{\textcopyright}{TS1}
3064 \DeclareTextSymbolDefault{\textordfeminine}{TS1}
3065 \DeclareTextSymbolDefault{\textlnot}{TS1}
3066 \DeclareTextSymbolDefault{\textregistered}{TS1}
3067 \DeclareTextSymbolDefault{\textasciimacron}{TS1}
3068 \DeclareTextSymbolDefault{\textdegree}{TS1}
3069 \DeclareTextSymbolDefault{\textpm}{TS1}
3070 \DeclareTextSymbolDefault{\texttwosuperior}{TS1}
3071 \DeclareTextSymbolDefault{\textthreesuperior}{TS1}
3072 \DeclareTextSymbolDefault{\textasciiacute}{TS1}
3073 \DeclareTextSymbolDefault{\textmu}{TS1}
3074 \DeclareTextSymbolDefault{\textparagraph}{TS1}
3075 \DeclareTextSymbolDefault{\textperiodcentered}{TS1}
3076 \DeclareTextSymbolDefault{\textonesuperior}{TS1}
3077 \DeclareTextSymbolDefault{\textordmasculine}{TS1}
3078 \DeclareTextSymbolDefault{\textonequarter}{TS1}
3079 \DeclareTextSymbolDefault{\textonehalf}{TS1}
3080 \DeclareTextSymbolDefault{\textthreequarters}{TS1}
3081 \DeclareTextSymbolDefault{\texttimes}{TS1}
3082 \DeclareTextSymbolDefault{\textdiv}{TS1}
3085 % The |\texteuro| is only available for subsets with id 4 or
3086 % less. Otherwise we fake the glyph using |\tc@fake@euro|
3088 \DeclareTextCommandDefault{\texteuro}
3089 {\CheckEncodingSubset\UseTextSymbol{TS1}\tc@fake@euro5\texteuro}
3092 % The |\textohm| is only available for subsets with id 3 or
3093 % less. Otherwise we produce an error.
3095 \DeclareTextCommandDefault{\textohm}{\tc@check@symbol4\textohm}
3097 % The |\textestimated| and |\textcurrency| are only provided for
3098 % fonts with subset encoding with id 2 or less.
3100 \DeclareTextCommandDefault{\textestimated}%
3101 {\tc@check@symbol3\textestimated}
3102 \DeclareTextCommandDefault{\textcurrency}%
3103 {\tc@check@symbol3\textcurrency}
3105 % Nearly all of the remaining glyphs are provided only with fonts
3106 % with id 1 or 0, i.e., are essentially complete.
3108 \DeclareTextCommandDefault{\capitaltie}%
3109 {\tc@check@accent2\capitaltie}
3110 \DeclareTextCommandDefault{\newtie}%
3111 {\tc@check@accent2\newtie}
3112 \DeclareTextCommandDefault{\capitalnewtie}%
3113 {\tc@check@accent2\capitalnewtie}
3114 \DeclareTextCommandDefault{\textleftarrow}%
3115 {\tc@check@symbol2\textleftarrow}
3116 \DeclareTextCommandDefault{\textrightarrow}%
3117 {\tc@check@symbol2\textrightarrow}
3118 \DeclareTextCommandDefault{\textblank}%
3119 {\tc@check@symbol2\textblank}
3120 \DeclareTextCommandDefault{\textdblhyphen}%
3121 {\tc@check@symbol2\textdblhyphen}
3122 \DeclareTextCommandDefault{\textzerooldstyle}%
3123 {\tc@check@symbol2\textzerooldstyle}
3124 \DeclareTextCommandDefault{\textoneoldstyle}%
3125 {\tc@check@symbol2\textoneoldstyle}
3126 \DeclareTextCommandDefault{\texttwooldstyle}%
3127 {\tc@check@symbol2\texttwooldstyle}
3128 \DeclareTextCommandDefault{\textthreeoldstyle}%
3129 {\tc@check@symbol2\textthreeoldstyle}
3130 \DeclareTextCommandDefault{\textfouroldstyle}%
3131 {\tc@check@symbol2\textfouroldstyle}
3132 \DeclareTextCommandDefault{\textfiveoldstyle}%
3133 {\tc@check@symbol2\textfiveoldstyle}
3134 \DeclareTextCommandDefault{\textsixoldstyle}%
3135 {\tc@check@symbol2\textsixoldstyle}
3136 \DeclareTextCommandDefault{\textsevenoldstyle}%
3137 {\tc@check@symbol2\textsevenoldstyle}
3138 \DeclareTextCommandDefault{\texteightoldstyle}%
3139 {\tc@check@symbol2\texteightoldstyle}
3140 \DeclareTextCommandDefault{\textnineoldstyle}%
3141 {\tc@check@symbol2\textnineoldstyle}
3142 \DeclareTextCommandDefault{\textlangle}%
3143 {\tc@check@symbol2\textlangle}
3144 \DeclareTextCommandDefault{\textrangle}%
3145 {\tc@check@symbol2\textrangle}
3146 \DeclareTextCommandDefault{\textmho}%
3147 {\tc@check@symbol2\textmho}
3148 \DeclareTextCommandDefault{\textbigcircle}%
3149 {\tc@check@symbol2\textbigcircle}
3150 \DeclareTextCommandDefault{\textuparrow}%
3151 {\tc@check@symbol2\textuparrow}
3152 \DeclareTextCommandDefault{\textdownarrow}%
3153 {\tc@check@symbol2\textdownarrow}
3154 \DeclareTextCommandDefault{\textborn}%
3155 {\tc@check@symbol2\textborn}
3156 \DeclareTextCommandDefault{\textdivorced}%
3157 {\tc@check@symbol2\textdivorced}
3158 \DeclareTextCommandDefault{\textdied}%
3159 {\tc@check@symbol2\textdied}
3160 \DeclareTextCommandDefault{\textleaf}%
3161 {\tc@check@symbol2\textleaf}
3162 \DeclareTextCommandDefault{\textmarried}%
3163 {\tc@check@symbol2\textmarried}
3164 \DeclareTextCommandDefault{\textmusicalnote}%
3165 {\tc@check@symbol2\textmusicalnote}
3166 \DeclareTextCommandDefault{\textdblhyphenchar}%
3167 {\tc@check@symbol2\textdblhyphenchar}
3168 \DeclareTextCommandDefault{\textdollaroldstyle}%
3169 {\tc@check@symbol2\textdollaroldstyle}
3170 \DeclareTextCommandDefault{\textcentoldstyle}%
3171 {\tc@check@symbol2\textcentoldstyle}
3172 \DeclareTextCommandDefault{\textcolonmonetary}%
3173 {\tc@check@symbol2\textcolonmonetary}
3174 \DeclareTextCommandDefault{\textwon}%
3175 {\tc@check@symbol2\textwon}
3176 \DeclareTextCommandDefault{\textnaira}%
3177 {\tc@check@symbol2\textnaira}
3178 \DeclareTextCommandDefault{\textguarani}%
3179 {\tc@check@symbol2\textguarani}
3180 \DeclareTextCommandDefault{\textpeso}%
3181 {\tc@check@symbol2\textpeso}
3182 \DeclareTextCommandDefault{\textlira}%
3183 {\tc@check@symbol2\textlira}
3184 \DeclareTextCommandDefault{\textrecipe}%
3185 {\tc@check@symbol2\textrecipe}
3186 \DeclareTextCommandDefault{\textinterrobang}%
3187 {\tc@check@symbol2\textinterrobang}
3188 \DeclareTextCommandDefault{\textinterrobangdown}%
3189 {\tc@check@symbol2\textinterrobangdown}
3190 \DeclareTextCommandDefault{\textdong}%
3191 {\tc@check@symbol2\textdong}
3192 \DeclareTextCommandDefault{\textpertenthousand}%
3193 {\tc@check@symbol2\textpertenthousand}
3194 \DeclareTextCommandDefault{\textpilcrow}%
3195 {\tc@check@symbol2\textpilcrow}
3196 \DeclareTextCommandDefault{\textbaht}%
3197 {\tc@check@symbol2\textbaht}
3198 \DeclareTextCommandDefault{\textnumero}%
3199 {\tc@check@symbol2\textnumero}
3200 \DeclareTextCommandDefault{\textdiscount}%
3201 {\tc@check@symbol2\textdiscount}
3202 \DeclareTextCommandDefault{\textopenbullet}%
3203 {\tc@check@symbol2\textopenbullet}
3204 \DeclareTextCommandDefault{\textservicemark}%
3205 {\tc@check@symbol2\textservicemark}
3206 \DeclareTextCommandDefault{\textlquill}%
3207 {\tc@check@symbol2\textlquill}
3208 \DeclareTextCommandDefault{\textrquill}%
3209 {\tc@check@symbol2\textrquill}
3210 \DeclareTextCommandDefault{\textcopyleft}%
3211 {\tc@check@symbol2\textcopyleft}
3212 \DeclareTextCommandDefault{\textcircledP}%
3213 {\tc@check@symbol2\textcircledP}
3214 \DeclareTextCommandDefault{\textreferencemark}%
3215 {\tc@check@symbol2\textreferencemark}
3216 \DeclareTextCommandDefault{\textsurd}%
3217 {\tc@check@symbol2\textsurd}
3219 % The |\textcircled| and |\t| are handled specially, unless the
3220 % current font has a subset id of 0 (i.e. full \texttt{TS1}) we
3221 % pick the symbols up from the the math font encodings, i.e., the
3222 % third argument to |\CheckEncodingSubset| uses |\UseTextAccent| to
3223 % get them from there.
3225 \DeclareTextCommandDefault{\textcircled}
3226 {\CheckEncodingSubset\UseTextAccent{TS1}%
3227 {\UseTextAccent{OMS}}1\textcircled}
3228 \DeclareTextCommandDefault{\t}
3229 {\CheckEncodingSubset\UseTextAccent{TS1}%
3230 {\UseTextAccent{OML}}1\t}
3235 % Finally input the encoding-specific definitions for
3236 % \texttt{TS1} thus making the top-level definitions
3237 % optimised for this encoding (and not for the default
3238 % encoding, see section~\ref{sec:orderofdecls}).
3239 % \changes{v1.9o}{1998/03/20}{Load decls after defaults for speed.}
3243 % Now having the new glyphs available we also want to make sure
3244 % that they are used. For most cases this will automatically happen
3245 % but for some glyphs there are inferior definitions already known
3246 % to \LaTeX{} which will prevent the usage of the \texttt{TS1}
3247 % versions (see section~\ref{sec:removeencspec} above). So we better
3249 % \changes{v1.9o}{1998/03/20}{Added various \cs{UndeclareTextCommand}
3250 % declarations for pr/2783}
3252 \UndeclareTextCommand{\textsterling}{OT1}
3253 \UndeclareTextCommand{\textdollar} {OT1}
3255 % Similar declarations should probably be made for other encodings
3256 % like \texttt{OT4} if they are in use.
3258 %\UndeclareTextCommand{\textsterling}{OT4}
3259 %\UndeclareTextCommand{\textdollar} {OT4}
3261 % From the \texttt{T1} encoding there are two candidates for removal:
3262 % \textperthousand{} and \textpertenthousand{} since these are both
3263 % constructed from \% followed by a tiny
3264 % `{\fontencoding{T1}\selectfont \char 24}'
3265 % rather than being a single glyph. The problem with this
3266 % approach is that in PostScript fonts this small zero is usually not
3267 % available resulting in \%\rule{3pt}{3pt} rather than
3268 % \textperthousand{} while the real glyph (at least for
3269 % |\textperthousand|) is available in the PostScript version of
3270 % \texttt{TS1}. So for the moment we compromise by removing the
3271 % \texttt{T1} declaration for |\textperthousand| but keeping the one
3272 % for |\textpertenthousand|. This will have the effect that with
3273 % Computer Modern fonts everything will come out (although
3274 % \textperthousand{} and \textpertenthousand{} are not taken from the
3275 % same physical font) and with PostScript fonts \textperthousand{}
3276 % will come out correctly while \textpertenthousand{} will most
3277 % likely look like \%\rule{6pt}{3pt} --- which is probably an
3278 % improvement over just getting a single `\rule{3pt}{3pt}' to
3279 % indicate a completely missing glyph, which would happen if we
3280 % also `undeclared' |\textpertenthousand|.
3282 \UndeclareTextCommand{\textperthousand}{T1}
3283 %\UndeclareTextCommand{\textpertenthousand}{T1}
3287 % \subsubsection{Supporting oldstyle digits}
3290 \DeclareRobustCommand\oldstylenums[1]{%
3293 \mathgroup\symletters #1%
3295 \CheckEncodingSubset\@use@text@encoding{TS1}%
3296 {\PackageWarning{textcomp}%
3297 {Oldstyle digits unavailable for
3298 family \f@family.\MessageBreak
3299 Lining digits used instead}}%
3306 % \subsubsection{Subset encoding defaults}
3308 % For many font families commonly used in the \TeX{} world we
3309 % provide the subset encoding data here. Users can add additional
3310 % font families in the file \texttt{textcomp.cfg} if they own other
3313 % However, if the option ``forced'' was given then all subset
3314 % encoding specifications are ignored, so there is no point in
3315 % setting any of them up:
3320 % Computer modern based fonts (e.g., CM, CM-Bright, Concrete):
3322 \DeclareEncodingSubset{TS1}{cmr} {0}
3323 \DeclareEncodingSubset{TS1}{cmss} {0}
3324 \DeclareEncodingSubset{TS1}{cmtt} {0}
3325 \DeclareEncodingSubset{TS1}{cmvtt} {0}
3326 \DeclareEncodingSubset{TS1}{cmbr} {0}
3327 \DeclareEncodingSubset{TS1}{cmtl} {0}
3328 \DeclareEncodingSubset{TS1}{ccr} {0}
3333 \DeclareEncodingSubset{TS1}{ptm} {4}
3334 \DeclareEncodingSubset{TS1}{pcr} {4}
3335 \DeclareEncodingSubset{TS1}{phv} {4}
3336 \DeclareEncodingSubset{TS1}{ppl} {3}
3337 \DeclareEncodingSubset{TS1}{pag} {4}
3338 \DeclareEncodingSubset{TS1}{pbk} {4}
3339 \DeclareEncodingSubset{TS1}{pnc} {4}
3340 \DeclareEncodingSubset{TS1}{pzc} {4}
3341 \DeclareEncodingSubset{TS1}{bch} {4}
3342 \DeclareEncodingSubset{TS1}{put} {5}
3345 % Other CTAN fonts (probably not complete):
3347 \DeclareEncodingSubset{TS1}{uag} {5}
3348 \DeclareEncodingSubset{TS1}{ugq} {5}
3349 \DeclareEncodingSubset{TS1}{ul8} {4}
3350 \DeclareEncodingSubset{TS1}{ul9} {4} % (LuxiSans, one day)
3351 \DeclareEncodingSubset{TS1}{augie} {5}
3352 \DeclareEncodingSubset{TS1}{dayrom} {3}
3353 \DeclareEncodingSubset{TS1}{dayroms} {3}
3354 \DeclareEncodingSubset{TS1}{pxr} {0}
3355 \DeclareEncodingSubset{TS1}{pxss} {0}
3356 \DeclareEncodingSubset{TS1}{pxtt} {0}
3357 \DeclareEncodingSubset{TS1}{txr} {0}
3358 \DeclareEncodingSubset{TS1}{txss} {0}
3359 \DeclareEncodingSubset{TS1}{txtt} {0}
3362 % Latin Modern and TeX Gyre:
3363 % \changes{v1.99k}{2009/10/28}{Added Latin Modern and TeX Gyre subsets}
3364 % \changes{v1.99l}{2009/11/04}{Added more Latin Modern and TeX Gyre subsets}
3365 % \changes{v1.99m}{2015/02/16}{Added lmtt (Heiko Oberdiek) latex/4415}
3367 \DeclareEncodingSubset{TS1}{lmr} {0}
3368 \DeclareEncodingSubset{TS1}{lmdh} {0}
3369 \DeclareEncodingSubset{TS1}{lmss} {0}
3370 \DeclareEncodingSubset{TS1}{lmssq} {0}
3371 \DeclareEncodingSubset{TS1}{lmvtt} {0}
3372 \DeclareEncodingSubset{TS1}{lmtt} {0}
3376 \DeclareEncodingSubset{TS1}{qhv} {0}
3377 \DeclareEncodingSubset{TS1}{qag} {0}
3378 \DeclareEncodingSubset{TS1}{qbk} {0}
3379 \DeclareEncodingSubset{TS1}{qcr} {0}
3380 \DeclareEncodingSubset{TS1}{qcs} {0}
3381 \DeclareEncodingSubset{TS1}{qpl} {0}
3382 \DeclareEncodingSubset{TS1}{qtm} {0}
3383 \DeclareEncodingSubset{TS1}{qzc} {0}
3384 \DeclareEncodingSubset{TS1}{qhvc} {0}
3387 % Fourier-GUTenberg:
3389 \DeclareEncodingSubset{TS1}{futs} {4}
3390 \DeclareEncodingSubset{TS1}{futx} {4}
3391 \DeclareEncodingSubset{TS1}{futj} {4}
3394 % Y\&Y's Lucida Bright
3396 \DeclareEncodingSubset{TS1}{hlh} {3}
3397 \DeclareEncodingSubset{TS1}{hls} {3}
3398 \DeclareEncodingSubset{TS1}{hlst} {3}
3400 % The remaining settings for Lucida are conservative: the following
3401 % fonts contain the |\textohm| character but not the |\texteuro|,
3402 % i.e., belong to neither subset~4 nor subset~3. If you want to
3403 % use the |\textohm| with these fonts copy these definition to
3404 % \texttt{textcomp.cfg} and change the subset to~3. However in that
3405 % case make sure that you do not use the |\texteuro|.
3407 \DeclareEncodingSubset{TS1}{hlct} {5}
3408 \DeclareEncodingSubset{TS1}{hlx} {5}
3409 \DeclareEncodingSubset{TS1}{hlce} {5}
3410 \DeclareEncodingSubset{TS1}{hlcn} {5}
3411 \DeclareEncodingSubset{TS1}{hlcw} {5}
3412 \DeclareEncodingSubset{TS1}{hlcf} {5}
3415 % Other commercial families\ldots
3417 \DeclareEncodingSubset{TS1}{pplx} {3}
3418 \DeclareEncodingSubset{TS1}{pplj} {3}
3419 \DeclareEncodingSubset{TS1}{ptmx} {4}
3420 \DeclareEncodingSubset{TS1}{ptmj} {4}
3423 % If the file \texttt{textcomp.cfg} exists it will be loaded at
3424 % this point. This allows to define further subset encodings for
3425 % font families not covered by default.
3428 \InputIfFileExists{textcomp.cfg}
3429 {\PackageInfo{textcomp}{Local configuration file used}}{}