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 %<TU>\ProvidesFile{tuenc.def}
39 %<package>\ProvidesPackage{fontenc}
40 %<TS1sty>\ProvidesPackage{textcomp}
41 %<OT1|T1|OMS|OML|OT4|TU|package|TS1sty> [2017/02/24 v2.0h
42 %<OT1|T1|OMS|OML|OT4|TS1|TU> Standard LaTeX file]
43 %<package|TS1sty> Standard LaTeX package]
47 \ProvidesFile{ltoutenc.dtx}
48 [2017/02/24 v2.0h LaTeX Kernel (font encodings)]
50 \documentclass{ltxdoc}
51 \GetFileInfo{ltoutenc.dtx}
63 \MaintainedByLaTeXTeam{latex}
72 % \changes{v1.99e}{2004/02/13}{Documentation fixes: typos}
73 % \changes{v1.9k}{1998/01/12}{Added \cs{ProvidesPackage}
75 % \changes{v1.9i}{1997/12/19}{Documentation corrections.}
76 % \changes{v1.9h}{1997/12/17}{Documentation changes and additions.}
77 % \changes{v1.9h}{1997/12/17}{Added textcomp.sty.}
78 % \changes{v1.9f}{1997/08/29}{Added OT4 encoding,
79 % provided by Marcin Woli\'nski.}
80 % \changes{v1.7r}{1995/11/28}{doc fixes}
81 % \changes{v1.7h}{1995/04/21}{Added \cs{null} \cs{k} latex/1274}
82 % \changes{v1.7f}{1994/12/14}{Added braces to \cs{copyright} so it
83 % works unbraced in subscripts.}
84 % \changes{v1.7f}{1994/12/14}{Added check for math mode in
86 % \changes{v1.7f}{1994/12/14}{Commented out \cs{textasciicircum},
87 % \cs{textasciitilde}, \cs{textbackslash}, \cs{textbar},
88 % \cs{textgreater}, \cs{texthyphenchar}, \cs{texthyphen} and
89 % \cs{textless} to save memory.}
90 % \changes{v1.7e}{1994/12/10}{Added documentation for the OML encoding.}
91 % \changes{v1.7e}{1994/12/10}{Replaced width with \cs{@width} and
92 % ditto height in vrules.}
93 % \changes{v1.7d}{1994/12/08}{Added \cs{null} and \cs{sh@ft} to \cs{b}
95 % \changes{v1.7c}{1994/12/05}{Added braces to \cs{textcircled}.}
96 % \changes{v1.7b}{1994/12/02}{Fixed a bug with \cs{a}.}
97 % \changes{v1.7a}{1994/11/30}{Added new code for encoding-specific
98 % commands. These now expand in the mouth, which means that
99 % ligaturing and kerning can happen.}
100 % \changes{v1.6i}{1994/11/22}{Fixed empty accents. Again.}
101 % \changes{v1.6i}{1994/11/22}{Corrected \cs{dots} so that there's no
102 % kerning in monowidth fonts.}
103 % \changes{v1.6i}{1994/11/22}{Corrected typo with
104 % \cs{mathunderscore}.}
105 % \changes{v1.6h}{1994/11/17}{(DPC) \cs{@tempa} to \cs{reserved@a}}
106 % \changes{v1.6d}{1994/11/02}{Wrapped lines longer than 70 characters.}
107 % \changes{v1.6d}{1994/10/30}{Added math commands.}
108 % \changes{v1.6d}{1994/10/30}{Added OML encoding.}
109 % \changes{v1.6d}{1994/10/30}{Added \cs{textcircled}.}
110 % \changes{v1.6d}{1994/10/30}{Added \cs{DeclareTextCompositeCommand}.}
111 % \changes{v1.6c}{1994/10/29}{Renamed \cs{P}, \cs{S}, \cs{dag} and
112 % \cs{ddag} to \cs{textparagraph}, \cs{textsection},
113 % \cs{textdagger} and \cs{textdaggerdbl}.}
114 % \changes{v1.6b}{1994/10/27}{Removed the enc.def files}
115 % \changes{v1.6a}{1994/10/25}{Added \cs{ProvideTextCommand},
116 % \cs{UseTextSymbol},
117 % \cs{UseTextAccent},
118 % \cs{DeclareTextSymbolDefault},
119 % \cs{DeclareTextAccentDefault},
120 % \cs{DeclareTextCommandDefault}, and
121 % \cs{ProvideTextCommandDefault}.}
122 % \changes{v1.5m}{1994/10/18}{Added new definitions of \cs{patterns}
123 % and \cs{hyphenation}.}
124 % \changes{v1.5l}{1994/10/07}{Moved the ogonek accent.}
125 % \changes{v1.5k}{1994/05/18}{Removed braces from \cs{pounds} and
127 % \changes{v1.5k}{1994/05/18}{Replaced \cs{defaultencoding} with
128 % \cs{encodingdefault}.}
129 % \changes{v1.5k}{1994/05/18}{Made dotted-i produce `i'.}
130 % \changes{v1.5j}{1994/05/17}{Added braces to \cs{pounds} so it works
132 % \changes{v1.5i}{1994/05/16}{Fixed a bug with \cs{d}.}
133 % \changes{v1.5h}{1994/05/16}{Added \cs{NG}, \cs{ng}, \cs{TH},
134 % \cs{th}, \cs{DH}, \cs{dh}, \cs{DJ} and \cs{dj}.}
135 % \changes{v1.5h}{1994/05/16}{Added \cs{r} (ring accent) and \cs{k}
137 % \changes{v1.5h}{1994/05/16}{Removed \cs{P} from the OT1 definitions
139 % \changes{v1.5h}{1994/05/16}{Fixed a bug with \cs{pounds}.}
140 % \changes{v1.5g}{1994/05/16}{Made fontenc.sty use the new mixed-case
142 % \changes{v1.5f}{1994/05/16}{Revert code so that the encoding
143 % given is used in \cs{DeclareTextCommand} (FMi)}
144 % \changes{v1.5f}{1994/05/16}{enc files now have uc encoding name
146 % \changes{v1.5e}{1994/05/14}{Replaced \cs{ENC@cmd} by \cs{ENC-cmd}.}
147 % \changes{v1.5d}{1994/05/14}{Rewrote \cs{DeclareTextCommand} to define
148 % its argument to use the current encoding by default, rather than
149 % the encoding provided to \cs{DeclareTextCommand}.}
150 % \changes{v1.5d}{1994/05/14}{Tidied up the documentation.}
151 % \changes{v1.5c}{1994/05/14}{Added the fontenc package.}
152 % \changes{v1.5c}{1994/05/14}{Fixed a bug which caused an infinite loop
153 % if \cs{f@encoding} was incorrectly set.}
154 % \changes{v1.5c}{1994/05/14}{Moved fontsmpl to its own dtx file.}
155 % \changes{v1.5b}{1994/05/13}{Added \cmd\{, \cmd\} and \cmd\$.}
156 % \changes{v1.5b}{1994/05/13}
157 % {Replaces \cs{space} by `~' in \cs{csname}.}
158 % \changes{v1.5b}{1994/05/13}{Renamed \cs{DeclareProtectedCommand} to
159 % \cs{DeclareRobustCommand}.}
160 % \changes{v1.5a}{1994/05/11}{Renamed the commands again. Made the
161 % encoding part of the command syntax. Added the
162 % \cs{DeclareTextCommand} interface. Used
163 % \cs{DeclareProtectedCommand}.}
164 % \changes{v1.4a}{1994/05/01}{Renamed the commands, removed the
165 % \cs{EncodingSpecific} command. Turned all slots into decimal.
167 % \changes{v1.4a}{1994/05/01}{Removed Rokicki's encoding.}
168 % \changes{v1.3d}{1993/12/18}{Some T1 stuff had drifted into the OT1
170 % \changes{v1.3c}{1993/12/18}{A new syntax, separating
171 % accent-definitions from encoding-specific definitions, and
172 % allowing encoding-specific \cs{chardef}, \cs{let}, etc.}
173 % \changes{v1.3c}{1993/12/18}{Rewrote for the new syntax of
174 % \cs{EncodingSpecific}.}
175 % \changes{v1.3b}{1993/12/18}{Corrected typos.}
176 % \changes{v1.3b}{1993/12/18}{Replaced the missing last argument to
177 % \cs{DeclareFontEncoding}.}
178 % \changes{v1.3a}{1993/12/18}{Replaced OT3 by XXX}
179 % \changes{v1.3}{1993/12/17}{Added \cs{EncodingSpecificAccent},
180 % \cs{EncodingSpecificAccentedLetter} and
181 % \cs{EncodingSpecificCommand}.}
182 % \changes{v1.3}{1993/12/17}{Made Rokicki's encoding a proper encoding
183 % scheme rather than a variant of OT1.}
184 % \changes{v1.2b}{1993/12/13}{Corrected file name in driver code.}
185 % \changes{v1.2a}{1993/12/11}{Corrected for t1enc, math.}
186 % \changes{v1.2}{1993/12/10}{Added source code for t1enc.sty.}
187 % \changes{v1.1}{1993/12/07}{Made all character numbers decimal.}
188 % \changes{v1.1}{1993/12/07}{Removed a lot of equal signs and the
190 % \changes{v1.99m}{2015/02/21}
191 % {Removed autoload code}
194 % \section{Font encodings}
196 % This section of the kernel contains commands for declaring
198 % commands, such as accents. It also contains the code for some of
199 % the encoding files, including |omlenc.def|,
200 % |omsenc.def|, |t1enc.def| and |ot1enc.def| files, which define
202 % |OMS|, |T1| and |OT1| encodings, and the |fontenc| package
203 % for selecting encodings.
205 % The |fontenc| package has options for encodings, of which the
206 % last option is the default encoding. For example, to use the
207 % |OT2|, |OT3| and |T1| encodings, with |T1| as the default, you
210 % \usepackage[OT2,OT3,T1]{fontenc}
212 % The standard kernel set-up loads font encoding files and selects
213 % an encoding as follows.
215 % \input {omlenc.def}
217 % \input {ot1enc.def}
218 % \input {omsenc.def}
221 % Note that the files in the standard |inputenc| package depend on
222 % this behaviour of the kernel.
224 % The syntax for declaring encoding-specific commands is:
226 % |\DeclareTextCommand{|^^A
227 % \meta{command}|}{|^^A
228 % \meta{encoding}|}|\\\hspace*{\fill}|[|^^A
229 % \meta{number}|][|^^A
230 % \meta{default}|]{|^^A
233 % This command is like |\newcommand|, except that it defines a
234 % command which is specific to one encoding. The resulting command
235 % is always robust, even if its definition is fragile. For example,
236 % the definition of |\l| in the |OT1| encoding is:
238 % \DeclareTextCommand{\l}{OT1}{{\@xxxii l}}
240 % |\DeclareTextCommand| takes the same optional arguments as
243 % |\ProvideTextCommand{|^^A
244 % \meta{command}|}{|^^A
245 % \meta{encoding}|}|\\\hspace*{\fill}|[|^^A
246 % \meta{number}|][|^^A
247 % \meta{default}|]{|^^A
250 % This acts like |\DeclareTextCommand|, but does nothing if the
251 % command is already defined.
253 % |\DeclareTextSymbol{|^^A
254 % \meta{command}|}{|^^A
255 % \meta{encoding}|}{|^^A
258 % This command defines a text symbol, with a particular slot in that
259 % encoding. The commands:
260 % \changes{v1.9h}{1997/12/17}{Example corrected, braces removed.}
262 % \DeclareTextSymbol{\ss}{OT1}{25}
263 % \DeclareTextCommand{\ss}{OT1}{\char25 }
265 % have the same effect, but the |\DeclareTextSymbol| is faster.
267 % |\DeclareTextAccent{|^^A
268 % \meta{command}|}{|^^A
269 % \meta{encoding}|}{|^^A
272 % \changes{v1.8e}{1996/11/23}{Corrected description}
273 % \changes{v1.9k}{1997/12/31}{Further correction}
274 % This command declares a text accent. The commands:
276 % \DeclareTextAccent{\"}{OT1}{127}
277 % \DeclareTextCommand{\"}{OT1}{\add@accent {127}}
279 % have the same effect.
280 % \changes{v1.8c}{1996/10/27}
281 % {Corrected syntax descriptions}
283 % |\DeclareTextComposite{|^^A
284 % \meta{command}|}|\\\hspace*{\fill}|{|^^A
285 % \meta{encoding}|}{|^^A
286 % \meta{argument}|}{|^^A
289 % This command declares a composite letter, for example in the |T1|
290 % encoding |\'{a}| is slot 225, which is declared by:
292 % \DeclareTextComposite{\'}{T1}{a}{225}
294 % \changes{v1.8e}{1996/11/23}
295 % {Corrected description}
296 % The \emph{command} will normally have been declared with
297 % |\DeclareTextAccent|, or as a one-argument |\DeclareTextCommand|.
299 % |\DeclareTextComposite| is the most common example of using
300 % the more general declaration
301 % |\DeclareTextCompositeCommand|, which can define a composite
302 % to be an arbitrary piece of text.
304 % |\DeclareTextCompositeCommand{|^^A
305 % \meta{command}|}|\\\hspace*{\fill}|{|^^A
306 % \meta{encoding}|}{|^^A
307 % \meta{argument}|}{|^^A
310 % For example, in the OT1 encoding \r A has a hand-crafted
311 % definition this is declared as follows
313 % \DeclareTextCompositeCommand{\r}{OT1}{A}
314 % {\leavevmode\setbox\z@\hbox{!}\dimen@\ht\z@\advance\dimen@-1ex%
315 % \rlap{\raise.67\dimen@\hbox{\char23}}A}
317 % \changes{v1.8e}{1996/11/23}
318 % {Corrected description}
319 % The \emph{command} will normally have been declared with
320 % |\DeclareTextAccent|, or as a one-argument |\DeclareTextCommand|.
322 % The commands defined using the above declarations can be used in
324 % Normally they are used by just calling the command in the
325 % appropriate encoding, for example |\ss|. However, sometimes you
326 % may wish to use a command in an encoding where it is not defined.
327 % If the command has no arguments, then you can use it in another
328 % encoding by calling |\UseTextSymbol|:
330 % |\UseTextSymbol{|^^A
331 % \meta{encoding}|}{|^^A
335 % \task{?}{Document the problems of these commands, see pr/3160}
336 % \changes{v1.9e}{1997/08/05}{Corrected order of arguments in
337 % \cs{UseTextSymbol} example.}
338 % For example, |\UseTextSymbol{OT1}{\ss}| has the same effect as:
340 % {\fontencoding{OT1}\selectfont\ss}
342 % If the command has one argument then you can use it in another
343 % encoding by calling
346 % |\UseTextAccent{|^^A
347 % \meta{encoding}|}{|^^A
348 % \meta{command}|}{|^^A
351 % For example, if the current encoding is |OT2| then
352 % |\UseTextAccent{OT1}{\'}{a}| has the same effect as:
354 % {\fontencoding{OT1}\selectfont\'{\fontencoding{OT2}\selectfont a}}
356 % \changes{v1.8e}{1996/11/23}
357 % {Extended description}
358 % You can also declare a default definition for a text command, which
359 % will be used if the current encoding has no appropriate definition.
360 % Such use will also set the definition for this command in the
361 % current encoding to equal this default definition; this makes
362 % subsequent uses of the command much faster.
364 % |\DeclareTextCommandDefault{|^^A
365 % \meta{command}|}{|^^A
366 % \meta{definition}|}|
368 % For example, the default definition of the command
369 % |\textonequarter| (which produces the fraction $\frac14$) could be
370 % built using math mode:
372 % \DeclareTextCommandDefault{\textonequarter}{\ensuremath {\frac14}}
374 % There is a matching |\Provide| command which will not override an
375 % existing default definition:
377 % |\ProvideTextCommandDefault{|^^A
378 % \meta{command}|}{|^^A
379 % \meta{definition}|}|
381 % The most common use for these commands is to use symbols from
382 % other encodings, so there are some optimizations provided:
384 % |\DeclareTextSymbolDefault{|^^A
385 % \meta{command}|}|^^A
386 % \meta{encoding}|}|\\
387 % |\DeclareTextAccentDefault{|^^A
388 % \meta{command}|}|^^A
393 % |\DeclareTextCommandDefault{|^^A
394 % \meta{command}|}|\\\hspace*{\fill}^^A
395 % |{\UseTextSymbol{|^^A
396 % \meta{encoding}|}{|\meta{command}|}}| \\
397 % |\DeclareTextCommandDefault[1]{|^^A
398 % \meta{command}|}|\\\hspace*{\fill}^^A
399 % |{\UseTextAccent{|^^A
400 % \meta{encoding}|}{|\meta{command}|}{#1}}|
402 % For example, to make |OT1| the default encoding for |\ss| and
405 % \DeclareTextSymbolDefault{\ss}{OT1}
406 % \DeclareTextAccentDefault{\'}{OT1}
408 % Note that you can use these commands on any zero- or one-argument
409 % commands declared with |\DeclareText*| or |\ProvideText*|, not
410 % just those defined using |\DeclareTextSymbol| or
411 % |\DeclareTextAccent|.
413 % \subsection{Removing encoding-specific commands}
414 % \label{sec:removeencspec}
416 % \changes{v1.9o}{1998/03/20}{Documentation added for pr/2783}
418 % In some cases encoding definitions are given to provide some limited
419 % support since nothing better is available, for example, the definition
420 % for |\textdollar| in \texttt{OT1} is a hack since \$ and \pounds{}
421 % actually share the same slot in this encoding. Thus if such a glyph
422 % becomes available in a different encoding (e.g., \texttt{TS1}) one
423 % would like to get rid of the flacky one and make the default
424 % definition point to the new encoding. In such a case defining
426 % \DeclareTextSymbol{\textdollar}{TS1}{36}
427 % \DeclareTextSymbolDefault{\textdollar}{TS1}
429 % is not enough since if typesetting in \texttt{OT1} \LaTeX{} will
430 % still find the encoding specific-definition for \texttt{OT1} and
431 % therefore ignore the new default.
432 % Therefore to ensure that in this case the \texttt{TS1} version is
433 % used we have to remove the \texttt{OT1} declaration:
435 % \UndeclareTextCommand{\textdollar}{OT1}
438 % Since the \$ sign is a proper glyph in the \texttt{T1} encoding there
439 % is no point removing its definition and forcing \LaTeX{} to pick up
440 % the \texttt{TS1} version if typesetting in this encoding.
441 % However, assume you want to use the variant dollar sign,
442 % i.e., \textdollaroldstyle{}
443 % for your dollars. In that case you have to get rid of the \texttt{T1}
444 % declaration as well, e.g., the following would do that for you:
446 % \UndeclareTextCommand{\textdollar}{OT1}
447 % \UndeclareTextCommand{\textdollar} {T1}
448 % \DeclareTextCommandDefault{\textdollar}
449 % {\UseTextSymbol{TS1}\textdollaroldstyle}
452 % \subsection{The order of declarations}\label{sec:orderofdecls}
454 % \changes{v1.9o}{1998/03/20}{Documentation added about order of decls}
456 % If an encoding-specific command is defined for more than one encoding,
457 % then it will execute fastest in the encoding in which it was defined
458 % last since its top-level definition will be set up to execute in that
459 % encoding without any overhead.
461 % For this reason the file \texttt{fonttext.ltx} currently first loads
462 % the definitions for the \texttt{T1} encoding and then those for the
463 % \texttt{OT1} encoding so that typesetting in \texttt{OT1} is optimized
464 % since that is (still) the default. However, when \texttt{T1} is
465 % explicitly requested (via |\usepackage[T1]{fontenc}|) the
466 % top-level definitions are automatically changed to favour
467 % \texttt{T1} since its declarations are reloaded in the process.
469 % For the same reason default declarations should never come last since
470 % they are implemented as a special encoding themselves (with the
472 % Specifying them last would simply mean to make those encoding-specific
473 % commands equally inefficient in all encodings. Therefore the
474 % \texttt{textcomp} package, for example, first sets up all defaults
475 % to point to \texttt{TS1} and then declares the commands in the
476 % \texttt{TS1} encoding.
481 % \subsection{Docstrip modules}
483 % This |.dtx| file is be used to generate several related files
484 % containing font encoding definitions. The mutually exclusive
485 % docstrip options are listed here.
487 % \begin{tabular}{lp{10cm}}
488 % |T1| & generates |t1enc.def| for the Cork encoding. \\
489 % |TS1| & generates |ts1enc.def| for the Text Companion
491 % |TS1sty| & generates |textcomp.sty|, package that sets up use
492 % of the Text Companion encoding. \\
493 % |OT1| & generates |ot1enc.def| for Knuth's CM encoding. \\
494 % |OMS| & generates |omsenc.def| for Knuth's
495 % math symbol encoding. \\
496 % |OML| & generates |omlenc.def| for Knuth's
497 % math letters encoding. \\
498 % |OT4| & generates |ot4enc.def| for the Polish extension to
499 % the OT1 encoding, created by B.~Jackowski and
500 % M.~Ry\'cko for use with the Polish version of
501 % Computer Modern and Computer Concrete.\\
502 % |TU| & generates |tuenc.def| for Unicode font
504 % |package| & generates |fontenc.sty| for
505 % selecting encodings. \\
506 % |2ekernel| & for the kernel commands.\\
509 % \changes{1.0d}{1993/07/17}{changed \cs{catcoding} @}
510 % \changes{1.0f}{1993/08/13}{Protected against active @ sign.}
511 % \changes{1.0g}{1993/08/16}{Needs space after \cs{string}}
512 % \changes{1.1}{1993/12/07}{Protected all special characters with
514 % \changes{1.3}{1993/12/17}{Removed the catcode hackery, since the file
515 % is only read as a package in the preamble, and removed all the
516 % messages on the screen, which just confuse users. Replaced them
517 % by the appropriate \cs{ProvidesPackage} commands. Added XXXenc.}
518 % \changes{1.3b}{1993/12/18}
519 % {Fixed typos with \cs{ProvidesPackage} lines.
520 % Added the \cs{NeedsTeXFormat} line. Added the last argument to
521 % \cs{DeclareEncoding}. Moved the use of the encodings to after their
523 % \changes{1.4a}{1994/04/29}{Removed Rokicki's OT1 variant encoding.
524 % Moved the driver to the top.}
525 % \changes{1.5a}{1994/05/11}{Made T1 and OT1 generate packages rather
526 % than def files. Renamed the `package' module to `teststy'.}
527 % \changes{1.5d}{1994/05/14}{Moved the driver to the top.}
529 % \subsection{Definitions for the kernel}
531 % \subsubsection{Declaration commands}
533 % \changes{1.3}{1993/12/17}{Added this section}
534 % \changes{1.3c}{1993/12/18}{Split \cs{EncodingSpecificAccent} up into
535 % \cs{EncodingSpecific} and \cs{DeclareAccent}.}
536 % \changes{1.4a}{1994/04/29}{Removed \cs{EncodingSpecific}. Renamed
537 % all the commands. Added \cs{DeclareTextGlyph} and
538 % \cs{UndeclareTextCommand}.}
539 % \changes{v1.5a}{1994/05/11}{Reimplemented \cs{DeclareTextCommand}
540 % using \cs{@changed@cmd} and \cs{DeclareProtectedCommand}.}
541 % \changes{v1.5c}{1994/05/14}{Fixed a bug which caused an infinite loop
542 % if \cs{f@encoding} was incorrectly set.}
543 % \changes{v1.5d}{1994/05/14}{Rewrote \cs{DeclareTextCommand} to define
544 % its argument to use the current encoding by default, rather than
545 % the encoding provided to \cs{DeclareTextCommand}.}
546 % \changes{v1.6a}{1994/10/25}{Added the \cs{Provide} commands,
547 % and the default definitions.}
549 % This section contains definitions for commands such as accents which
550 % depend on the current encoding. These commands will usually be kept
551 % in |.def| files, for example |ot1enc.def| contains the definitions
552 % for the |OT1| encoding.
555 \message{font encodings,}
558 % \changes{v1.5d}{1994/10/27}{Rewrote \cs{DeclareTextSymbol} to define
559 % its argument to use the current encoding by default, to fit with
560 % \cs{DeclareTextCommand}.}
562 % \changes{v1.7a}{1994/11/30}{Redefined \cs{@changed@cmd} to expand in
564 % \changes{v1.7a}{1994/11/30}{Removed \cs{@changed@x@mouth} since
565 % \cs{@changed@x} now expands in the mouth.}
567 % \changes{v1.7r}{1995/11/28}{Renamed \cs{@changed@x@err} to
568 % \cs{TextSymbolUnavailable}.}
569 % \changes{v1.7r}{1995/11/28}{Added math mode checks to text commands.}
570 % Far too many macros in one block here!
571 % \begin{macro}{\DeclareTextCommand}
572 % \begin{macro}{\ProvideTextCommand}
573 % \begin{macro}{\DeclareTextSymbol}
574 % \begin{macro}{\@dec@text@cmd}
575 % \begin{macro}{\chardef@text@cmd}
576 % \begin{macro}{\@changed@cmd}
577 % \begin{macro}{\@changed@x}
578 % \begin{macro}{\TextSymbolUnavailable}
579 % \begin{macro}{\@inmathwarn}
582 % \DeclareTextCommand{\foo}{T1}...
584 % then |\foo| is defined to be |\T1-cmd \foo \T1\foo|,
585 % where |\T1\foo| is \emph{one} control sequence, not two!
586 % We then call |\newcommand| to define |\T1\foo|.
588 \def\DeclareTextCommand{%
589 \@dec@text@cmd\newcommand}
593 \def\ProvideTextCommand{%
594 \@dec@text@cmd\providecommand}
598 \def\@dec@text@cmd#1#2#3{%
599 \expandafter\def\expandafter#2%
601 \csname#3-cmd\expandafter\endcsname
603 \csname#3\string#2\endcsname
605 \let\@ifdefinable\@rc@ifdefinable
606 \expandafter#1\csname#3\string#2\endcsname}
608 % \changes{v1.99d}{2004/02/06}{New command added to fix
609 % severe bug: pr/3563}
610 % This command was introduced to fix a major bug
611 % in |\@dec@text@cmd| without changing that command itself.
612 % This was thought to be necessary because it is defined
613 % in more than one package. (Perhaps the more serious bug is to put
614 % complex low-level commands like this in packages?)
616 % The problem it solves is that whereas both |\newcommand| and
617 % |\providecommand| (used just above) both handle the
618 % resetting of |\@ifdefinable| (following its disabling in
619 % |\@dec@text@cmd|), the primitive |\chardef| neither needs the
620 % disabling, nor does the resetting.
623 \def\chardef@text@cmd{%
624 \let\@ifdefinable\@@ifdefinable
627 \def\DeclareTextSymbol#1#2#3{%
628 \@dec@text@cmd\chardef@text@cmd#1{#2}#3\relax
632 % The declarations are only available before |\begin{document}|.
633 % \changes{v1.7h}{1995/05/21}{Added several \cs{@onlypreamble}}
634 % \changes{v1.7k}{1995/06/05}{Removed \cs{protected@cmd} and replaced
635 % with explicit \cs{noexpand}.}
637 \@onlypreamble\DeclareTextCommand
638 \@onlypreamble\DeclareTextSymbol
640 % The sneaky bit in all this is what |\T1-cmd \foo \T1\foo| does.
641 % There are five possibilities, depending on the current values of
642 % |\protect|, |\cf@encoding| and |\ifmmode|:
644 % \item If |\protect| is |\@typeset@protect| and |\cf@encoding| is
645 % |T1|, then we execute |\T1\foo|. This should be the normal
646 % behaviour, and is optimized for speed.
647 % \item If |\protect| is |\@typeset@protect|, |\cf@encoding| is
648 % (say) |OT1|, and |\OT1\foo| is defined, then we execute
650 % \item If |\protect| is |\@typeset@protect|, |\cf@encoding| is
651 % (say) |OT1|, we're in text mode,
652 % and |\OT1\foo| is undefined, then we define
653 % |\OT1\foo| to be the default value of |\foo|, and execute
655 % \item If |\protect| is |\@typeset@protect|, |\cf@encoding| is
656 % (say) |OT1|, we're in math mode,
657 % and |\OT1\foo| is undefined, then we execute the default value
658 % of |\foo|. (This is necessary so that things like
659 % |$X_\copyright$| work properly.)
660 % \item If |\protect| is not |\@typeset@protect| then we execute
661 % |\noexpand\foo|. For example, if we are writing to a file,
662 % then this results in |\foo| being written. If we are in a
663 % |\mark|, then |\foo| will be put in the mark---since |\foo| is
664 % robust, it will then survive all the things which may happen
665 % to it whilst it's a |\mark|.
667 % So after all that, we will either execute the appropriate
668 % definition of |\foo| for the current encoding, or we will execute
671 % The default value of |\foo| is |\?\foo| if it is defined, and an
672 % error message otherwise.
674 % When the encoding is changed from |T1| to |OT1|, |\T1-cmd| is
675 % defined to be |\@changed@cmd| and |\OT1-cmd| is defined to be
676 % |\@current@cmd|. This means that the test for what the current
677 % encoding is can be performed quickly.
679 \def\@current@cmd#1{%
680 \ifx\protect\@typeset@protect
683 \noexpand#1\expandafter\@gobble
688 \def\@changed@cmd#1#2{%
689 \ifx\protect\@typeset@protect
691 \expandafter\ifx\csname\cf@encoding\string#1\endcsname\relax
692 \expandafter\ifx\csname ?\string#1\endcsname\relax
693 \expandafter\def\csname ?\string#1\endcsname{%
694 \TextSymbolUnavailable#1%
697 \global\expandafter\let
698 \csname\cf@encoding \string#1\expandafter\endcsname
699 \csname ?\string#1\endcsname
701 \csname\cf@encoding\string#1%
702 \expandafter\endcsname
707 % \changes{v1.7m}{1995/10/09}{Autoload error}
708 % \changes{v1.7v}{1995/12/05}{Changed \cs{TextSymbolUnavailable} text}
710 \gdef\TextSymbolUnavailable#1{%
712 Command \protect#1 unavailable in encoding \cf@encoding%
715 % The command |\@inmathwarn| produces a warning message if we are
716 % currently in math mode. Note that since this command is used
717 % inside text commands, it can't call |\relax| before the
718 % |\ifmmode|. This means that it is possible for the warning to
719 % fail to be issued at the beginning of a row of an halign whose
720 % template enters math mode. This is probably a bad feature, but
721 % there's not much that can be done about it, since adding a |\relax|
722 % would break ligatures and kerning between text symbols.
724 % A more efficient solution would be to make |\@inmathwarn| and
725 % |\@inmatherr| equal to |\@empty| and |\relax| by default, and
727 % |\everymath| reset them to their usual definitions. This is left
728 % for future investigation (for example it may break some third
733 \@latex@warning{Command \protect#1 invalid in math mode}%
746 % \changes{v1.7k}{1995/06/05}{Allowed \cs{ProvideTextCommandDefault}
747 % after the preamble.}
749 % \begin{macro}{\DeclareTextCommandDefault}
750 % \begin{macro}{\ProvideTextCommandDefault}
751 % These define commands with encoding |?|.
753 % Note that |\DeclareTextCommandDefault| can only be used in the
754 % preamble, but that the |\Provide| version is allowed in inputenc
755 % |.def| files, so is allowed anywhere.
757 \def\DeclareTextCommandDefault#1{%
758 \DeclareTextCommand#1?}
762 \def\ProvideTextCommandDefault#1{%
763 \ProvideTextCommand#1?}
767 \@onlypreamble\DeclareTextCommandDefault
768 %\@onlypreamble\ProvideTextCommandDefault
770 % They require |\?-cmd| to be initialized as |\@changed@cmd|.
772 \expandafter\let\csname?-cmd\endcsname\@changed@cmd
777 % \begin{macro}{\DeclareTextAccent}
778 % \changes{v1.5a}{1994/05/11}
779 % {Reimplemented using \cs{DeclareTextCommand}.}
780 % \changes{v1.7z}{1996/05/23}
781 % {Reimplemented using \cs{add@accent} to save space latex/2133}
782 % This is just a disguise for defining a \TeX~|\accent| command.
784 \def\DeclareTextAccent#1#2#3{%
785 \DeclareTextCommand#1{#2}{\add@accent{#3}}}
789 \@onlypreamble\DeclareTextAccent
793 % \changes{v1.7a}{1994/11/30}{Rewrote \cs{@text@composite} so it
794 % allows an empty argument, or an argument containing lots of
797 % \begin{macro}{\add@accent}
798 % \changes{v1.7z}{1996/05/23}{macro added. latex/2133}
799 % \changes{v1.91}{2000/08/30}{Rearranged but no change to final code,
801 % To save space this code is shared between all text accents that are
802 % set using the |\accent| primitive.
803 % The argument is pre-set in a box so that any
804 % font loading that is needed is already done within the box.
805 % This is needed because font-loading involves grouping and that would
806 % prevent the accent mechanism from working so that the accent would
807 % not be positioned over the argument.
808 % Declarations that change the font should be allowed (only low-level
809 % ones are at present) inside the argument of an accent command,
810 % but not size changes, as they involve |\setbox| operations which
811 % also inhibit the mechanism of the |\accent| primitive.
813 % Note that the whole process is within a group.
814 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
816 % For a detailed discussion of this reimplementation and its
817 % deficiencies, see pr/3160.
818 % \task{?}{Improve this and document its problems, see pr/3160}
819 % \changes{v1.9z}{2000/01/30}{Macro reimplemented (pr/3160)}
821 \def\add@accent#1#2{\hmode@bgroup
823 % Turn off the group in |\UseTextSymbol| in case this is used
824 % inside the argument of |\add@accent|.
826 \let\hmode@start@before@group\@firstofone
827 \setbox\@tempboxa\hbox{#2%
829 % When presetting the argument in a box we record its |\spacefactor|
830 % for later use after the accent got typeset. This way something like
831 % |\`A| gets the spacefactor of |A| (i.e., 999) rather than the
832 % default value of 1000.
833 % \changes{v1.9q}{1998/06/12}
834 % {Explicitly set \cs{spacefactor} after \cs{accent} (pr/2877)}
836 \global\mathchardef\accent@spacefactor\spacefactor}%
837 \accent#1 #2\egroup\spacefactor\accent@spacefactor}
839 % Default definition for |\accent@spacefactor| prevents a horrible
840 % death of the above macro inside an unprotected |\edef|.
841 % \changes{v1.9w}{1999/10/28}{Give \cs{accent@spacefactor} a default
842 % definition (pr/3084)}
844 \let\accent@spacefactor\relax
848 % \begin{macro}{\hmode@bgroup}
849 % \changes{v1.9y}{2000/01/30}{Macro added}
851 \def\hmode@bgroup{\leavevmode\bgroup}
856 % \begin{macro}{\DeclareTextCompositeCommand}
857 % \changes{v1.7z}{1996/05/23}
858 % {Modified to cope with new \cs{add@accent} command: required
859 % removal of check for one argument-command}
860 % \changes{v2.0h}{2017/02/24}{%
861 % add check whether the accent command is defined for this encoding}
862 % \begin{macro}{\DeclareTextComposite}
863 % \changes{v1.7l}{1995/06/09}{Rewrote \cs{DeclareTextComposite} to
864 % define the composite as a no-argument command rather than a
865 % two-argument command.}
866 % \begin{macro}{\@text@composite}
867 % \begin{macro}{\@text@composite@x}
868 % \begin{macro}{\@strip@args}
869 % \changes{v1.8c}{1996/10/27}
871 % Another amusing game to play with |\expandafter|, |\csname|, and
872 % |\string|. When you say
873 % |\DeclareTextCompositeCommand{\foo}{T1}{a}{bar}|, we look to see
874 % if the expansion of |\T1\foo| begins with |\@text@composite|, and
875 % if it doesn't, we redefine |\T1\foo| to be:
877 % #1 -> \@text@composite \T1\foo #1\@empty \@text@composite {...}
880 % previous definition of |\T1\foo|. Finally, we define |\\T1\foo-a|
881 % to expand to |bar|.
883 \def\DeclareTextCompositeCommand#1#2#3#4{%
884 \expandafter\let\expandafter\reserved@a\csname#2\string#1\endcsname
885 \ifx\reserved@a\relax
886 \@latex@error{\string#1 not declared in encoding #2}\@eha
888 \expandafter\expandafter\expandafter\ifx
889 \expandafter\@car\reserved@a\relax\relax\@nil \@text@composite \else
890 \edef\reserved@b##1{%
891 \def\expandafter\noexpand
892 \csname#2\string#1\endcsname####1{%
893 \noexpand\@text@composite
894 \expandafter\noexpand\csname#2\string#1\endcsname
895 ####1\noexpand\@empty\noexpand\@text@composite
897 \expandafter\reserved@b\expandafter{\reserved@a{##1}}%
899 \expandafter\def\csname\expandafter\string\csname
900 #2\endcsname\string#1-\string#3\@empty\endcsname{#4}%
905 \@onlypreamble\DeclareTextCompositeCommand
907 % This all works because:
909 % \@text@composite \T1\foo A\@empty \@text@composite {...}
912 % |\\T1\foo-A| if |\\T1\foo-A| has been defined, and |{...}|
915 % Note that |\@text@composite| grabs the first token of the
916 % argument and puts just that in the
917 % csname. This is so that |\'{\textit{e}}| will work---it checks
918 % whether |\\T1\'-\textit| is defined (which presumably it isn't)
919 % and so expands to |{\accent 1 \textit{e}}|.
921 % This trick won't always work, for example |\'{{\itshape e}}| will
922 % expand to (with spaces added for clarity):
924 % \csname \string \T1\' - \string {\itshape e} \@empty \endcsname
926 % which will die pretty horribly. Unfortunately there's not much
927 % can be done about this if we're going to use |\csname| lookups as a
928 % fast way of accessing composites.
930 % This has an unfortunate `misfeature' though, which is that in
931 % the T1 encoding, |\'{aa}| produces \'a. This is not the expected
932 % behaviour, and should perhaps be fixed if the fix doesn't affect
933 % performance too badly.
935 % Finally, it's worth noting that the |\@empty| is used in
936 % |\@text@composite| so that accents will work even when the
937 % argument is empty. If you say |\'{}| then this looks up
938 % |\\T1\'-\@empty|, which ought to be |\relax|, and so all is well.
939 % If we didn't include the |\@empty|, then |\'{}| would expand to:
941 % \csname \string \T1\' - \string \endcsname
943 % so the |\endcsname| would be |\string|'ed and the whole of the
944 % rest of the document would be put inside the |\csname|. This
947 \def\@text@composite#1#2#3\@text@composite{%
948 \expandafter\@text@composite@x
949 \csname\string#1-\string#2\endcsname}
952 % \changes{v1.7z}{1996/05/23}
953 % {\cs{expandafter} added to match other changes for latex/2133}
954 % \changes{v1.9r}{1999/01/06}{New impl for latex/2930}
955 % \changes{v1.9s}{1999/01/13}{Simplified solution for latex/2930}
956 % Originally the |\@text@composite@x| macro had two arguments and if
957 % |#1| was not |\relax| it was executed, otherwise |#2| was executed.
958 % All this happened within the |\ifx| code so that neither |#1|
959 % nor |#2| could have picked up any additional arguments form
961 % This has now being changed using the typical |\@firstoftwo| /
962 % |\@secondoftwo| coding. This way the
963 % final expansion will happen without any |\else| or |\fi|
964 % intervening in the case that we need to get a further token
965 % from the input stream.
967 \def\@text@composite@x#1{%
969 \expandafter\@secondoftwo
971 \expandafter\@firstoftwo
975 % The command |\DeclareTextComposite| uses
976 % |\DeclareTextCompositeCommand| to declare a command which
977 % expands out to a single glyph.
978 % \changes{v1.8a}{1996/07/19}
979 % {Use char 0 not @ as carrier for \cs{lowercase} /2197}
985 \def\DeclareTextComposite#1#2#3#4{%
986 \def\reserved@a{\DeclareTextCompositeCommand#1{#2}{#3}}%
999 \@onlypreamble\DeclareTextComposite
1007 % \begin{macro}{\UseTextAccent}
1008 % \begin{macro}{\UseTextSymbol}
1009 % \changes{v1.7p}{1995/11/17}{Support \cs{@wrong@font@char} latex/1676}
1010 % \changes{v1.7q}{1995/11/18}{Modify message slightly}
1011 % \begin{macro}{\@use@text@encoding}
1012 % \changes{v1.91}{2000/08/30}{Rearranged but no change to final code,
1014 % These fragile commands access glyphs from different encodings.
1015 % They use grotty low-level calls to the font selection scheme for
1016 % speed, and in order to make sure that |\UseTextSymbol| doesn't
1017 % do anything which you're not allowed to do between an |\accent|
1020 % For a detailed discussion of this reimplementation and its
1021 % deficiencies, see pr/3160.
1022 % \task{?}{Improve this and document its problems, see pr/3160}
1023 % \changes{v1.9z}{2000/01/30}{Macro reimplemented (pr/3160)}
1025 \def\UseTextAccent#1#2#3{%
1026 \hmode@start@before@group
1029 % Turn off the group in |\UseTextSymbol| in case this is used
1030 % inside the arguments of |\UseTextAccent|.
1032 \let\hmode@start@before@group\@firstofone
1033 \let\@curr@enc\cf@encoding
1034 \@use@text@encoding{#1}%
1035 #2{\@use@text@encoding\@curr@enc#3}%
1039 % \changes{v1.9z}{2000/01/30}{Macro reimplemented (pr/3160)}
1041 \def\UseTextSymbol#1#2{%
1042 \hmode@start@before@group
1044 \def\@wrong@font@char{\MessageBreak
1045 for \noexpand\symbol`\string#2'}%
1046 \@use@text@encoding{#1}%
1053 \def\@use@text@encoding#1{%
1054 \edef\f@encoding{#1}%
1056 \csname\curr@fontshape/\f@size\endcsname}%
1065 % \begin{macro}{\hmode@start@before@group}
1066 % The |\hmode@start@before@group| starts hmode and should be
1067 % immediately followed by an explicit |{...}|. Its purpose is to
1068 % ensure that hmode is started before this group is opened. Inside
1069 % |\add@accent| and |\UseTextAccent| it is redefined to remove this
1070 % group so that it doesn't conflict with the |\accent| primitive.
1072 % For a detailed discussion see pr/3160.
1073 % \changes{v1.9z}{2000/01/30}{Macro added (pr/3160)}
1075 \let\hmode@start@before@group\leavevmode
1079 % \begin{macro}{\DeclareTextSymbolDefault}
1080 % \begin{macro}{\DeclareTextAccentDefault}
1081 % Some syntactic sugar. Again, these should probably be optimized
1084 \def\DeclareTextSymbolDefault#1#2{%
1085 \DeclareTextCommandDefault#1{\UseTextSymbol{#2}#1}}
1089 \def\DeclareTextAccentDefault#1#2{%
1090 \DeclareTextCommandDefault#1{\UseTextAccent{#2}#1}}
1094 \@onlypreamble\DeclareTextSymbolDefault
1095 \@onlypreamble\DeclareTextAccentDefault
1101 % \begin{macro}{\UndeclareTextCommand}
1102 % This command safely removes an encoding specific declaration
1103 % for a given encoding. It is helpful if one intends to use the
1104 % default definition always and therefore wants to get rid of
1105 % a declaration for some specific encoding.
1106 % \changes{v1.9o}{1998/03/20}{Macro added for pr/2783}
1108 \def\UndeclareTextCommand#1#2{%
1110 % If there is no declaration for the current encoding do nothing.
1111 % (This makes a hash table entry but without e\TeX{} we can't do
1112 % anything about that).
1114 \expandafter\ifx\csname#2\string#1\endcsname\relax
1117 % Else: throw away that declaration.
1119 \global\expandafter\let\csname#2\string#1\endcsname
1122 % But this is unfortunately not enough, we have to take a look
1123 % at the top-level definition of the encoding specific command
1124 % which for a command |\foo| would look similar to
1125 % |\T1-cmd \foo \T1\foo| (three tokens).
1127 % Of course, instead of |T1| one could see a different encoding name;
1128 % which one depends the encoding for which |\foo| was declared
1131 % Now assume we have just removed the declaration for |\foo| in |T1|
1132 % and the top-level of |\foo| expands to the above. Then we better
1133 % change that pretty fast otherwise we do get an ``undefined csname
1134 % error'' when we try to typeset |\foo| within |T1| instead of
1135 % getting the default definition for |\foo|.
1136 % And what is the best way to change that top-level definition? Well,
1137 % the only ``encoding'' we know for sure will still be around is
1138 % the default encoding denoted by |?|.
1140 % Thus in case the last token of the top-level expansion
1141 % is now undefined we change the declaration to look like
1142 % |\?-cmd \foo \?\foo| which is done by the following
1145 \expandafter\expandafter\expandafter
1146 \ifx\expandafter\@thirdofthree#1\@undefined
1147 \expandafter\gdef\expandafter#1\expandafter
1148 {\csname ?-cmd\expandafter\endcsname\expandafter
1149 #1\csname?\string#1\endcsname}%
1156 \@onlypreamble\UndeclareTextCommand
1161 % \subsubsection{Hyphenation}
1163 % \changes{v1.5l}{1994/10/18}{Added new definitions of \cs{patterns}
1164 % and \cs{hyphenation}.}
1165 % \changes{v1.6g}{1994/11/05}{Added setting of \cs{@typeset@protect}
1166 % to \cs{patterns} and \cs{hyphenation}.}
1167 % \changes{v1.6g}{1994/11/30}{Removed new definitions of \cs{patterns}
1168 % and \cs{hyphenation}, since encoding-specific commands now expand
1171 % \begin{macro}{\patterns}
1172 % \begin{macro}{\@@patterns}
1173 % \begin{macro}{\hyphenation}
1174 % \begin{macro}{\@@hyphenation}
1175 % We redefine |\patterns| and |\hyphenation| to allow the use of
1176 % commands declared with |\DeclareText*| to be used inside them.
1178 %\let\@@patterns\patterns
1179 %\let\@@hyphenation\hyphenation
1182 % \let\protect\@empty
1183 % \let\@typeset@protect\@empty
1184 % \let\@changed@x\@changed@x@mouth
1185 % \afterassignment\egroup
1190 % \let\protect\@empty
1191 % \let\@typeset@protect\@empty
1192 % \let\@changed@x\@changed@x@mouth
1193 % \afterassignment\egroup
1202 % \subsubsection{Miscellania}
1204 % \changes{1.4a}{1994/05/01}{Added the \cs{a} command.}
1205 % \changes{1.7a}{1994/11/30}{Redefined \cs{a} for the new scheme.}
1206 % \changes{1.7b}{1994/12/02}{Redefined \cs{a} properly.}
1207 % \changes{1.7g}{1995/03/03}{Corrected an error in documentation
1208 % referring to the tabular rather than the tabbing
1210 % \changes{v1.7n}{1995/11/02}{Changed internal name \cs{a} to
1211 % \cs{@tabacckludge} to protect against redefinition by malicious
1215 % The |\a| command is used to access the accent commands even when
1216 % they have been redefined (for example by the |tabbing|
1217 % environment). Its internal name is |\@tabacckludge|.
1219 % The |\string| within the |\csname| guards against something
1220 % like |'| being active at the point of use.
1221 % \changes{v1.9r}{1998/09/19}{Added \cs{string} (pr/2878)}
1223 \def\@tabacckludge#1{\expandafter\@changed@cmd
1224 \csname\string#1\endcsname\relax}
1225 \let\a=\@tabacckludge
1229 % \changes{v1.6a}{1994/10/25}{Added the files OT1enc.def, T1enc.def and
1231 % \changes{v1.6b}{1994/10/27}{Removed the files OT1enc.def, T1enc.def
1234 % \subsubsection{Default encodings}
1236 % We define the default encodings for most commands to be either OT1,
1237 % OML or OMS. These defaults are in the kernel and therefore
1238 % fonts with these encodings must be available unless these
1239 % defaults are redefined elsewhere. Recall that the standard kernel
1240 % loads the encoding files for these encodings, and also that for
1243 % The naming conventions in the kernel are not what we would use if we
1244 % were starting from scratch\dots\
1245 % Those defined by DEK (like |\ae| and |\ss|) or by the \TeX{} Users
1246 % Group Technical Working Group on multi-lingual typesetting (like
1247 % |\th| and |\ng|) have short names. Those which were added to the
1248 % kernel in 1993 and early 1994 are named after their Adobe glyph
1249 % names (like |\guillemotleft| and |\quotedblbase|). Unfortunately,
1250 % this naming scheme won't work for all glyphs, since some names (like
1251 % |\space|) are already used, and some (like |\endash|) are very
1252 % likely to be defined by users. So we're now using the naming scheme
1253 % of |\text| followed by the Adobe name, (like |\textendash| and
1254 % |\textsterling|). Except that some glyphs don't have Adobe names,
1255 % so we're using the names used by fontinst for those (like
1256 % |\textcompwordmark|). Sigh.
1258 % \changes{v1.6a}{1994/10/25}{Added the defaults.}
1259 % \changes{v1.6b}{1994/10/27}{Added more defaults for OT1.}
1260 % \changes{v1.6c}{1994/10/29}{Added commands like \cs{dots} for use in
1263 % Some accents from OT1:
1265 \DeclareTextAccentDefault{\"}{OT1}
1266 \DeclareTextAccentDefault{\'}{OT1}
1267 \DeclareTextAccentDefault{\.}{OT1}
1268 \DeclareTextAccentDefault{\=}{OT1}
1269 \DeclareTextAccentDefault{\H}{OT1}
1270 \DeclareTextAccentDefault{\^}{OT1}
1271 \DeclareTextAccentDefault{\`}{OT1}
1272 \DeclareTextAccentDefault{\b}{OT1}
1273 \DeclareTextAccentDefault{\c}{OT1}
1274 \DeclareTextAccentDefault{\d}{OT1}
1275 \DeclareTextAccentDefault{\r}{OT1}
1276 \DeclareTextAccentDefault{\u}{OT1}
1277 \DeclareTextAccentDefault{\v}{OT1}
1278 \DeclareTextAccentDefault{\~}{OT1}
1280 % Some symbols from OT1:
1281 % \changes{v1.8c}{1996/10/27}
1282 % {Removed \cs{aa} and \cs{AA}}
1284 %\DeclareTextSymbolDefault{\AA}{OT1}
1285 \DeclareTextSymbolDefault{\AE}{OT1}
1286 \DeclareTextSymbolDefault{\L}{OT1}
1287 \DeclareTextSymbolDefault{\OE}{OT1}
1288 \DeclareTextSymbolDefault{\O}{OT1}
1289 %\DeclareTextSymbolDefault{\aa}{OT1}
1290 \DeclareTextSymbolDefault{\ae}{OT1}
1291 \DeclareTextSymbolDefault{\i}{OT1}
1292 \DeclareTextSymbolDefault{\j}{OT1}
1294 % \changes{v1.99h}{2005/11/08}
1295 % {Added \cs{ij} and \cs{IJ} from babel. (pr/3771)}
1297 \DeclareTextSymbolDefault{\ij}{OT1}
1298 \DeclareTextSymbolDefault{\IJ}{OT1}
1301 \DeclareTextSymbolDefault{\l}{OT1}
1302 \DeclareTextSymbolDefault{\oe}{OT1}
1303 \DeclareTextSymbolDefault{\o}{OT1}
1304 \DeclareTextSymbolDefault{\ss}{OT1}
1305 \DeclareTextSymbolDefault{\textdollar}{OT1}
1306 \DeclareTextSymbolDefault{\textemdash}{OT1}
1307 \DeclareTextSymbolDefault{\textendash}{OT1}
1308 \DeclareTextSymbolDefault{\textexclamdown}{OT1}
1309 %\DeclareTextSymbolDefault{\texthyphenchar}{OT1}
1310 %\DeclareTextSymbolDefault{\texthyphen}{OT1}
1311 \DeclareTextSymbolDefault{\textquestiondown}{OT1}
1312 \DeclareTextSymbolDefault{\textquotedblleft}{OT1}
1313 \DeclareTextSymbolDefault{\textquotedblright}{OT1}
1314 \DeclareTextSymbolDefault{\textquoteleft}{OT1}
1315 \DeclareTextSymbolDefault{\textquoteright}{OT1}
1316 \DeclareTextSymbolDefault{\textsterling}{OT1}
1318 % Some symbols from OMS:
1319 % \changes{v1.7t}{1995/11/29}{Added \cs{textbackslash} and
1321 % \changes{v1.8c}{1996/10/27}
1322 % {Added \cs{textasteriskcentered}}
1323 % \changes{v1.95}{2002/06/16}{Added default for \cs{textbardbl} (pr/3400)}
1325 \DeclareTextSymbolDefault{\textasteriskcentered}{OMS}
1326 \DeclareTextSymbolDefault{\textbackslash}{OMS}
1327 \DeclareTextSymbolDefault{\textbar}{OMS}
1328 \DeclareTextSymbolDefault{\textbardbl}{OMS}
1329 \DeclareTextSymbolDefault{\textbraceleft}{OMS}
1330 \DeclareTextSymbolDefault{\textbraceright}{OMS}
1331 \DeclareTextSymbolDefault{\textbullet}{OMS}
1332 \DeclareTextSymbolDefault{\textdaggerdbl}{OMS}
1333 \DeclareTextSymbolDefault{\textdagger}{OMS}
1334 \DeclareTextSymbolDefault{\textparagraph}{OMS}
1335 \DeclareTextSymbolDefault{\textperiodcentered}{OMS}
1336 \DeclareTextSymbolDefault{\textsection}{OMS}
1337 \DeclareTextAccentDefault{\textcircled}{OMS}
1340 % \changes{v1.6d}{1994/10/30}{Added OML encoding.}
1341 % \changes{v1.6d}{1994/10/30}{Made \cs{textless} and \cs{textgreater}
1343 % \changes{v1.6d}{1994/10/30}{Added \cs{t}.}
1344 % \changes{v1.7k}{1995/06/05}{Commented out \cs{textless} and
1345 % \cs{textgreater}.}
1347 % Some symbols from OML:
1348 % \changes{v1.7t}{1995/11/29}{Added \cs{textless} and
1349 % \cs{textgreater}.}
1351 \DeclareTextSymbolDefault{\textless}{OML}
1352 \DeclareTextSymbolDefault{\textgreater}{OML}
1353 \DeclareTextAccentDefault{\t}{OML}
1356 % \changes{v1.6d}{1994/10/30}{Added \cs{textcircled}.}
1357 % \changes{v1.6d}{1994/10/30}{Rewrote \cs{copyright} to use
1358 % \cs{textcircled}.}
1359 % \changes{v1.6d}{1994/10/30}{Removed \cs{textregistered}.}
1360 % \changes{v1.7k}{1995/06/05}{Save some tokens in
1361 % \cs{textvisiblespace} and \cs{textunderscore}.}
1362 % \changes{v1.7t}{1995/11/29}{Added \cs{textasciicircum},
1363 % \cs{textasciitilde}, \cs{textregistered} and \cs{texttrademark}.}
1364 % \changes{v1.7u}{1995/12/01}{Made \cs{SS} a Default, rather than
1365 % having the default point to the OT1 definition.}
1366 % \changes{v1.7w}{1995/12/11}{Modified \cs{copyright}}
1367 % \changes{v1.9a}{1997/04/30}{Introduced \cs{textcopyright} and modified
1370 % Some defaults we can fake.
1372 % The interface for defining |\copyright| changed, it used to
1373 % use |\expandafter| to add braces at the appropriate points.
1375 \DeclareTextCommandDefault{\textcopyright}{\textcircled{c}}
1376 % \expandafter\def\expandafter
1377 % \copyright\expandafter{\expandafter{\copyright}}
1380 % \changes{v1.9a}{1997/04/30}{Modified \cs{textunderscore}, removing
1381 % \cs{mathunderscore}}
1382 % \changes{v1.9b}{1997/04/30}{Added \cs{leavevmode} to
1383 % \cs{textunderscore}}
1384 % \changes{v1.9d}{1997/05/07}{Added \cs{leavevmode} to
1385 % \cs{textcompwordmark}}
1387 \DeclareTextCommandDefault{\textasciicircum}{\^{}}
1388 \DeclareTextCommandDefault{\textasciitilde}{\~{}}
1389 \DeclareTextCommandDefault{\textcompwordmark}{\leavevmode\kern\z@}
1390 \DeclareTextCommandDefault{\textunderscore}{%
1391 \leavevmode \kern.06em\vbox{\hrule\@width.3em}}
1395 \DeclareTextCommandDefault{\textvisiblespace}{%
1396 \mbox{\kern.06em\vrule \@height.3ex}%
1397 \vbox{\hrule \@width.3em}%
1398 \hbox{\vrule \@height.3ex}}
1401 % Using |\fontdimen3| in the next definition is some sort of a
1402 % kludge (since it is the interword stretch) but it makes the
1403 % ellipsis come out right in mono-spaced fonts too (since there it
1406 \DeclareTextCommandDefault{\textellipsis}{%
1407 .\kern\fontdimen3\font
1408 .\kern\fontdimen3\font
1409 .\kern\fontdimen3\font}
1412 % \changes{v1.9a}{1997/04/30}{Changed \cs{textsc} to \cs{scshape}}
1413 % \changes{v1.95}{2002/06/18}{Changed def for \cs{textregistered} to
1414 % avoid small caps (pr/3420)}
1416 %\DeclareTextCommandDefault{\textregistered}{\textcircled{\scshape r}}
1417 \DeclareTextCommandDefault{\textregistered}{\textcircled{%
1418 \check@mathfonts\fontsize\sf@size\z@\math@fontsfalse\selectfont R}}
1419 \DeclareTextCommandDefault{\texttrademark}{\textsuperscript{TM}}
1420 \DeclareTextCommandDefault{\SS}{SS}
1423 % \changes{v1.9n}{1998/03/05}{Added masc/fem ords as in pr/2579}
1425 \DeclareTextCommandDefault{\textordfeminine}{\textsuperscript{a}}
1426 \DeclareTextCommandDefault{\textordmasculine}{\textsuperscript{o}}
1429 % \subsubsection{Math material}
1431 % Some commands can be used in both text and math mode:
1433 \DeclareRobustCommand{\$}{\ifmmode\mathdollar\else\textdollar\fi}
1434 \DeclareRobustCommand{\{}{\ifmmode\lbrace\else\textbraceleft\fi}
1435 \DeclareRobustCommand{\}}{\ifmmode\rbrace\else\textbraceright\fi}
1436 \DeclareRobustCommand{\P}{\ifmmode\mathparagraph\else\textparagraph\fi}
1437 \DeclareRobustCommand{\S}{\ifmmode\mathsection\else\textsection\fi}
1438 \DeclareRobustCommand{\dag}{\ifmmode{\dagger}\else\textdagger\fi}
1439 \DeclareRobustCommand{\ddag}{\ifmmode{\ddagger}\else\textdaggerdbl\fi}
1442 % For historical reasons |\copyright|
1443 % needs |{}| around the definition in maths.
1445 % \changes{v1.6f}{1994/11/04}{Added \cmd\_.}
1447 % \changes{v1.9a}{1997/04/30}{Modified \cs{underscore}, removing
1448 % \cs{mathunderscore}}
1449 % \changes{v1.9a}{1997/04/30}{Introduced \cs{textcopyright} and modify
1452 \DeclareRobustCommand{\_}{%
1453 \ifmmode\nfss@text{\textunderscore}\else\textunderscore\fi}
1454 \DeclareRobustCommand{\copyright}{%
1455 \ifmmode{\nfss@text{\textcopyright}}\else\textcopyright\fi}
1456 \DeclareRobustCommand{\pounds}{%
1457 \ifmmode\mathsterling\else\textsterling\fi}
1461 \DeclareRobustCommand{\dots}{%
1462 \ifmmode\mathellipsis\else\textellipsis\fi}
1468 % \changes{v1.99m}{2015/02/16}{Added \cs{textcommabelow} latex/4414}
1469 % Default definition of the commabelow accent.
1472 %<latexrelease>\IncludeInRelease{2015/10/01}{\textcommabelow}{comma accent}%
1473 %<*2ekernel|latexrelease>
1474 \DeclareTextCommandDefault\textcommabelow[1]
1475 {\hmode@bgroup\ooalign{\null#1\crcr\hidewidth\raise-.31ex
1476 \hbox{\check@mathfonts\fontsize\ssf@size\z@
1477 \math@fontsfalse\selectfont,}\hidewidth}\egroup}
1478 %<latexrelease>\EndIncludeInRelease
1479 %</2ekernel|latexrelease>
1480 %<latexrelease>\IncludeInRelease{0000/00/00}{\textcommabelow}{comma accent}%
1481 %<latexrelease>\let\textcommabelow\@undefined
1482 %<latexrelease>\expandafter
1483 %<latexrelease> \let\csname\string\T1\string\c-G\endcsname\@undefined
1484 %<latexrelease>\expandafter
1485 %<latexrelease> \let\csname\string\T1\string\c-K\endcsname\@undefined
1486 %<latexrelease>\expandafter
1487 %<latexrelease> \let\csname\string\T1\string\c-k\endcsname\@undefined
1488 %<latexrelease>\expandafter
1489 %<latexrelease> \let\csname\string\T1\string\c-L\endcsname\@undefined
1490 %<latexrelease>\expandafter
1491 %<latexrelease> \let\csname\string\T1\string\c-l\endcsname\@undefined
1492 %<latexrelease>\expandafter
1493 %<latexrelease> \let\csname\string\T1\string\c-N\endcsname\@undefined
1494 %<latexrelease>\expandafter
1495 %<latexrelease> \let\csname\string\T1\string\c-n\endcsname\@undefined
1496 %<latexrelease>\expandafter
1497 %<latexrelease> \let\csname\string\T1\string\c-R\endcsname\@undefined
1498 %<latexrelease>\expandafter
1499 %<latexrelease> \let\csname\string\T1\string\c-r\endcsname\@undefined
1500 %<latexrelease>\EndIncludeInRelease
1503 % \changes{v1.99n}{2015/02/16}{Added \cs{textcommaabove}}
1504 % Default definition of the commaabove accent(E.G.).
1506 %<latexrelease>\IncludeInRelease{2016/02/01}{\textcommaabove}{comma above}%
1507 %<*2ekernel|latexrelease>
1508 \DeclareTextCommandDefault\textcommaabove[1]{%
1513 \check@mathfonts\fontsize\ssf@size\z@\math@fontsfalse\selectfont`%
1520 %<latexrelease>\EndIncludeInRelease
1521 %</2ekernel|latexrelease>
1522 %<latexrelease>\IncludeInRelease{0000/00/00}{\textcommaabove}{comma above}%
1523 %<latexrelease>\let\textcommaabove\@undefined
1524 %<latexrelease>\expandafter
1525 %<latexrelease> \let\csname\string\OT1\string\c-g\endcsname\@undefined
1526 %<latexrelease>\expandafter
1527 %<latexrelease> \let\csname\string\T1\string\c-g\endcsname\@undefined
1528 %<latexrelease>\EndIncludeInRelease
1531 % \changes{v1.6d}{1994/10/30}{Moved math commands here from ltmath.}
1532 % \changes{v1.6f}{1994/11/04}{Added \cs{mathunderscore}.}
1533 % \changes{v1.7k}{1995/06/05}{Moved math commands to fontdef.dtx.}
1536 % \changes{1.4a}{1994/05/01}{Added the \cs{SaveAtCatcode} and
1537 % \cs{RestoreAtCatcode} commands.}
1539 % \changes{1.5a}{1994/05/12}{Removed the \cs{SaveAtCatcode} and
1540 % \cs{RestoreAtCatcode} commands.}
1543 % \subsection{Definitions for the OT1 encoding}
1545 % \changes{1.3}{1993/12/17}{Removed all the hackery for use in
1546 % \cs{DeclareFontEncoding}, and redid everything using
1547 % \cs{DeclareTextFoo}.}
1548 % \changes{1.3b}{1993/12/18}{Replaced the missing last argument to
1549 % \cs{DeclareFontEncoding}.}
1550 % \changes{1.3c}{1993/12/18}{Rewrote for the new syntax of
1551 % \cs{EncodingSpecific}.}
1552 % \changes{1.4a}{1994/05/01}{Rewrote for the new syntax.}
1553 % \changes{1.5a}{1994/05/12}{Rewrote for the new syntax.}
1554 % \changes{1.5h}{1994/05/16}{\cs{pounds} was still using u rather than
1556 % \changes{1.6b}{1994/10/27}{Added:
1559 % \cs{textexclamdown}
1560 % \cs{texthyphenchar}
1562 % \cs{textquestiondown}
1563 % \cs{textquotedblleft}
1564 % \cs{textquotedblright}
1565 % \cs{textquoteleft}
1566 % \cs{textquoteright}
1569 % The definitions for the `\TeX{} text' (OT1) encoding.
1571 % Declare the encoding.
1574 \DeclareFontEncoding{OT1}{}{}
1576 % Declare the accents.
1578 \DeclareTextAccent{\"}{OT1}{127}
1579 \DeclareTextAccent{\'}{OT1}{19}
1580 \DeclareTextAccent{\.}{OT1}{95}
1581 \DeclareTextAccent{\=}{OT1}{22}
1582 \DeclareTextAccent{\^}{OT1}{94}
1583 \DeclareTextAccent{\`}{OT1}{18}
1584 \DeclareTextAccent{\~}{OT1}{126}
1585 \DeclareTextAccent{\H}{OT1}{125}
1586 \DeclareTextAccent{\u}{OT1}{21}
1587 \DeclareTextAccent{\v}{OT1}{20}
1588 \DeclareTextAccent{\r}{OT1}{23}
1590 % Some accents have to be built by hand:
1591 % Note that |\ooalign| and |\o@lign| must be inside a group.
1592 % \changes{v1.7j}{1995/05/21}{Updated some plain macros}
1593 % \changes{v1.7o}{1995/11/07}{Added \cs{leavevmode} at start of
1594 % \cs{c}, otherwise the output routine might be invoked within the
1596 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
1598 % \changes{v1.99g}{2005/09/27}{Replace \cs{sh@ft} by \cs{ltx@sh@ft}}
1599 % In these definitions we no longer use the helper function |\sh@ft|
1600 % from plain.tex since that now has two incompatible definitions.
1602 \DeclareTextCommand{\b}{OT1}[1]
1603 {\hmode@bgroup\o@lign{\relax#1\crcr\hidewidth\ltx@sh@ft{-3ex}%
1604 \vbox to.2ex{\hbox{\char22}\vss}\hidewidth}\egroup}
1605 \DeclareTextCommand{\c}{OT1}[1]
1606 {\leavevmode\setbox\z@\hbox{#1}\ifdim\ht\z@=1ex\accent24 #1%
1607 \else{\ooalign{\unhbox\z@\crcr\hidewidth\char24\hidewidth}}\fi}
1608 \DeclareTextCommand{\d}{OT1}[1]
1610 \o@lign{\relax#1\crcr\hidewidth\ltx@sh@ft{-1ex}.\hidewidth}\egroup}
1613 % Declare the text symbols.
1615 \DeclareTextSymbol{\AE}{OT1}{29}
1616 \DeclareTextSymbol{\OE}{OT1}{30}
1617 \DeclareTextSymbol{\O}{OT1}{31}
1618 \DeclareTextSymbol{\ae}{OT1}{26}
1619 \DeclareTextSymbol{\i}{OT1}{16}
1620 \DeclareTextSymbol{\j}{OT1}{17}
1621 \DeclareTextSymbol{\oe}{OT1}{27}
1622 \DeclareTextSymbol{\o}{OT1}{28}
1623 \DeclareTextSymbol{\ss}{OT1}{25}
1624 \DeclareTextSymbol{\textemdash}{OT1}{124}
1625 \DeclareTextSymbol{\textendash}{OT1}{123}
1627 % Using the ligatures helps with OT1 fonts that have
1628 % |\textexclamdown| and |\textquestiondown| in unusual positions.
1629 % \changes{v1.95}{2002/06/17}{Definition of \cs{textexclamdown} changed (pr/3368)}
1630 % \changes{v1.95}{2002/06/17}{Definition of \cs{textquestiondown} changed (pr/3368)}
1632 %\DeclareTextSymbol{\textexclamdown}{OT1}{60}
1633 %\DeclareTextSymbol{\textquestiondown}{OT1}{62}
1634 \DeclareTextCommand{\textexclamdown}{OT1}{!`}
1635 \DeclareTextCommand{\textquestiondown}{OT1}{?`}
1636 %\DeclareTextSymbol{\texthyphenchar}{OT1}{`\-}
1637 %\DeclareTextSymbol{\texthyphen}{OT1}{`\-}
1638 \DeclareTextSymbol{\textquotedblleft}{OT1}{92}
1639 \DeclareTextSymbol{\textquotedblright}{OT1}{`\"}
1640 \DeclareTextSymbol{\textquoteleft}{OT1}{`\`}
1641 \DeclareTextSymbol{\textquoteright}{OT1}{`\'}
1643 % Some symbols which are faked from others:
1644 % \changes{v1.7o}{1995/11/07}{Changed \cs{char}32 to \cs{@xxxii} (two
1646 % \changes{v1.7o}{1995/11/07}{Replaced octal number 27 by decimal
1647 % number 23 to protect against the quote character being active.}
1648 % \changes{v1.7o}{1995/11/07}{Replaced some 0's by \cs{z@} (faster).}
1649 % \changes{v1.8c}{1996/10/27}
1650 % {Removed \cs{aa} and \cs{AA}}
1651 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
1654 % \DeclareTextCommand{\aa}{OT1}
1656 \DeclareTextCommand{\L}{OT1}
1657 {\leavevmode\setbox\z@\hbox{L}\hb@xt@\wd\z@{\hss\@xxxii L}}
1658 \DeclareTextCommand{\l}{OT1}
1659 {\hmode@bgroup\@xxxii l\egroup}
1660 % \DeclareTextCommand{\AA}{OT1}
1661 % {\leavevmode\setbox\z@\hbox{h}\dimen@\ht\z@\advance\dimen@-1ex%
1662 % \rlap{\raise.67\dimen@\hbox{\char23}}A}
1664 % In the OT1 encoding \r A has a hand-crafted definition, so we
1665 % have here the first recorded explicit use of
1666 % |\DeclareTextCompositeCommand|.
1667 % \changes{v1.8c}{1996/10/27}
1669 % \changes{v1.96}{2002/10/28}{%
1670 % coding change, to follow bug fix by DEK in plain.tex (pr/3469)}
1671 % \changes{v2.0f}{2017/02/19}{%
1672 % add \cs{@empty} to guard against 3rd argument being empty}
1674 \DeclareTextCompositeCommand{\r}{OT1}{A}
1675 {\leavevmode\setbox\z@\hbox{!}\dimen@\ht\z@\advance\dimen@-1ex%
1676 \rlap{\raise.67\dimen@\hbox{\char23}}A}
1678 % \changes{v1.99h}{2005/11/08}
1679 % {Added \cs{ij} and \cs{IJ} from babel. (pr/3771)}
1680 % The dutch language uses the letter `ij'. It is available in
1681 % \texttt{T1} encoded fonts, but not in the \texttt{OT1} encoded
1682 % fonts. Therefor we fake it for the \texttt{OT1} encoding.
1684 \DeclareTextCommand{\ij}{OT1}{%
1685 \nobreak\hskip\z@skip i\kern-0.02em j\nobreak\hskip\z@skip}
1686 \DeclareTextCommand{\IJ}{OT1}{%
1687 \nobreak\hskip\z@skip I\kern-0.02em J\nobreak\hskip\z@skip}
1689 % In the OT1 encoding, \pounds~and \$ share a slot.
1690 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
1693 \DeclareTextCommand{\textdollar}{OT1}{\hmode@bgroup
1694 \ifdim \fontdimen\@ne\font >\z@
1703 \DeclareTextCommand{\textsterling}{OT1}{\hmode@bgroup
1704 \ifdim \fontdimen\@ne\font >\z@
1707 \fontshape{ui}\selectfont
1712 % Here we are adding some more composite commands to the |OT1|
1713 % encoding. This makes the use of certain accents with |i|
1714 % compatible with their use with the |T1| encoding; this
1715 % enables them to become true \LaTeX{} internal representations.
1716 % However, it will make these accents work a little less fast since
1717 % a check will always be made for the existence of a composite.
1719 % \changes{v1.93}{2001/05/28}{Added composites for compatibility with
1721 % \changes{v1.94}{2001/06/05}{Text composite Commands need kludges for
1722 % `,' -- see tlb1903.lvt}
1724 \DeclareTextComposite{\.}{OT1}{i}{`\i}
1725 \DeclareTextComposite{\.}{OT1}{\i}{`\i}
1726 \DeclareTextCompositeCommand{\`}{OT1}{i}{\@tabacckludge`\i}
1727 \DeclareTextCompositeCommand{\'}{OT1}{i}{\@tabacckludge'\i}
1728 \DeclareTextCompositeCommand{\^}{OT1}{i}{\^\i}
1729 \DeclareTextCompositeCommand{\"}{OT1}{i}{\"\i}
1732 % T1 encoding is given more extensive set of overloads for \verb|\c|
1733 % But here we just adjust \verb|\c{g}|.
1734 % \changes{v1.99n}{2015/02/16}{Added composites for \cs{c}}
1735 % \changes{v1.99m}{2016/06/19}{OT1 definition (was duplicate T1 definition)}
1737 \ifx\textcommaabove\@undefined\else
1738 \DeclareTextCompositeCommand{\c}{OT1}{g}{\textcommaabove{g}}
1746 % \subsection{Definitions for the T1 encoding}
1748 % \changes{1.3}{1993/12/17}{Removed all the hackery for use in
1749 % \cs{DeclareFontEncoding}, and redid everything using
1750 % \cs{DeclareTextFoo}.}
1751 % \changes{1.3b}{1993/12/18}{Replaced the missing last argument to
1752 % \cs{DeclareFontEncoding}.}
1753 % \changes{1.3c}{1993/12/18}{Rewrote for the new syntax of
1754 % \cs{EncodingSpecific}.}
1755 % \changes{1.4a}{1994/05/01}{Rewrote for the new syntax.}
1756 % \changes{1.5a}{1994/05/12}{Rewrote for the new syntax.}
1757 % \changes{1.6a}{1994/10/25}{Added \cs{textdollar},
1758 % \cs{textlbrace}, \cs{textrbrace}, \cs{textsterling},
1759 % \cs{textunderline}.}
1760 % \changes{1.6a}{1994/10/25}{Removed
1761 % \cs{textlbrace}, \cs{textrbrace}, \cs{textunderline} to give them
1762 % their proper names.}
1763 % \changes{1.6b}{1994/10/27}{Added
1764 % \cs{textasciicircum}
1765 % \cs{textasciitilde}
1766 % \cs{textbackslash}
1768 % \cs{textbraceleft}
1769 % \cs{textbraceright}
1770 % \cs{textcompwordmark}
1773 % \cs{textexclamdown}
1775 % \cs{texthyphenchar}
1778 % \cs{textquestiondown}
1779 % \cs{textquotedblleft}
1780 % \cs{textquotedblright}
1782 % \cs{textquoteleft}
1783 % \cs{textquoteright}
1784 % \cs{textunderscore}
1785 % \cs{textvisiblespace}
1787 % \changes{v1.9h}{1997/12/17}
1788 % {Added \cs{textperthousand} and \cs{textpertenthousand}}
1790 % The definitions for the `Extended \TeX{} text' (T1) encoding.
1792 % Declare the encoding.
1795 \DeclareFontEncoding{T1}{}{}
1797 % Declare the accents.
1799 \DeclareTextAccent{\`}{T1}{0}
1800 \DeclareTextAccent{\'}{T1}{1}
1801 \DeclareTextAccent{\^}{T1}{2}
1802 \DeclareTextAccent{\~}{T1}{3}
1803 \DeclareTextAccent{\"}{T1}{4}
1804 \DeclareTextAccent{\H}{T1}{5}
1805 \DeclareTextAccent{\r}{T1}{6}
1806 \DeclareTextAccent{\v}{T1}{7}
1807 \DeclareTextAccent{\u}{T1}{8}
1808 \DeclareTextAccent{\=}{T1}{9}
1809 \DeclareTextAccent{\.}{T1}{10}
1811 % Some accents have to be built by hand.
1812 % Note that |\ooalign| and |\o@lign| must be inside a group.
1813 % \changes{v1.9h}{1997/12/17}{As in OT1, Added \cs{leavevmode} at
1814 % start of \cs{c}, otherwise the output routine might be invoked
1815 % within the macro.}
1816 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
1818 % \changes{v1.95}{2002/06/17}{Corrected \cs{c} for T1 (pr/3442)}
1819 % \changes{v1.99b}{2004/01/03}{Use \cs{ooalign} for \cs{k} (pr/3532)}
1820 % \changes{v1.99b}{2004/01/03}{Added \cs{textogonekcentered} (pr/3532)}
1821 % \changes{v1.99c}{2004/01/04}{More adjustments for ogonek (pr/3532)}
1822 % \changes{v1.99g}{2005/09/27}{Replace \cs{sh@ft} by \cs{ltx@sh@ft}}
1823 % In these definitions we no longer use the helper function |\sh@ft|
1824 % from plain.tex since that now has two incompatible definitions.
1826 \DeclareTextCommand{\b}{T1}[1]
1827 {\hmode@bgroup\o@lign{\relax#1\crcr\hidewidth\ltx@sh@ft{-3ex}%
1828 \vbox to.2ex{\hbox{\char9}\vss}\hidewidth}\egroup}
1829 \DeclareTextCommand{\c}{T1}[1]
1830 {\leavevmode\setbox\z@\hbox{#1}\ifdim\ht\z@=1ex\accent11 #1%
1831 \else{\ooalign{\unhbox\z@\crcr
1832 \hidewidth\char11\hidewidth}}\fi}
1833 \DeclareTextCommand{\d}{T1}[1]
1835 \o@lign{\relax#1\crcr\hidewidth\ltx@sh@ft{-1ex}.\hidewidth}\egroup}
1836 \DeclareTextCommand{\k}{T1}[1]
1837 {\hmode@bgroup\ooalign{\null#1\crcr\hidewidth\char12}\egroup}
1838 \DeclareTextCommand{\textogonekcentered}{T1}[1]
1839 {\hmode@bgroup\ooalign{%
1840 \null#1\crcr\hidewidth\char12\hidewidth}\egroup}
1843 % Some symbols are constructed.
1845 % \changes{v1.9h}{1997/12/17}
1846 % {Added \cs{textperthousand} and \cs{textpertenthousand}}
1847 % Slot 24 contains a small circle intended for construction of
1851 \DeclareTextCommand{\textperthousand}{T1}
1852 {\%\char 24 } % space or `relax as delimiter?
1853 \DeclareTextCommand{\textpertenthousand}{T1}
1854 {\%\char 24\char 24 } % space or `relax as delimiter?
1857 % Declare the text symbols.
1858 % \changes{v1.7t}{1995/11/29}{Added \cs{textasciicircum},
1859 % \cs{textasciitilde}, \cs{textbackslash}, \cs{textbar},
1860 % \cs{textgreater} and \cs{textless}.}
1861 % \changes{v1.8c}{1996/10/27}
1862 % {Removed \cs{aa} and \cs{AA}}
1863 % \changes{v1.99h}{2005/11/08}
1864 % {Added \cs{ij} and \cs{IJ} from babel. (pr/3771)}
1867 %\DeclareTextSymbol{\AA}{T1}{197}
1868 \DeclareTextSymbol{\AE}{T1}{198}
1869 \DeclareTextSymbol{\DH}{T1}{208}
1870 \DeclareTextSymbol{\DJ}{T1}{208}
1871 \DeclareTextSymbol{\L}{T1}{138}
1872 \DeclareTextSymbol{\NG}{T1}{141}
1873 \DeclareTextSymbol{\OE}{T1}{215}
1874 \DeclareTextSymbol{\O}{T1}{216}
1875 \DeclareTextSymbol{\SS}{T1}{223}
1876 \DeclareTextSymbol{\TH}{T1}{222}
1877 %\DeclareTextSymbol{\aa}{T1}{229}
1878 \DeclareTextSymbol{\ae}{T1}{230}
1879 \DeclareTextSymbol{\dh}{T1}{240}
1880 \DeclareTextSymbol{\dj}{T1}{158}
1881 \DeclareTextSymbol{\guillemotleft}{T1}{19}
1882 \DeclareTextSymbol{\guillemotright}{T1}{20}
1883 \DeclareTextSymbol{\guilsinglleft}{T1}{14}
1884 \DeclareTextSymbol{\guilsinglright}{T1}{15}
1885 \DeclareTextSymbol{\i}{T1}{25}
1886 \DeclareTextSymbol{\j}{T1}{26}
1887 \DeclareTextSymbol{\ij}{T1}{188}
1888 \DeclareTextSymbol{\IJ}{T1}{156}
1889 \DeclareTextSymbol{\l}{T1}{170}
1890 \DeclareTextSymbol{\ng}{T1}{173}
1891 \DeclareTextSymbol{\oe}{T1}{247}
1892 \DeclareTextSymbol{\o}{T1}{248}
1893 \DeclareTextSymbol{\quotedblbase}{T1}{18}
1894 \DeclareTextSymbol{\quotesinglbase}{T1}{13}
1895 \DeclareTextSymbol{\ss}{T1}{255}
1896 \DeclareTextSymbol{\textasciicircum}{T1}{`\^}
1897 \DeclareTextSymbol{\textasciitilde}{T1}{`\~}
1898 \DeclareTextSymbol{\textbackslash}{T1}{`\\}
1899 \DeclareTextSymbol{\textbar}{T1}{`\|}
1900 \DeclareTextSymbol{\textbraceleft}{T1}{`\{}
1901 \DeclareTextSymbol{\textbraceright}{T1}{`\}}
1902 \DeclareTextSymbol{\textcompwordmark}{T1}{23}
1903 \DeclareTextSymbol{\textdollar}{T1}{`\$}
1904 \DeclareTextSymbol{\textemdash}{T1}{22}
1905 \DeclareTextSymbol{\textendash}{T1}{21}
1906 \DeclareTextSymbol{\textexclamdown}{T1}{189}
1907 \DeclareTextSymbol{\textgreater}{T1}{`\>}
1908 %\DeclareTextSymbol{\texthyphenchar}{T1}{127}
1909 %\DeclareTextSymbol{\texthyphen}{T1}{`\-}
1910 \DeclareTextSymbol{\textless}{T1}{`\<}
1911 \DeclareTextSymbol{\textquestiondown}{T1}{190}
1912 \DeclareTextSymbol{\textquotedblleft}{T1}{16}
1913 \DeclareTextSymbol{\textquotedblright}{T1}{17}
1914 \DeclareTextSymbol{\textquotedbl}{T1}{`\"}
1915 \DeclareTextSymbol{\textquoteleft}{T1}{`\`}
1916 \DeclareTextSymbol{\textquoteright}{T1}{`\'}
1917 \DeclareTextSymbol{\textsection}{T1}{159}
1918 \DeclareTextSymbol{\textsterling}{T1}{191}
1919 \DeclareTextSymbol{\textunderscore}{T1}{95}
1920 \DeclareTextSymbol{\textvisiblespace}{T1}{32}
1921 \DeclareTextSymbol{\th}{T1}{254}
1923 % Declare the composites.
1924 % \changes{v1.93}{2001/05/28}{Changed the effect of
1925 % \cs{.}\cs{i}, pr/3295}
1927 \DeclareTextComposite{\.}{T1}{i}{`\i}
1928 \DeclareTextComposite{\.}{T1}{\i}{`\i}
1930 % \changes{v1.9c}{1997/05/04}{Added `hex index tabs'}
1933 \DeclareTextComposite{\u}{T1}{A}{128}
1934 \DeclareTextComposite{\k}{T1}{A}{129}
1935 \DeclareTextComposite{\'}{T1}{C}{130}
1936 \DeclareTextComposite{\v}{T1}{C}{131}
1937 \DeclareTextComposite{\v}{T1}{D}{132}
1938 \DeclareTextComposite{\v}{T1}{E}{133}
1939 \DeclareTextComposite{\k}{T1}{E}{134}
1940 \DeclareTextComposite{\u}{T1}{G}{135}
1944 \DeclareTextComposite{\'}{T1}{L}{136}
1945 \DeclareTextComposite{\v}{T1}{L}{137}
1946 \DeclareTextComposite{\'}{T1}{N}{139}
1947 \DeclareTextComposite{\v}{T1}{N}{140}
1948 \DeclareTextComposite{\H}{T1}{O}{142}
1949 \DeclareTextComposite{\'}{T1}{R}{143}
1953 \DeclareTextComposite{\v}{T1}{R}{144}
1954 \DeclareTextComposite{\'}{T1}{S}{145}
1955 \DeclareTextComposite{\v}{T1}{S}{146}
1956 \DeclareTextComposite{\c}{T1}{S}{147}
1957 \DeclareTextComposite{\v}{T1}{T}{148}
1958 \DeclareTextComposite{\c}{T1}{T}{149}
1959 \DeclareTextComposite{\H}{T1}{U}{150}
1960 \DeclareTextComposite{\r}{T1}{U}{151}
1964 \DeclareTextComposite{\"}{T1}{Y}{152}
1965 \DeclareTextComposite{\'}{T1}{Z}{153}
1966 \DeclareTextComposite{\v}{T1}{Z}{154}
1967 \DeclareTextComposite{\.}{T1}{Z}{155}
1968 \DeclareTextComposite{\.}{T1}{I}{157}
1972 \DeclareTextComposite{\u}{T1}{a}{160}
1973 \DeclareTextComposite{\k}{T1}{a}{161}
1974 \DeclareTextComposite{\'}{T1}{c}{162}
1975 \DeclareTextComposite{\v}{T1}{c}{163}
1976 \DeclareTextComposite{\v}{T1}{d}{164}
1977 \DeclareTextComposite{\v}{T1}{e}{165}
1978 \DeclareTextComposite{\k}{T1}{e}{166}
1979 \DeclareTextComposite{\u}{T1}{g}{167}
1983 \DeclareTextComposite{\'}{T1}{l}{168}
1984 \DeclareTextComposite{\v}{T1}{l}{169}
1985 \DeclareTextComposite{\'}{T1}{n}{171}
1986 \DeclareTextComposite{\v}{T1}{n}{172}
1987 \DeclareTextComposite{\H}{T1}{o}{174}
1988 \DeclareTextComposite{\'}{T1}{r}{175}
1992 \DeclareTextComposite{\v}{T1}{r}{176}
1993 \DeclareTextComposite{\'}{T1}{s}{177}
1994 \DeclareTextComposite{\v}{T1}{s}{178}
1995 \DeclareTextComposite{\c}{T1}{s}{179}
1996 \DeclareTextComposite{\v}{T1}{t}{180}
1997 \DeclareTextComposite{\c}{T1}{t}{181}
1998 \DeclareTextComposite{\H}{T1}{u}{182}
1999 \DeclareTextComposite{\r}{T1}{u}{183}
2003 \DeclareTextComposite{\"}{T1}{y}{184}
2004 \DeclareTextComposite{\'}{T1}{z}{185}
2005 \DeclareTextComposite{\v}{T1}{z}{186}
2006 \DeclareTextComposite{\.}{T1}{z}{187}
2010 \DeclareTextComposite{\`}{T1}{A}{192}
2011 \DeclareTextComposite{\'}{T1}{A}{193}
2012 \DeclareTextComposite{\^}{T1}{A}{194}
2013 \DeclareTextComposite{\~}{T1}{A}{195}
2014 \DeclareTextComposite{\"}{T1}{A}{196}
2015 \DeclareTextComposite{\r}{T1}{A}{197}
2016 \DeclareTextComposite{\c}{T1}{C}{199}
2020 \DeclareTextComposite{\`}{T1}{E}{200}
2021 \DeclareTextComposite{\'}{T1}{E}{201}
2022 \DeclareTextComposite{\^}{T1}{E}{202}
2023 \DeclareTextComposite{\"}{T1}{E}{203}
2024 \DeclareTextComposite{\`}{T1}{I}{204}
2025 \DeclareTextComposite{\'}{T1}{I}{205}
2026 \DeclareTextComposite{\^}{T1}{I}{206}
2027 \DeclareTextComposite{\"}{T1}{I}{207}
2031 \DeclareTextComposite{\~}{T1}{N}{209}
2032 \DeclareTextComposite{\`}{T1}{O}{210}
2033 \DeclareTextComposite{\'}{T1}{O}{211}
2034 \DeclareTextComposite{\^}{T1}{O}{212}
2035 \DeclareTextComposite{\~}{T1}{O}{213}
2036 \DeclareTextComposite{\"}{T1}{O}{214}
2040 \DeclareTextComposite{\`}{T1}{U}{217}
2041 \DeclareTextComposite{\'}{T1}{U}{218}
2042 \DeclareTextComposite{\^}{T1}{U}{219}
2043 \DeclareTextComposite{\"}{T1}{U}{220}
2044 \DeclareTextComposite{\'}{T1}{Y}{221}
2048 \DeclareTextComposite{\`}{T1}{a}{224}
2049 \DeclareTextComposite{\'}{T1}{a}{225}
2050 \DeclareTextComposite{\^}{T1}{a}{226}
2051 \DeclareTextComposite{\~}{T1}{a}{227}
2052 \DeclareTextComposite{\"}{T1}{a}{228}
2053 \DeclareTextComposite{\r}{T1}{a}{229}
2054 \DeclareTextComposite{\c}{T1}{c}{231}
2058 \DeclareTextComposite{\`}{T1}{e}{232}
2059 \DeclareTextComposite{\'}{T1}{e}{233}
2060 \DeclareTextComposite{\^}{T1}{e}{234}
2061 \DeclareTextComposite{\"}{T1}{e}{235}
2062 \DeclareTextComposite{\`}{T1}{i}{236}
2063 \DeclareTextComposite{\`}{T1}{\i}{236}
2064 \DeclareTextComposite{\'}{T1}{i}{237}
2065 \DeclareTextComposite{\'}{T1}{\i}{237}
2066 \DeclareTextComposite{\^}{T1}{i}{238}
2067 \DeclareTextComposite{\^}{T1}{\i}{238}
2068 \DeclareTextComposite{\"}{T1}{i}{239}
2069 \DeclareTextComposite{\"}{T1}{\i}{239}
2073 \DeclareTextComposite{\~}{T1}{n}{241}
2074 \DeclareTextComposite{\`}{T1}{o}{242}
2075 \DeclareTextComposite{\'}{T1}{o}{243}
2076 \DeclareTextComposite{\^}{T1}{o}{244}
2077 \DeclareTextComposite{\~}{T1}{o}{245}
2078 \DeclareTextComposite{\"}{T1}{o}{246}
2082 \DeclareTextComposite{\`}{T1}{u}{249}
2083 \DeclareTextComposite{\'}{T1}{u}{250}
2084 \DeclareTextComposite{\^}{T1}{u}{251}
2085 \DeclareTextComposite{\"}{T1}{u}{252}
2086 \DeclareTextComposite{\'}{T1}{y}{253}
2088 % \changes{v1.99b}{2004/01/03}{Added composites for \cs{k} (pr/3532)}
2090 \DeclareTextCompositeCommand{\k}{T1}{o}{\textogonekcentered{o}}
2091 \DeclareTextCompositeCommand{\k}{T1}{O}{\textogonekcentered{O}}
2093 % \changes{v1.99n}{2015/02/16}{Added composites for \c{c}}
2095 \ifx\textcommaabove\@undefined\else
2096 \DeclareTextCompositeCommand{\c}{T1}{g}{\textcommaabove{g}}
2098 \ifx\textcommabelow\@undefined\else
2099 \DeclareTextCompositeCommand{\c}{T1}{G}{\textcommabelow{G}}
2100 \DeclareTextCompositeCommand{\c}{T1}{K}{\textcommabelow{K}}
2101 \DeclareTextCompositeCommand{\c}{T1}{k}{\textcommabelow{k}}
2102 \DeclareTextCompositeCommand{\c}{T1}{L}{\textcommabelow{L}}
2103 \DeclareTextCompositeCommand{\c}{T1}{l}{\textcommabelow{l}}
2104 \DeclareTextCompositeCommand{\c}{T1}{N}{\textcommabelow{N}}
2105 \DeclareTextCompositeCommand{\c}{T1}{n}{\textcommabelow{n}}
2106 \DeclareTextCompositeCommand{\c}{T1}{R}{\textcommabelow{R}}
2107 \DeclareTextCompositeCommand{\c}{T1}{r}{\textcommabelow{r}}
2115 % \changes{1.4a}{1994/05/01}{Removed the uc/lc table settings, since
2116 % the T1 uc/lc table is now the default.}
2118 % \subsection{Definitions for the OMS encoding}
2120 % \changes{v1.6a}{1994/10/25}{Added the OMS encoding.}
2121 % \changes{v1.6b}{1994/10/27}{Renamed \cs{textlbrace} to
2122 % \cs{textbraceleft} and \cs{textrbrace} to \cs{textbraceright}.}
2123 % \changes{v1.6b}{1994/10/27}{Added \cs{textbackslash}.}
2124 % \changes{v1.6d}{1994/10/30}{Added \cs{textcircled}.}
2126 % The definitions for the `\TeX{} math symbol' (OMS) encoding. Even
2127 % though this is meant to be a math font, it includes some of the
2128 % standard \LaTeX{} text symbols.
2130 % Declare the encoding.
2133 \DeclareFontEncoding{OMS}{}{}
2135 % Declare the symbols.
2136 % \changes{v1.7t}{1995/11/29}{Added \cs{textbackslash} and
2138 % \changes{v1.8c}{1996/10/27}
2139 % {Added \cs{textasteriskcentered}}
2140 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
2142 % \changes{v1.95}{2002/06/16}{Added \cs{textbardbl} (pr/3400)}
2143 % \changes{v1.99}{2004/02/02}{Added \cs{textbigcircle}}
2144 % Note that slot 13 has in places been named |\Orb|: please root
2145 % out and destroy this impolity wherever you find it!
2147 \DeclareTextSymbol{\textasteriskcentered}{OMS}{3} % "03
2148 \DeclareTextSymbol{\textbackslash}{OMS}{110} % "6E
2149 \DeclareTextSymbol{\textbar}{OMS}{106} % "6A
2150 \DeclareTextSymbol{\textbardbl}{OMS}{107} % "6B
2151 \DeclareTextSymbol{\textbraceleft}{OMS}{102} % "66
2152 \DeclareTextSymbol{\textbraceright}{OMS}{103} % "67
2153 \DeclareTextSymbol{\textbullet}{OMS}{15} % "0F
2154 \DeclareTextSymbol{\textdaggerdbl}{OMS}{122} % "7A
2155 \DeclareTextSymbol{\textdagger}{OMS}{121} % "79
2156 \DeclareTextSymbol{\textparagraph}{OMS}{123} % "7B
2157 \DeclareTextSymbol{\textperiodcentered}{OMS}{1} % "01
2158 \DeclareTextSymbol{\textsection}{OMS}{120} % "78
2159 \DeclareTextSymbol{\textbigcircle}{OMS}{13} % "0D
2160 \DeclareTextCommand{\textcircled}{OMS}[1]{\hmode@bgroup
2162 \hfil \raise .07ex\hbox {\upshape#1}\hfil \crcr
2169 % \subsection{Definitions for the OML encoding}
2171 % \changes{v1.6d}{1994/10/30}{Added the OML encoding.}
2173 % The definitions for the `\TeX{} math italic' (OML) encoding. Even
2174 % though this is meant to be a math font, it includes some of the
2175 % standard \LaTeX{} text symbols.
2177 % Declare the encoding.
2180 \DeclareFontEncoding{OML}{}{}
2182 % Declare the symbols.
2183 % \changes{v1.7t}{1995/11/29}{Added \cs{textless} and
2184 % \cs{textgreater}.}
2185 % \changes{v1.9h}{1997/12/17}{Changed to decimal codes.}
2186 % \changes{v1.9m}{1998/01/16}{fixed decimal codes. latex/2734}
2188 \DeclareTextSymbol{\textless}{OML}{`\<}
2189 \DeclareTextSymbol{\textgreater}{OML}{`\>}
2190 \DeclareTextAccent{\t}{OML}{127} % "7F
2194 % \subsection{Definitions for the OT4 encoding}
2196 % These definitions are for the Polish extension to the
2197 % `\TeX\ text' (OT1) encoding.
2198 % This encoding was created by B.~Jackowski and M.~Ry\'cko
2199 % for use with the Polish version of Computer Modern and Computer
2200 % Concrete. In positions 0--127 it is identical to OT1 but it
2201 % contains some additional characters in the upper half. The \LaTeX{}
2202 % support was developed by Mariusz Olko.
2204 % The PL fonts that use it are available as follows:\\
2206 % \texttt{ftp://ftp.gust.org.pl/TeX/language/polish/pl-mf.zip};
2209 % \texttt{ftp://ftp.gust.org.pl/TeX/language/polish/pl-tfm.zip}.
2211 % Declare the encoding.
2214 \DeclareFontEncoding{OT4}{}{}
2215 \DeclareFontSubstitution{OT4}{cmr}{m}{n}
2217 % Declare the accents.
2219 \DeclareTextAccent{\"}{OT4}{127}
2220 \DeclareTextAccent{\'}{OT4}{19}
2221 \DeclareTextAccent{\.}{OT4}{95}
2222 \DeclareTextAccent{\=}{OT4}{22}
2223 \DeclareTextAccent{\^}{OT4}{94}
2224 \DeclareTextAccent{\`}{OT4}{18}
2225 \DeclareTextAccent{\~}{OT4}{126}
2226 \DeclareTextAccent{\H}{OT4}{125}
2227 \DeclareTextAccent{\u}{OT4}{21}
2228 \DeclareTextAccent{\v}{OT4}{20}
2229 \DeclareTextAccent{\r}{OT4}{23}
2231 % The ogonek accent is available only under a e A \& E. But we
2232 % have to provide some definition for \cs{k}. Some other accents
2233 % have to be built by hand as in OT1:
2234 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
2237 \DeclareTextCommand{\k}{OT4}[1]{%
2238 \TextSymbolUnavailable{\k{#1}}#1}
2240 % In these definitions we no longer use the helper function |\sh@ft|
2241 % from plain.tex since that now has two incompatible definitions.
2242 % \changes{v1.99g}{2005/09/27}{Replace \cs{sh@ft} by \cs{ltx@sh@ft}}
2244 \DeclareTextCommand{\b}{OT4}[1]
2245 {\hmode@bgroup\o@lign{\relax#1\crcr\hidewidth\ltx@sh@ft{-3ex}%
2246 \vbox to.2ex{\hbox{\char22}\vss}\hidewidth}\egroup}
2247 \DeclareTextCommand{\c}{OT4}[1]
2248 {\leavevmode\setbox\z@\hbox{#1}\ifdim\ht\z@=1ex\accent24 #1%
2249 \else{\ooalign{\unhbox\z@\crcr\hidewidth\char24\hidewidth}}\fi}
2250 \DeclareTextCommand{\d}{OT4}[1]
2252 \o@lign{\relax#1\crcr\hidewidth\ltx@sh@ft{-1ex}.\hidewidth}\egroup}
2254 % Declare the text symbols.
2256 \DeclareTextSymbol{\AE}{OT4}{29}
2257 \DeclareTextSymbol{\OE}{OT4}{30}
2258 \DeclareTextSymbol{\O}{OT4}{31}
2259 \DeclareTextSymbol{\L}{OT4}{138}
2260 \DeclareTextSymbol{\ae}{OT4}{26}
2261 \DeclareTextSymbol{\guillemotleft}{OT4}{174}
2262 \DeclareTextSymbol{\guillemotright}{OT4}{175}
2263 \DeclareTextSymbol{\i}{OT4}{16}
2264 \DeclareTextSymbol{\j}{OT4}{17}
2265 \DeclareTextSymbol{\l}{OT4}{170}
2266 \DeclareTextSymbol{\o}{OT4}{28}
2267 \DeclareTextSymbol{\oe}{OT4}{27}
2268 \DeclareTextSymbol{\quotedblbase}{OT4}{255}
2269 \DeclareTextSymbol{\ss}{OT4}{25}
2270 \DeclareTextSymbol{\textemdash}{OT4}{124}
2271 \DeclareTextSymbol{\textendash}{OT4}{123}
2272 \DeclareTextSymbol{\textexclamdown}{OT4}{60}
2273 %\DeclareTextSymbol{\texthyphenchar}{OT4}{`\-}
2274 %\DeclareTextSymbol{\texthyphen}{OT4}{`\-}
2275 \DeclareTextSymbol{\textquestiondown}{OT4}{62}
2276 \DeclareTextSymbol{\textquotedblleft}{OT4}{92}
2277 \DeclareTextSymbol{\textquotedblright}{OT4}{`\"}
2278 \DeclareTextSymbol{\textquoteleft}{OT4}{`\`}
2279 \DeclareTextSymbol{\textquoteright}{OT4}{`\'}
2281 % Definition for \r A as in OT1:
2282 % \changes{v1.96}{2002/10/28}{%
2283 % coding change, to follow bug fix by DEK in plain.tex (pr/3469)}
2285 \DeclareTextCompositeCommand{\r}{OT4}{A}
2286 {\leavevmode\setbox\z@\hbox{!}\dimen@\ht\z@\advance\dimen@-1ex%
2287 \rlap{\raise.67\dimen@\hbox{\char23}}A}
2289 % In the OT4 encoding, \pounds~and \$ share a slot.
2290 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
2293 \DeclareTextCommand{\textdollar}{OT4}{\hmode@bgroup
2294 \ifdim \fontdimen\@ne\font >\z@
2300 \DeclareTextCommand{\textsterling}{OT4}{\hmode@bgroup
2301 \ifdim \fontdimen\@ne\font >\z@
2304 \fontshape{ui}\selectfont
2308 % Declare the composites.
2310 \DeclareTextComposite{\k}{OT4}{A}{129}
2311 \DeclareTextComposite{\'}{OT4}{C}{130}
2312 \DeclareTextComposite{\k}{OT4}{E}{134}
2313 \DeclareTextComposite{\'}{OT4}{N}{139}
2314 \DeclareTextComposite{\'}{OT4}{S}{145}
2315 \DeclareTextComposite{\'}{OT4}{Z}{153}
2316 \DeclareTextComposite{\.}{OT4}{Z}{155}
2317 \DeclareTextComposite{\k}{OT4}{a}{161}
2318 \DeclareTextComposite{\'}{OT4}{c}{162}
2319 \DeclareTextComposite{\k}{OT4}{e}{166}
2320 \DeclareTextComposite{\'}{OT4}{n}{171}
2321 \DeclareTextComposite{\'}{OT4}{s}{177}
2322 \DeclareTextComposite{\'}{OT4}{z}{185}
2323 \DeclareTextComposite{\.}{OT4}{z}{187}
2324 \DeclareTextComposite{\'}{OT4}{O}{211}
2325 \DeclareTextComposite{\'}{OT4}{o}{243}
2330 % \subsection{Definitions for the TS1 encoding}
2332 % \changes{v1.9c}{1997/05/04}{Added TS1 encoding v2.2.beta}
2333 % \changes{v1.9g}{1997/11/23}
2334 % {Use \cs{textperthousand}, \cs{textpertenthousand} and
2335 % \cs{textfractionsolidus} not
2336 % \cs{textpermill}, \cs{textpertenmill} and \cs{textfraction}.
2338 % \changes{v1.9h}{1997/12/17}
2339 % {Removed default settings, see next section.}
2343 \DeclareFontEncoding{TS1}{}{}
2344 \DeclareFontSubstitution{TS1}{cmr}{m}{n}
2346 % Some accents have to be built by hand.
2347 % Note that |\ooalign| and |\o@lign| must be inside a group.
2348 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
2351 \DeclareTextCommand{\capitalcedilla}{TS1}[1]
2353 \ooalign{\null#1\crcr\hidewidth\char11\hidewidth}\egroup}
2354 \DeclareTextCommand{\capitalogonek}{TS1}[1]
2356 \ooalign{\null#1\crcr\hidewidth\char12\hidewidth}\egroup}
2359 % Accents for capital letters.
2361 % These commands can be used by the end user either directly or through
2362 % definitions of the type
2364 % \DeclareTextCompositeCommand{\'}{T1}{X}{\capitalacute X}
2366 % None of the latter definitions are provided by default, since they
2367 % are probably rarely used.
2371 \DeclareTextAccent{\capitalgrave}{TS1}{0}
2372 \DeclareTextAccent{\capitalacute}{TS1}{1}
2373 \DeclareTextAccent{\capitalcircumflex}{TS1}{2}
2374 \DeclareTextAccent{\capitaltilde}{TS1}{3}
2375 \DeclareTextAccent{\capitaldieresis}{TS1}{4}
2376 \DeclareTextAccent{\capitalhungarumlaut}{TS1}{5}
2377 \DeclareTextAccent{\capitalring}{TS1}{6}
2378 \DeclareTextAccent{\capitalcaron}{TS1}{7}
2382 \DeclareTextAccent{\capitalbreve}{TS1}{8}
2383 \DeclareTextAccent{\capitalmacron}{TS1}{9}
2384 \DeclareTextAccent{\capitaldotaccent}{TS1}{10}
2388 % The tie accent was borrowed from the |cmmi| font. The tc fonts
2389 % now provide four tie accents, the first two are done in the
2390 % classical way with assymetric glyphs hanging out of their boxes;
2391 % the new ties are centered in their boxes like all other accents.
2392 % They need a name: please tell us if you know what to call them.
2396 \DeclareTextAccent{\t}{TS1}{26}
2397 \DeclareTextAccent{\capitaltie}{TS1}{27}
2398 \DeclareTextAccent{\newtie}{TS1}{28}
2399 \DeclareTextAccent{\capitalnewtie}{TS1}{29}
2402 % Compund word marks.
2404 % The text companion fonts contain two compound word marks of
2405 % different heights, one has |cap_height|, the other |asc_height|.
2408 \DeclareTextSymbol{\textcapitalcompwordmark}{TS1}{23}
2409 \DeclareTextSymbol{\textascendercompwordmark}{TS1}{31}
2412 % The text companion symbols.
2415 \DeclareTextSymbol{\textquotestraightbase}{TS1}{13}
2419 \DeclareTextSymbol{\textquotestraightdblbase}{TS1}{18}
2420 \DeclareTextSymbol{\texttwelveudash}{TS1}{21}
2421 \DeclareTextSymbol{\textthreequartersemdash}{TS1}{22}
2425 \DeclareTextSymbol{\textleftarrow}{TS1}{24}
2426 \DeclareTextSymbol{\textrightarrow}{TS1}{25}
2430 \DeclareTextSymbol{\textblank}{TS1}{32}
2431 \DeclareTextSymbol{\textdollar}{TS1}{36}
2432 \DeclareTextSymbol{\textquotesingle}{TS1}{39}
2436 \DeclareTextSymbol{\textasteriskcentered}{TS1}{42}
2438 % Note that '054 is a comma and '056 is a full stop: these make
2439 % numbers using oldstyle digits easier to input.
2441 \DeclareTextSymbol{\textdblhyphen}{TS1}{45}
2442 \DeclareTextSymbol{\textfractionsolidus}{TS1}{47}
2449 \DeclareTextSymbol{\textzerooldstyle}{TS1}{48}
2450 \DeclareTextSymbol{\textoneoldstyle}{TS1}{49}
2451 \DeclareTextSymbol{\texttwooldstyle}{TS1}{50}
2452 \DeclareTextSymbol{\textthreeoldstyle}{TS1}{51}
2453 \DeclareTextSymbol{\textfouroldstyle}{TS1}{52}
2454 \DeclareTextSymbol{\textfiveoldstyle}{TS1}{53}
2455 \DeclareTextSymbol{\textsixoldstyle}{TS1}{54}
2456 \DeclareTextSymbol{\textsevenoldstyle}{TS1}{55}
2460 \DeclareTextSymbol{\texteightoldstyle}{TS1}{56}
2461 \DeclareTextSymbol{\textnineoldstyle}{TS1}{57}
2464 % More text companion symbols.
2467 \DeclareTextSymbol{\textlangle}{TS1}{60}
2468 \DeclareTextSymbol{\textminus}{TS1}{61}
2469 \DeclareTextSymbol{\textrangle}{TS1}{62}
2473 \DeclareTextSymbol{\textmho}{TS1}{77}
2476 % \changes{v1.9r}{1999/01/06}{Minor documentation fix.}
2477 % The big circle is here to define the command \cs{textcircled}.
2478 % Formerly it was taken from the |cmsy| font.
2479 % \changes{v1.9h}{1997/12/17}{Changed to decimal codes in \cs{ooalign}.}
2480 % \changes{v1.9k}{1998/01/12}{Adding missing braces and \cs{ushape}.}
2481 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
2484 \DeclareTextSymbol{\textbigcircle}{TS1}{79}
2485 \DeclareTextCommand{\textcircled}{TS1}[1]{\hmode@bgroup
2487 \hfil \raise .07ex\hbox {\upshape#1}\hfil \crcr
2488 \char 79 % '117 = "4F
2493 % More text companion symbols.
2497 \DeclareTextSymbol{\textohm}{TS1}{87}
2501 \DeclareTextSymbol{\textlbrackdbl}{TS1}{91}
2502 \DeclareTextSymbol{\textrbrackdbl}{TS1}{93}
2503 \DeclareTextSymbol{\textuparrow}{TS1}{94}
2504 \DeclareTextSymbol{\textdownarrow}{TS1}{95}
2508 \DeclareTextSymbol{\textasciigrave}{TS1}{96}
2509 \DeclareTextSymbol{\textborn}{TS1}{98}
2510 \DeclareTextSymbol{\textdivorced}{TS1}{99}
2511 \DeclareTextSymbol{\textdied}{TS1}{100}
2515 \DeclareTextSymbol{\textleaf}{TS1}{108}
2516 \DeclareTextSymbol{\textmarried}{TS1}{109}
2517 \DeclareTextSymbol{\textmusicalnote}{TS1}{110}
2521 \DeclareTextSymbol{\texttildelow}{TS1}{126}
2524 % This glyph, |\textdblhyphenchar| is hanging, like the hyphenchar of
2528 \DeclareTextSymbol{\textdblhyphenchar}{TS1}{127}
2532 \DeclareTextSymbol{\textasciibreve}{TS1}{128}
2533 \DeclareTextSymbol{\textasciicaron}{TS1}{129}
2536 % This next glyph is \emph{not} the same as |\textquotedbl|.
2538 % \changes{v1.9p}{1998/06/12}{Corrected 130 and 131, see pr/2834}
2540 \DeclareTextSymbol{\textacutedbl}{TS1}{130}
2541 \DeclareTextSymbol{\textgravedbl}{TS1}{131}
2542 \DeclareTextSymbol{\textdagger}{TS1}{132}
2543 \DeclareTextSymbol{\textdaggerdbl}{TS1}{133}
2544 \DeclareTextSymbol{\textbardbl}{TS1}{134}
2545 \DeclareTextSymbol{\textperthousand}{TS1}{135}
2549 \DeclareTextSymbol{\textbullet}{TS1}{136}
2550 \DeclareTextSymbol{\textcelsius}{TS1}{137}
2551 \DeclareTextSymbol{\textdollaroldstyle}{TS1}{138}
2552 \DeclareTextSymbol{\textcentoldstyle}{TS1}{139}
2553 \DeclareTextSymbol{\textflorin}{TS1}{140}
2554 \DeclareTextSymbol{\textcolonmonetary}{TS1}{141}
2555 \DeclareTextSymbol{\textwon}{TS1}{142}
2556 \DeclareTextSymbol{\textnaira}{TS1}{143}
2560 \DeclareTextSymbol{\textguarani}{TS1}{144}
2561 \DeclareTextSymbol{\textpeso}{TS1}{145}
2562 \DeclareTextSymbol{\textlira}{TS1}{146}
2563 \DeclareTextSymbol{\textrecipe}{TS1}{147}
2564 \DeclareTextSymbol{\textinterrobang}{TS1}{148}
2565 \DeclareTextSymbol{\textinterrobangdown}{TS1}{149}
2566 \DeclareTextSymbol{\textdong}{TS1}{150}
2567 \DeclareTextSymbol{\texttrademark}{TS1}{151}
2571 \DeclareTextSymbol{\textpertenthousand}{TS1}{152}
2572 \DeclareTextSymbol{\textpilcrow}{TS1}{153}
2573 \DeclareTextSymbol{\textbaht}{TS1}{154}
2574 \DeclareTextSymbol{\textnumero}{TS1}{155}
2576 % This next name may change.
2577 % For the following sign we know only a german name, which is
2578 % abz\"uglich. The meaning is something like ``commercial minus''.
2579 % An ASCII ersatz is ./. (dot slash dot).
2580 % The temporary English name is |\textdiscount|.
2582 \DeclareTextSymbol{\textdiscount}{TS1}{156}
2583 \DeclareTextSymbol{\textestimated}{TS1}{157}
2584 \DeclareTextSymbol{\textopenbullet}{TS1}{158}
2585 \DeclareTextSymbol{\textservicemark}{TS1}{159}
2589 \DeclareTextSymbol{\textlquill}{TS1}{160}
2590 \DeclareTextSymbol{\textrquill}{TS1}{161}
2591 \DeclareTextSymbol{\textcent}{TS1}{162}
2592 \DeclareTextSymbol{\textsterling}{TS1}{163}
2593 \DeclareTextSymbol{\textcurrency}{TS1}{164}
2594 \DeclareTextSymbol{\textyen}{TS1}{165}
2595 \DeclareTextSymbol{\textbrokenbar}{TS1}{166}
2596 \DeclareTextSymbol{\textsection}{TS1}{167}
2600 \DeclareTextSymbol{\textasciidieresis}{TS1}{168}
2601 \DeclareTextSymbol{\textcopyright}{TS1}{169}
2602 \DeclareTextSymbol{\textordfeminine}{TS1}{170}
2603 \DeclareTextSymbol{\textcopyleft}{TS1}{171}
2604 \DeclareTextSymbol{\textlnot}{TS1}{172}
2607 % The meaning of the circled-P is ``sound recording copyright''.
2609 % \changes{v1.9p}{1998/06/12}{Renamed \cs{textmacron} pr/2840}
2611 \DeclareTextSymbol{\textcircledP}{TS1}{173}
2612 \DeclareTextSymbol{\textregistered}{TS1}{174}
2613 \DeclareTextSymbol{\textasciimacron}{TS1}{175}
2617 \DeclareTextSymbol{\textdegree}{TS1}{176}
2618 \DeclareTextSymbol{\textpm}{TS1}{177}
2619 \DeclareTextSymbol{\texttwosuperior}{TS1}{178}
2620 \DeclareTextSymbol{\textthreesuperior}{TS1}{179}
2621 \DeclareTextSymbol{\textasciiacute}{TS1}{180}
2622 \DeclareTextSymbol{\textmu}{TS1}{181} % micro sign
2623 \DeclareTextSymbol{\textparagraph}{TS1}{182}
2624 \DeclareTextSymbol{\textperiodcentered}{TS1}{183}
2628 \DeclareTextSymbol{\textreferencemark}{TS1}{184}
2629 \DeclareTextSymbol{\textonesuperior}{TS1}{185}
2630 \DeclareTextSymbol{\textordmasculine}{TS1}{186}
2631 \DeclareTextSymbol{\textsurd}{TS1}{187}
2632 \DeclareTextSymbol{\textonequarter}{TS1}{188}
2633 \DeclareTextSymbol{\textonehalf}{TS1}{189}
2634 \DeclareTextSymbol{\textthreequarters}{TS1}{190}
2635 \DeclareTextSymbol{\texteuro}{TS1}{191}
2639 \DeclareTextSymbol{\texttimes}{TS1}{214}
2643 \DeclareTextSymbol{\textdiv}{TS1}{246}
2647 % \subsection{Definitions for the TU encoding}
2649 % \changes{v2.0a}{2016/12/04}{Added TU encoding}
2650 % \changes{v2.0b}{2017/01/23}{Added TU specific commands in ASCII range pr/4500}
2651 % \changes{v2.0c}{2017/01/24}{TeX ligature syntax for xetex and luatex reversed}
2652 % \changes{v2.0c}{2017/01/24}{Make \cs{textasteriskcentered} U+2217 not U+204E}
2653 % \changes{v2.0c}{2017/01/24}{Declare TU composites for i and j}
2654 % \changes{v2.0d}{2017/01/24}{Declare macron composites for YyGg}
2655 % \changes{v2.0e}{2017/02/12}{Declare fallback code for \cs{textasteriskcentered}}
2656 % \changes{v2.0f}{2017/02/19}{%
2657 % declare composites with empty base for hat and tilde,
2658 % use same slots for \cs{textasciicircum} ans \cs{textasciitilde}}
2659 % \changes{v2.0f}{2017/02/19}{%
2660 % declare straight quotes using new \cs{remove@tlig} command}
2661 % \changes{v2.0g}{2017/02/22}{Fix typo introduced at 2.0f}
2662 % \changes{v2.0h}{2017/02/24}{introduce \cs{DeclareUnicodeAccent}}%
2663 % The TU encoding was originally introduced in the contributed
2664 % package \texttt{fontspec} as a Unicode encoding for XeTeX and
2667 % Normally for these engines, the input consists of Unicode characters
2668 % encoded in UTF-8. There is therefore little need to use the
2669 % traditional (ASCII) encoding-specific commands
2671 % However, sometimes (e.g. for backwards compatibility) it can be
2672 % useful to access these Unicode characters via such ASCII-based
2673 % markup. The commands provided here
2674 % Cover the characters in the T1 and TS1 encodings, but specified in
2675 % Unicode position. Almost all the command names have been
2676 % mechanically extracted form the \texttt{inputenc} UTF-8 support,
2677 % which is essentially doing a reverse mapping from UTF-8 data to
2678 % \LaTeX\ LICR commands.
2680 % A few additional names for character which were supported in the
2681 % original \texttt{fontspec} version of this file have also been
2682 % added, even though they are not currently in the default
2683 % \texttt{inputenc} UTF-8 declarations.
2688 % In the base interface the Unicode encoding is always known as TU
2689 % But we parameterise the encoding name to allow for modelling
2690 % differences in Unicode support by different fonts.
2692 \providecommand\UnicodeEncodingName{TU}
2694 % As the Unicode encoding, TU, is only currently available with XeTeX
2695 % or LuaTeX, we detect these engines first, and make adjustments for the
2696 % differing font loading syntax. For other engines, we issue a warning
2697 % then abort this file, switching back to T1 encoding.
2699 \begingroup\expandafter\expandafter\expandafter\endgroup
2700 \expandafter\ifx\csname XeTeXrevision\endcsname\relax
2704 \begingroup\expandafter\expandafter\expandafter\endgroup
2705 \expandafter\ifx\csname directlua\endcsname\relax
2708 % Not LuaTeX or XeTeX, abort with a warning.
2710 \PackageWarningNoLine{fontenc}
2711 {\UnicodeEncodingName\space
2712 encoding is only available with XeTeX and LuaTeX.\MessageBreak
2713 Defaulting to T1 encoding}
2714 \def\encodingdefault{T1}
2715 \expandafter\expandafter\expandafter\endinput
2724 \def\UnicodeFontTeXLigatures{+tlig;}
2729 \def\@remove@tlig##1{\@remove@tlig@##1\@nil#1\@nil\relax}
2730 \def\@remove@tlig@##1#1{\@remove@tlig@@##1}}
2731 \edef\reserved@b{\detokenize{+tlig;}}
2732 \expandafter\reserved@a\expandafter{\reserved@b}
2733 \def\@remove@tlig@@#1\@nil#2\relax{#1}
2737 \def\remove@tlig#1{%
2740 \expandafter\@remove@tlig\expandafter{\fontname\font}%
2754 \def\UnicodeFontTeXLigatures{mapping=tex-text;}
2758 \def\remove@tlig#1{\XeTeXglyph\numexpr\XeTeXcharglyph#1\relax}
2766 \def\UnicodeFontFile#1#2{"[#1]:#2"}
2767 \def\UnicodeFontName#1#2{"#1:#2"}
2770 % Declare the encoding
2772 \DeclareFontEncoding\UnicodeEncodingName{}{}
2775 % Declare accent command to use a postpended combining character
2776 % rather than the TeX |\accent| primitive
2778 \def\add@unicode@accent#1#2{%
2779 \if\relax\detokenize{#2}\relax^^a0\else#2\fi
2784 \def\DeclareUnicodeAccent#1#2#3{%
2785 \DeclareTextCommand{#1}{#2}{\add@unicode@accent{#3}}%
2789 % Wrapper around |\DeclareTextCompositeCommand| that uses the declared
2790 % composite if it exists in the current font or fals back to the default
2791 % definition for the TU accent if not.
2794 \catcode\z@=11\relax
2795 \gdef\DeclareUnicodeComposite#1#2#3{%
2796 \def\reserved@a##1##2{%
2797 \DeclareTextCompositeCommand#1\UnicodeEncodingName{#2}{%
2798 \iffontchar\font#3 ##2%
2800 \expandafter\expandafter\expandafter\extract@default@composite
2801 \csname\UnicodeEncodingName\string#1\endcsname{#2}\@nil
2805 \expandafter\reserved@a\expandafter{\reserved@b}{^^@}}}%
2810 \def\extract@default@composite#1{%
2811 \ifx\@text@composite#1%
2812 \expandafter\extract@default@composite@a
2814 \expandafter\extract@default@composite@b\expandafter#1%
2819 \def\extract@default@composite@a#1\@text@composite#2\@nil{%
2820 \def\reserved@b{#2}}
2821 \def\extract@default@composite@b#1#2\@nil{%
2822 \def\reserved@b{#1#2}}
2826 \DeclareTextCommand\textquotesingle \UnicodeEncodingName{%
2827 \remove@tlig{"0027}}
2828 \DeclareTextCommand\textasciigrave \UnicodeEncodingName{%
2829 \remove@tlig{"0060}}
2830 \DeclareTextCommand\textquotedbl \UnicodeEncodingName{%
2831 \remove@tlig{"0022}}
2835 \DeclareTextSymbol{\textdollar} \UnicodeEncodingName{"0024}
2836 \DeclareTextSymbol{\textless} \UnicodeEncodingName{"003C}
2837 \DeclareTextSymbol{\textgreater} \UnicodeEncodingName{"003E}
2838 \DeclareTextSymbol{\textbackslash} \UnicodeEncodingName{"005C}
2839 \DeclareTextSymbol{\textasciicircum} \UnicodeEncodingName{"005E}
2840 \DeclareTextSymbol{\textunderscore} \UnicodeEncodingName{"005F}
2841 \DeclareTextSymbol{\textbraceleft} \UnicodeEncodingName{"007B}
2842 \DeclareTextSymbol{\textbar} \UnicodeEncodingName{"007C}
2843 \DeclareTextSymbol{\textbraceright} \UnicodeEncodingName{"007D}
2844 \DeclareTextSymbol{\textasciitilde} \UnicodeEncodingName{"007E}
2845 \DeclareTextSymbol{\textexclamdown} \UnicodeEncodingName{"00A1}
2846 \DeclareTextSymbol{\textcent} \UnicodeEncodingName{"00A2}
2847 \DeclareTextSymbol{\textsterling} \UnicodeEncodingName{"00A3}
2848 \DeclareTextSymbol{\textcurrency} \UnicodeEncodingName{"00A4}
2849 \DeclareTextSymbol{\textyen} \UnicodeEncodingName{"00A5}
2850 \DeclareTextSymbol{\textbrokenbar} \UnicodeEncodingName{"00A6}
2851 \DeclareTextSymbol{\textsection} \UnicodeEncodingName{"00A7}
2852 \DeclareTextSymbol{\textasciidieresis} \UnicodeEncodingName{"00A8}
2853 \DeclareTextSymbol{\textcopyright} \UnicodeEncodingName{"00A9}
2854 \DeclareTextSymbol{\textordfeminine} \UnicodeEncodingName{"00AA}
2855 \DeclareTextSymbol{\guillemotleft} \UnicodeEncodingName{"00AB}
2856 \DeclareTextSymbol{\textlnot} \UnicodeEncodingName{"00AC}
2857 \DeclareTextSymbol{\textregistered} \UnicodeEncodingName{"00AE}
2858 \DeclareTextSymbol{\textasciimacron} \UnicodeEncodingName{"00AF}
2859 \DeclareTextSymbol{\textdegree} \UnicodeEncodingName{"00B0}
2860 \DeclareTextSymbol{\textpm} \UnicodeEncodingName{"00B1}
2861 \DeclareTextSymbol{\texttwosuperior} \UnicodeEncodingName{"00B2}
2862 \DeclareTextSymbol{\textthreesuperior} \UnicodeEncodingName{"00B3}
2863 \DeclareTextSymbol{\textasciiacute} \UnicodeEncodingName{"00B4}
2864 \DeclareTextSymbol{\textmu} \UnicodeEncodingName{"00B5}
2865 \DeclareTextSymbol{\textparagraph} \UnicodeEncodingName{"00B6}
2866 \DeclareTextSymbol{\textperiodcentered} \UnicodeEncodingName{"00B7}
2867 \DeclareTextSymbol{\textonesuperior} \UnicodeEncodingName{"00B9}
2868 \DeclareTextSymbol{\textordmasculine} \UnicodeEncodingName{"00BA}
2869 \DeclareTextSymbol{\guillemotright} \UnicodeEncodingName{"00BB}
2870 \DeclareTextSymbol{\textonequarter} \UnicodeEncodingName{"00BC}
2871 \DeclareTextSymbol{\textonehalf} \UnicodeEncodingName{"00BD}
2872 \DeclareTextSymbol{\textthreequarters} \UnicodeEncodingName{"00BE}
2873 \DeclareTextSymbol{\textquestiondown} \UnicodeEncodingName{"00BF}
2874 \DeclareTextSymbol{\AE} \UnicodeEncodingName{"00C6}
2875 \DeclareTextSymbol{\DH} \UnicodeEncodingName{"00D0}
2876 \DeclareTextSymbol{\texttimes} \UnicodeEncodingName{"00D7}
2877 \DeclareTextSymbol{\O} \UnicodeEncodingName{"00D8}
2878 \DeclareTextSymbol{\TH} \UnicodeEncodingName{"00DE}
2879 \DeclareTextSymbol{\ss} \UnicodeEncodingName{"00DF}
2880 \DeclareTextSymbol{\ae} \UnicodeEncodingName{"00E6}
2881 \DeclareTextSymbol{\dh} \UnicodeEncodingName{"00F0}
2882 \DeclareTextSymbol{\textdiv} \UnicodeEncodingName{"00F7}
2883 \DeclareTextSymbol{\o} \UnicodeEncodingName{"00F8}
2884 \DeclareTextSymbol{\th} \UnicodeEncodingName{"00FE}
2885 \DeclareTextSymbol{\DJ} \UnicodeEncodingName{"0110}
2886 \DeclareTextSymbol{\dj} \UnicodeEncodingName{"0111}
2887 \DeclareTextSymbol{\i} \UnicodeEncodingName{"0131}
2888 \DeclareTextSymbol{\IJ} \UnicodeEncodingName{"0132}
2889 \DeclareTextSymbol{\ij} \UnicodeEncodingName{"0133}
2890 \DeclareTextSymbol{\L} \UnicodeEncodingName{"0141}
2891 \DeclareTextSymbol{\l} \UnicodeEncodingName{"0142}
2892 \DeclareTextSymbol{\NG} \UnicodeEncodingName{"014A}
2893 \DeclareTextSymbol{\ng} \UnicodeEncodingName{"014B}
2894 \DeclareTextSymbol{\OE} \UnicodeEncodingName{"0152}
2895 \DeclareTextSymbol{\oe} \UnicodeEncodingName{"0153}
2896 \DeclareTextSymbol{\textflorin} \UnicodeEncodingName{"0192}
2897 \DeclareTextSymbol{\j} \UnicodeEncodingName{"0237}
2898 \DeclareTextSymbol{\textasciicaron} \UnicodeEncodingName{"02C7}
2899 \DeclareTextSymbol{\textasciibreve} \UnicodeEncodingName{"02D8}
2900 \DeclareTextSymbol{\textacutedbl} \UnicodeEncodingName{"02DD}
2901 \DeclareTextSymbol{\textgravedbl} \UnicodeEncodingName{"02F5}
2902 \DeclareTextSymbol{\texttildelow} \UnicodeEncodingName{"02F7}
2903 \DeclareTextSymbol{\textbaht} \UnicodeEncodingName{"0E3F}
2904 \DeclareTextSymbol{\SS} \UnicodeEncodingName{"1E9E}
2905 \DeclareTextSymbol{\textcompwordmark} \UnicodeEncodingName{"200C}
2906 \DeclareTextSymbol{\textendash} \UnicodeEncodingName{"2013}
2907 \DeclareTextSymbol{\textemdash} \UnicodeEncodingName{"2014}
2908 \DeclareTextSymbol{\textbardbl} \UnicodeEncodingName{"2016}
2909 \DeclareTextSymbol{\textquoteleft} \UnicodeEncodingName{"2018}
2910 \DeclareTextSymbol{\textquoteright} \UnicodeEncodingName{"2019}
2911 \DeclareTextSymbol{\quotesinglbase} \UnicodeEncodingName{"201A}
2912 \DeclareTextSymbol{\textquotedblleft} \UnicodeEncodingName{"201C}
2913 \DeclareTextSymbol{\textquotedblright} \UnicodeEncodingName{"201D}
2914 \DeclareTextSymbol{\quotedblbase} \UnicodeEncodingName{"201E}
2915 \DeclareTextSymbol{\textdagger} \UnicodeEncodingName{"2020}
2916 \DeclareTextSymbol{\textdaggerdbl} \UnicodeEncodingName{"2021}
2917 \DeclareTextSymbol{\textbullet} \UnicodeEncodingName{"2022}
2918 \DeclareTextSymbol{\textellipsis} \UnicodeEncodingName{"2026}
2919 \DeclareTextSymbol{\textperthousand} \UnicodeEncodingName{"2030}
2920 \DeclareTextSymbol{\textpertenthousand} \UnicodeEncodingName{"2031}
2921 \DeclareTextSymbol{\guilsinglleft} \UnicodeEncodingName{"2039}
2922 \DeclareTextSymbol{\guilsinglright} \UnicodeEncodingName{"203A}
2923 \DeclareTextSymbol{\textreferencemark} \UnicodeEncodingName{"203B}
2924 \DeclareTextSymbol{\textinterrobang} \UnicodeEncodingName{"203D}
2925 \DeclareTextSymbol{\textfractionsolidus} \UnicodeEncodingName{"2044}
2926 \DeclareTextSymbol{\textlquill} \UnicodeEncodingName{"2045}
2927 \DeclareTextSymbol{\textrquill} \UnicodeEncodingName{"2046}
2928 \DeclareTextSymbol{\textdiscount} \UnicodeEncodingName{"2052}
2929 \DeclareTextSymbol{\textcolonmonetary} \UnicodeEncodingName{"20A1}
2930 \DeclareTextSymbol{\textlira} \UnicodeEncodingName{"20A4}
2931 \DeclareTextSymbol{\textnaira} \UnicodeEncodingName{"20A6}
2932 \DeclareTextSymbol{\textwon} \UnicodeEncodingName{"20A9}
2933 \DeclareTextSymbol{\textdong} \UnicodeEncodingName{"20AB}
2934 \DeclareTextSymbol{\texteuro} \UnicodeEncodingName{"20AC}
2935 \DeclareTextSymbol{\textpeso} \UnicodeEncodingName{"20B1}
2936 \DeclareTextSymbol{\textcelsius} \UnicodeEncodingName{"2103}
2937 \DeclareTextSymbol{\textnumero} \UnicodeEncodingName{"2116}
2938 \DeclareTextSymbol{\textcircledP} \UnicodeEncodingName{"2117}
2939 \DeclareTextSymbol{\textrecipe} \UnicodeEncodingName{"211E}
2940 \DeclareTextSymbol{\textservicemark} \UnicodeEncodingName{"2120}
2941 \DeclareTextSymbol{\texttrademark} \UnicodeEncodingName{"2122}
2942 \DeclareTextSymbol{\textohm} \UnicodeEncodingName{"2126}
2943 \DeclareTextSymbol{\textmho} \UnicodeEncodingName{"2127}
2944 \DeclareTextSymbol{\textestimated} \UnicodeEncodingName{"212E}
2945 \DeclareTextSymbol{\textleftarrow} \UnicodeEncodingName{"2190}
2946 \DeclareTextSymbol{\textuparrow} \UnicodeEncodingName{"2191}
2947 \DeclareTextSymbol{\textrightarrow} \UnicodeEncodingName{"2192}
2948 \DeclareTextSymbol{\textdownarrow} \UnicodeEncodingName{"2193}
2949 \DeclareTextSymbol{\textminus} \UnicodeEncodingName{"2212}
2951 % Not all fonts have U+2217 but using U+002A requires some adjustment.
2953 \DeclareTextCommand{\textasteriskcentered}\UnicodeEncodingName{%
2954 \iffontchar\font"2217 \char"2217 \else
2957 {\the\dimexpr1.2\dimexpr\f@size pt\relax}%
2960 \raisebox{-0.6ex}[\dimexpr\height-0.6ex][0pt]{*}%
2966 \DeclareTextSymbol{\textsurd} \UnicodeEncodingName{"221A}
2967 \DeclareTextSymbol{\textlangle} \UnicodeEncodingName{"2329}
2968 \DeclareTextSymbol{\textrangle} \UnicodeEncodingName{"232A}
2969 \DeclareTextSymbol{\textblank} \UnicodeEncodingName{"2422}
2970 \DeclareTextSymbol{\textvisiblespace} \UnicodeEncodingName{"2423}
2971 \DeclareTextSymbol{\textopenbullet} \UnicodeEncodingName{"25E6}
2972 \DeclareTextSymbol{\textbigcircle} \UnicodeEncodingName{"25EF}
2973 \DeclareTextSymbol{\textmusicalnote} \UnicodeEncodingName{"266A}
2974 \DeclareTextSymbol{\textmarried} \UnicodeEncodingName{"26AD}
2975 \DeclareTextSymbol{\textdivorced} \UnicodeEncodingName{"26AE}
2976 \DeclareTextSymbol{\textinterrobangdown} \UnicodeEncodingName{"2E18}
2978 % Accents must be declared before the composites that use them.
2980 \DeclareUnicodeAccent{\`} \UnicodeEncodingName{"0300}
2981 \DeclareUnicodeAccent{\'} \UnicodeEncodingName{"0301}
2982 \DeclareUnicodeAccent{\^} \UnicodeEncodingName{"0302}
2983 \DeclareUnicodeAccent{\~} \UnicodeEncodingName{"0303}
2984 \DeclareUnicodeAccent{\=} \UnicodeEncodingName{"0304}
2985 \DeclareUnicodeAccent{\u} \UnicodeEncodingName{"0306}
2986 \DeclareUnicodeAccent{\.} \UnicodeEncodingName{"0307}
2987 \DeclareUnicodeAccent{\"} \UnicodeEncodingName{"0308}
2988 \DeclareUnicodeAccent{\r} \UnicodeEncodingName{"030A}
2989 \DeclareUnicodeAccent{\H} \UnicodeEncodingName{"030B}
2990 \DeclareUnicodeAccent{\v} \UnicodeEncodingName{"030C}
2991 \DeclareUnicodeAccent{\b} \UnicodeEncodingName{"0332}
2992 \DeclareUnicodeAccent{\d} \UnicodeEncodingName{"0323}
2993 \DeclareUnicodeAccent{\c} \UnicodeEncodingName{"0327}
2994 \DeclareUnicodeAccent{\k} \UnicodeEncodingName{"0328}
2995 \DeclareTextCommand\textcommabelow \UnicodeEncodingName[1]
2996 {\hmode@bgroup\ooalign{\null#1\crcr\hidewidth\raise-.31ex
2997 \hbox{\check@mathfonts\fontsize\ssf@size\z@
2998 \math@fontsfalse\selectfont,}\hidewidth}\egroup}
3002 \DeclareUnicodeComposite{\^} {}{"005E}
3003 \DeclareUnicodeComposite{\~} {}{"007E}
3007 \DeclareUnicodeComposite{\`} {A}{"00C0}
3008 \DeclareUnicodeComposite{\'} {A}{"00C1}
3009 \DeclareUnicodeComposite{\^} {A}{"00C2}
3010 \DeclareUnicodeComposite{\~} {A}{"00C3}
3011 \DeclareUnicodeComposite{\"} {A}{"00C4}
3012 \DeclareUnicodeComposite{\r} {A}{"00C5}
3013 \DeclareUnicodeComposite{\c} {C}{"00C7}
3014 \DeclareUnicodeComposite{\`} {E}{"00C8}
3015 \DeclareUnicodeComposite{\'} {E}{"00C9}
3016 \DeclareUnicodeComposite{\^} {E}{"00CA}
3017 \DeclareUnicodeComposite{\"} {E}{"00CB}
3018 \DeclareUnicodeComposite{\`} {I}{"00CC}
3019 \DeclareUnicodeComposite{\'} {I}{"00CD}
3020 \DeclareUnicodeComposite{\^} {I}{"00CE}
3021 \DeclareUnicodeComposite{\"} {I}{"00CF}
3022 \DeclareUnicodeComposite{\~} {N}{"00D1}
3023 \DeclareUnicodeComposite{\`} {O}{"00D2}
3024 \DeclareUnicodeComposite{\'} {O}{"00D3}
3025 \DeclareUnicodeComposite{\^} {O}{"00D4}
3026 \DeclareUnicodeComposite{\~} {O}{"00D5}
3027 \DeclareUnicodeComposite{\"} {O}{"00D6}
3028 \DeclareUnicodeComposite{\`} {U}{"00D9}
3029 \DeclareUnicodeComposite{\'} {U}{"00DA}
3030 \DeclareUnicodeComposite{\^} {U}{"00DB}
3031 \DeclareUnicodeComposite{\"} {U}{"00DC}
3032 \DeclareUnicodeComposite{\'} {Y}{"00DD}
3033 \DeclareUnicodeComposite{\`} {a}{"00E0}
3034 \DeclareUnicodeComposite{\'} {a}{"00E1}
3035 \DeclareUnicodeComposite{\^} {a}{"00E2}
3036 \DeclareUnicodeComposite{\~} {a}{"00E3}
3037 \DeclareUnicodeComposite{\"} {a}{"00E4}
3038 \DeclareUnicodeComposite{\r} {a}{"00E5}
3039 \DeclareUnicodeComposite{\c} {c}{"00E7}
3040 \DeclareUnicodeComposite{\`} {e}{"00E8}
3041 \DeclareUnicodeComposite{\'} {e}{"00E9}
3042 \DeclareUnicodeComposite{\^} {e}{"00EA}
3043 \DeclareUnicodeComposite{\"} {e}{"00EB}
3044 \DeclareUnicodeComposite{\`} \i {"00EC}
3045 \DeclareUnicodeComposite{\`} {i}{"00EC}
3046 \DeclareUnicodeComposite{\'} \i {"00ED}
3047 \DeclareUnicodeComposite{\'} {i}{"00ED}
3048 \DeclareUnicodeComposite{\^} \i {"00EE}
3049 \DeclareUnicodeComposite{\^} {i}{"00EE}
3050 \DeclareUnicodeComposite{\"} \i {"00EF}
3051 \DeclareUnicodeComposite{\"} {i}{"00EF}
3052 \DeclareUnicodeComposite{\~} {n}{"00F1}
3053 \DeclareUnicodeComposite{\`} {o}{"00F2}
3054 \DeclareUnicodeComposite{\'} {o}{"00F3}
3055 \DeclareUnicodeComposite{\^} {o}{"00F4}
3056 \DeclareUnicodeComposite{\~} {o}{"00F5}
3057 \DeclareUnicodeComposite{\"} {o}{"00F6}
3058 \DeclareUnicodeComposite{\`} {u}{"00F9}
3059 \DeclareUnicodeComposite{\'} {u}{"00FA}
3060 \DeclareUnicodeComposite{\^} {u}{"00FB}
3061 \DeclareUnicodeComposite{\"} {u}{"00FC}
3062 \DeclareUnicodeComposite{\'} {y}{"00FD}
3063 \DeclareUnicodeComposite{\"} {y}{"00FF}
3064 \DeclareUnicodeComposite{\=} {A}{"0100}
3065 \DeclareUnicodeComposite{\=} {a}{"0101}
3066 \DeclareUnicodeComposite{\u} {A}{"0102}
3067 \DeclareUnicodeComposite{\u} {a}{"0103}
3068 \DeclareUnicodeComposite{\k} {A}{"0104}
3069 \DeclareUnicodeComposite{\k} {a}{"0105}
3070 \DeclareUnicodeComposite{\'} {C}{"0106}
3071 \DeclareUnicodeComposite{\'} {c}{"0107}
3072 \DeclareUnicodeComposite{\^} {C}{"0108}
3073 \DeclareUnicodeComposite{\^} {c}{"0109}
3074 \DeclareUnicodeComposite{\.} {C}{"010A}
3075 \DeclareUnicodeComposite{\.} {c}{"010B}
3076 \DeclareUnicodeComposite{\v} {C}{"010C}
3077 \DeclareUnicodeComposite{\v} {c}{"010D}
3078 \DeclareUnicodeComposite{\v} {D}{"010E}
3079 \DeclareUnicodeComposite{\v} {d}{"010F}
3080 \DeclareUnicodeComposite{\=} {E}{"0112}
3081 \DeclareUnicodeComposite{\=} {e}{"0113}
3082 \DeclareUnicodeComposite{\u} {E}{"0114}
3083 \DeclareUnicodeComposite{\u} {e}{"0115}
3084 \DeclareUnicodeComposite{\.} {E}{"0116}
3085 \DeclareUnicodeComposite{\.} {e}{"0117}
3086 \DeclareUnicodeComposite{\k} {E}{"0118}
3087 \DeclareUnicodeComposite{\k} {e}{"0119}
3088 \DeclareUnicodeComposite{\v} {E}{"011A}
3089 \DeclareUnicodeComposite{\v} {e}{"011B}
3090 \DeclareUnicodeComposite{\^} {G}{"011C}
3091 \DeclareUnicodeComposite{\^} {g}{"011D}
3092 \DeclareUnicodeComposite{\u} {G}{"011E}
3093 \DeclareUnicodeComposite{\u} {g}{"011F}
3094 \DeclareUnicodeComposite{\.} {G}{"0120}
3095 \DeclareUnicodeComposite{\.} {g}{"0121}
3096 \DeclareUnicodeComposite{\c} {G}{"0122}
3097 \DeclareUnicodeComposite{\c} {g}{"0123}
3098 \DeclareUnicodeComposite{\^} {H}{"0124}
3099 \DeclareUnicodeComposite{\^} {h}{"0125}
3100 \DeclareUnicodeComposite{\~} {I}{"0128}
3101 \DeclareUnicodeComposite{\~} \i {"0129}
3102 \DeclareUnicodeComposite{\~} {i}{"0129}
3103 \DeclareUnicodeComposite{\=} {I}{"012A}
3104 \DeclareUnicodeComposite{\=} \i {"012B}
3105 \DeclareUnicodeComposite{\=} {i}{"012B}
3106 \DeclareUnicodeComposite{\u} {I}{"012C}
3107 \DeclareUnicodeComposite{\u} \i {"012D}
3108 \DeclareUnicodeComposite{\u} {i}{"012D}
3109 \DeclareUnicodeComposite{\k} {I}{"012E}
3110 \DeclareUnicodeComposite{\k} \i {"012F}
3111 \DeclareUnicodeComposite{\k} {i}{"012F}
3112 \DeclareUnicodeComposite{\.} {I}{"0130}
3113 \DeclareUnicodeComposite{\^} {J}{"0134}
3114 \DeclareUnicodeComposite{\^} \j {"0135}
3115 \DeclareUnicodeComposite{\^} {j}{"0135}
3116 \DeclareUnicodeComposite{\c} {K}{"0136}
3117 \DeclareUnicodeComposite{\c} {k}{"0137}
3118 \DeclareUnicodeComposite{\'} {L}{"0139}
3119 \DeclareUnicodeComposite{\'} {l}{"013A}
3120 \DeclareUnicodeComposite{\c} {L}{"013B}
3121 \DeclareUnicodeComposite{\c} {l}{"013C}
3122 \DeclareUnicodeComposite{\v} {L}{"013D}
3123 \DeclareUnicodeComposite{\v} {l}{"013E}
3124 \DeclareUnicodeComposite{\'} {N}{"0143}
3125 \DeclareUnicodeComposite{\'} {n}{"0144}
3126 \DeclareUnicodeComposite{\c} {N}{"0145}
3127 \DeclareUnicodeComposite{\c} {n}{"0146}
3128 \DeclareUnicodeComposite{\v} {N}{"0147}
3129 \DeclareUnicodeComposite{\v} {n}{"0148}
3130 \DeclareUnicodeComposite{\=} {O}{"014C}
3131 \DeclareUnicodeComposite{\=} {o}{"014D}
3132 \DeclareUnicodeComposite{\u} {O}{"014E}
3133 \DeclareUnicodeComposite{\u} {o}{"014F}
3134 \DeclareUnicodeComposite{\H} {O}{"0150}
3135 \DeclareUnicodeComposite{\H} {o}{"0151}
3136 \DeclareUnicodeComposite{\'} {R}{"0154}
3137 \DeclareUnicodeComposite{\'} {r}{"0155}
3138 \DeclareUnicodeComposite{\c} {R}{"0156}
3139 \DeclareUnicodeComposite{\c} {r}{"0157}
3140 \DeclareUnicodeComposite{\v} {R}{"0158}
3141 \DeclareUnicodeComposite{\v} {r}{"0159}
3142 \DeclareUnicodeComposite{\'} {S}{"015A}
3143 \DeclareUnicodeComposite{\'} {s}{"015B}
3144 \DeclareUnicodeComposite{\^} {S}{"015C}
3145 \DeclareUnicodeComposite{\^} {s}{"015D}
3146 \DeclareUnicodeComposite{\c} {S}{"015E}
3147 \DeclareUnicodeComposite{\c} {s}{"015F}
3148 \DeclareUnicodeComposite{\v} {S}{"0160}
3149 \DeclareUnicodeComposite{\v} {s}{"0161}
3150 \DeclareUnicodeComposite{\c} {T}{"0162}
3151 \DeclareUnicodeComposite{\c} {t}{"0163}
3152 \DeclareUnicodeComposite{\v} {T}{"0164}
3153 \DeclareUnicodeComposite{\v} {t}{"0165}
3154 \DeclareUnicodeComposite{\~} {U}{"0168}
3155 \DeclareUnicodeComposite{\~} {u}{"0169}
3156 \DeclareUnicodeComposite{\=} {U}{"016A}
3157 \DeclareUnicodeComposite{\=} {u}{"016B}
3158 \DeclareUnicodeComposite{\u} {U}{"016C}
3159 \DeclareUnicodeComposite{\u} {u}{"016D}
3160 \DeclareUnicodeComposite{\r} {U}{"016E}
3161 \DeclareUnicodeComposite{\r} {u}{"016F}
3162 \DeclareUnicodeComposite{\H} {U}{"0170}
3163 \DeclareUnicodeComposite{\H} {u}{"0171}
3164 \DeclareUnicodeComposite{\k} {U}{"0172}
3165 \DeclareUnicodeComposite{\k} {u}{"0173}
3166 \DeclareUnicodeComposite{\^} {W}{"0174}
3167 \DeclareUnicodeComposite{\^} {w}{"0175}
3168 \DeclareUnicodeComposite{\^} {Y}{"0176}
3169 \DeclareUnicodeComposite{\^} {y}{"0177}
3170 \DeclareUnicodeComposite{\"} {Y}{"0178}
3171 \DeclareUnicodeComposite{\'} {Z}{"0179}
3172 \DeclareUnicodeComposite{\'} {z}{"017A}
3173 \DeclareUnicodeComposite{\.} {Z}{"017B}
3174 \DeclareUnicodeComposite{\.} {z}{"017C}
3175 \DeclareUnicodeComposite{\v} {Z}{"017D}
3176 \DeclareUnicodeComposite{\v} {z}{"017E}
3177 \DeclareUnicodeComposite{\v} {A}{"01CD}
3178 \DeclareUnicodeComposite{\v} {a}{"01CE}
3179 \DeclareUnicodeComposite{\v} {I}{"01CF}
3180 \DeclareUnicodeComposite{\v} \i {"01D0}
3181 \DeclareUnicodeComposite{\v} {i}{"01D0}
3182 \DeclareUnicodeComposite{\v} {O}{"01D1}
3183 \DeclareUnicodeComposite{\v} {o}{"01D2}
3184 \DeclareUnicodeComposite{\v} {U}{"01D3}
3185 \DeclareUnicodeComposite{\v} {u}{"01D4}
3186 \DeclareUnicodeComposite{\=} \AE{"01E2}
3187 \DeclareUnicodeComposite{\=} \ae{"01E3}
3188 \DeclareUnicodeComposite{\v} {G}{"01E6}
3189 \DeclareUnicodeComposite{\v} {g}{"01E7}
3190 \DeclareUnicodeComposite{\v} {K}{"01E8}
3191 \DeclareUnicodeComposite{\v} {k}{"01E9}
3192 \DeclareUnicodeComposite{\k} {O}{"01EA}
3193 \DeclareUnicodeComposite{\k} {o}{"01EB}
3194 \DeclareUnicodeComposite{\v} \j {"01F0}
3195 \DeclareUnicodeComposite{\v} {j}{"01F0}
3196 \DeclareUnicodeComposite{\'} {G}{"01F4}
3197 \DeclareUnicodeComposite{\'} {g}{"01F5}
3198 \DeclareUnicodeComposite{\textcommabelow}{S}{"0218}
3199 \DeclareUnicodeComposite{\textcommabelow}{s}{"0219}
3200 \DeclareUnicodeComposite{\textcommabelow}{T}{"021A}
3201 \DeclareUnicodeComposite{\textcommabelow}{t}{"021B}
3202 \DeclareUnicodeComposite{\=} {Y}{"0232}
3203 \DeclareUnicodeComposite{\=} {y}{"0232}
3204 \DeclareUnicodeComposite{\.} {B}{"1E02}
3205 \DeclareUnicodeComposite{\.} {b}{"1E03}
3206 \DeclareUnicodeComposite{\d} {B}{"1E04}
3207 \DeclareUnicodeComposite{\d} {b}{"1E05}
3208 \DeclareUnicodeComposite{\d} {D}{"1E0C}
3209 \DeclareUnicodeComposite{\d} {d}{"1E0D}
3210 \DeclareUnicodeComposite{\=} {G}{"1E20}
3211 \DeclareUnicodeComposite{\=} {g}{"1E21}
3212 \DeclareUnicodeComposite{\d} {H}{"1E24}
3213 \DeclareUnicodeComposite{\d} {h}{"1E25}
3214 \DeclareUnicodeComposite{\d} {K}{"1E32}
3215 \DeclareUnicodeComposite{\d} {k}{"1E33}
3216 \DeclareUnicodeComposite{\d} {L}{"1E36}
3217 \DeclareUnicodeComposite{\d} {l}{"1E37}
3218 \DeclareUnicodeComposite{\d} {M}{"1E42}
3219 \DeclareUnicodeComposite{\d} {m}{"1E43}
3220 \DeclareUnicodeComposite{\d} {N}{"1E46}
3221 \DeclareUnicodeComposite{\d} {n}{"1E47}
3222 \DeclareUnicodeComposite{\d} {R}{"1E5A}
3223 \DeclareUnicodeComposite{\d} {r}{"1E5B}
3224 \DeclareUnicodeComposite{\d} {S}{"1E62}
3225 \DeclareUnicodeComposite{\d} {s}{"1E63}
3226 \DeclareUnicodeComposite{\d} {T}{"1E6C}
3227 \DeclareUnicodeComposite{\d} {t}{"1E6D}
3228 \DeclareUnicodeComposite{\d} {V}{"1E7E}
3229 \DeclareUnicodeComposite{\d} {v}{"1E7F}
3230 \DeclareUnicodeComposite{\d} {W}{"1E88}
3231 \DeclareUnicodeComposite{\d} {w}{"1E89}
3232 \DeclareUnicodeComposite{\d} {Z}{"1E92}
3233 \DeclareUnicodeComposite{\d} {z}{"1E93}
3234 \DeclareUnicodeComposite{\d} {A}{"1EA0}
3235 \DeclareUnicodeComposite{\d} {a}{"1EA1}
3236 \DeclareUnicodeComposite{\d} {E}{"1EB8}
3237 \DeclareUnicodeComposite{\d} {e}{"1EB9}
3238 \DeclareUnicodeComposite{\d} {I}{"1ECA}
3239 \DeclareUnicodeComposite{\d} {i}{"1ECB}
3240 \DeclareUnicodeComposite{\d} {O}{"1ECC}
3241 \DeclareUnicodeComposite{\d} {o}{"1ECD}
3242 \DeclareUnicodeComposite{\d} {U}{"1EE4}
3243 \DeclareUnicodeComposite{\d} {u}{"1EE5}
3244 \DeclareUnicodeComposite{\d} {Y}{"1EF4}
3245 \DeclareUnicodeComposite{\d} {y}{"1EF5}
3252 % \section{Package files}
3254 % \changes{v1.9h}{1997/12/17}{Added section.}
3255 % \changes{v1.9h}{1997/12/17}{Added code for textcomp.sty.}
3256 % This file now also contains some packages that provide access to
3257 % the more specialised encodings.
3259 % \subsection{The fontenc package}
3261 % \changes{v1.5c}{1994/05/14}{Added the fontenc package}
3262 % \changes{v1.5g}{1994/05/16}{Removed the lowercasing of the filename.}
3263 % \changes{v1.7a}{1994/11/30}{Always load the enc.def file, so that
3264 % the default encoding for the commands will change.}
3265 % \changes{v1.7x}{1996/05/18}{Produce error if encoding not found.
3267 % \changes{v1.7y}{1996/05/21}{Corrected error message (CAR)}
3268 % \changes{v1.8d}{1996/11/18}
3269 % {(DPC) lowercase external file names. internal/1044}%
3270 % This package allows authors to specify which encodings they will use.
3271 % For each encoding |FOO|, the package looks to see if the encoding
3272 % |FOO| has already been declared. If it has not, the file |fooenc.def|
3273 % is loaded. The default encoding is set to be |FOO|.
3275 % In addition the package at the moment contains extra code to extend
3276 % the |\@uclclist| (list of upper/lower case pairs) for encodings that
3277 % involve cyrillic characters. THIS IS A TEMPORARY SOLUTION and will not
3278 % stay this way forever (or so we hope) but right now we are missing a
3279 % proper interface for this and didn't wanted to rush it.
3280 % \changes{v1.9r}{1999/01/07}{Hackery to temp support cyrillic uc/lc}
3281 % \changes{v1.9t}{1999/02/24}{Corrected hackery cyrillic uc/lc list}
3282 % \changes{v1.9x}{1999/12/08}{Changed \cs{CYRRHOOK} and \cs{cyrrhook}
3283 % to\cs{CYRRHK} and \cs{cyrrhk} as name changed in the cyrillic
3284 % bundle for naming consistency with other ``hook'' glyphs.}
3289 % Here we define a macro that extends the |\@uclclist| if needed and
3290 % afterwards turns itself in a noop.
3292 \def\update@uclc@with@cyrillic{%
3293 \expandafter\def\expandafter\@uclclist\expandafter
3295 \cyra\CYRA\cyrabhch\CYRABHCH\cyrabhchdsc\CYRABHCHDSC\cyrabhdze
3296 \CYRABHDZE\cyrabhha\CYRABHHA\cyrae\CYRAE\cyrb\CYRB\cyrbyus
3297 \CYRBYUS\cyrc\CYRC\cyrch\CYRCH\cyrchldsc\CYRCHLDSC\cyrchrdsc
3298 \CYRCHRDSC\cyrchvcrs\CYRCHVCRS\cyrd\CYRD\cyrdelta\CYRDELTA
3299 \cyrdje\CYRDJE\cyrdze\CYRDZE\cyrdzhe\CYRDZHE\cyre\CYRE\cyreps
3300 \CYREPS\cyrerev\CYREREV\cyrery\CYRERY\cyrf\CYRF\cyrfita
3301 \CYRFITA\cyrg\CYRG\cyrgdsc\CYRGDSC\cyrgdschcrs\CYRGDSCHCRS
3302 \cyrghcrs\CYRGHCRS\cyrghk\CYRGHK\cyrgup\CYRGUP\cyrh\CYRH
3303 \cyrhdsc\CYRHDSC\cyrhhcrs\CYRHHCRS\cyrhhk\CYRHHK\cyrhrdsn
3304 \CYRHRDSN\cyri\CYRI\cyrie\CYRIE\cyrii\CYRII\cyrishrt\CYRISHRT
3305 \cyrishrtdsc\CYRISHRTDSC\cyrizh\CYRIZH\cyrje\CYRJE\cyrk\CYRK
3306 \cyrkbeak\CYRKBEAK\cyrkdsc\CYRKDSC\cyrkhcrs\CYRKHCRS\cyrkhk
3307 \CYRKHK\cyrkvcrs\CYRKVCRS\cyrl\CYRL\cyrldsc\CYRLDSC\cyrlhk
3308 \CYRLHK\cyrlje\CYRLJE\cyrm\CYRM\cyrmdsc\CYRMDSC\cyrmhk\CYRMHK
3309 \cyrn\CYRN\cyrndsc\CYRNDSC\cyrng\CYRNG\cyrnhk\CYRNHK\cyrnje
3310 \CYRNJE\cyrnlhk\CYRNLHK\cyro\CYRO\cyrotld\CYROTLD\cyrp\CYRP
3311 \cyrphk\CYRPHK\cyrq\CYRQ\cyrr\CYRR\cyrrdsc\CYRRDSC\cyrrhk
3312 \CYRRHK\cyrrtick\CYRRTICK\cyrs\CYRS\cyrsacrs\CYRSACRS
3313 \cyrschwa\CYRSCHWA\cyrsdsc\CYRSDSC\cyrsemisftsn\CYRSEMISFTSN
3314 \cyrsftsn\CYRSFTSN\cyrsh\CYRSH\cyrshch\CYRSHCH\cyrshha\CYRSHHA
3315 \cyrt\CYRT\cyrtdsc\CYRTDSC\cyrtetse\CYRTETSE\cyrtshe\CYRTSHE
3316 \cyru\CYRU\cyrushrt\CYRUSHRT\cyrv\CYRV\cyrw\CYRW\cyry\CYRY
3317 \cyrya\CYRYA\cyryat\CYRYAT\cyryhcrs\CYRYHCRS\cyryi\CYRYI\cyryo
3318 \CYRYO\cyryu\CYRYU\cyrz\CYRZ\cyrzdsc\CYRZDSC\cyrzh\CYRZH
3319 \cyrzhdsc\CYRZHDSC}%
3320 \let\update@uclc@with@cyrillic\relax
3324 % Here we process each option:
3327 \let\encodingdefault\CurrentOption
3329 \lowercase{\def\noexpand\reserved@f{\CurrentOption enc.def}}}%
3331 \InputIfFileExists\reserved@f
3332 {}{\PackageError{fontenc}%
3333 {Encoding file `\reserved@f' not found.%
3335 You might have misspelt the name of the encoding}%
3336 {Necessary code for this encoding was not
3337 loaded.\MessageBreak
3338 Thus calling the encoding later on will
3339 produce further error messages.}}%
3340 \let\reserved@f\relax
3343 % In case the current encoding is one of a list of known
3344 % cyrillic ones we extend the |\@uclclist|:
3346 \expandafter\in@\expandafter{\CurrentOption}%
3347 {T2A,T2B,T2C,X2,LCY,OT2}%
3351 % But only if it hasn't already been extended. This might happen if
3352 % there are several calls to fontenc loading one of the above
3353 % encodings. If we don't do this check the |\@uclclist| gets
3354 % unnecessarily big, slowing down the processing at runtime.
3355 % \changes{v1.9v}{1999/06/12}{Extend \cs{@uclclist} only once}
3357 \expandafter\in@\expandafter\cyra\expandafter
3361 \update@uclc@with@cyrillic
3372 \fontencoding\encodingdefault\selectfont
3375 % To save some space we get rid of the macro extending the
3376 % |\@uclclist| (might have happened already).
3378 \let\update@uclc@with@cyrillic\relax
3381 % Finally we pretend that the fontenc package wasn't read in. This
3382 % allows for using it several times, e.g., in a class file and in the
3383 % preamble (at the cost of not getting any version info).
3384 % That kind of hackery shows that using a general purpose
3385 % package just for loading an encoding is not the right kind
3386 % of interface for setting up encodings --- it will get replaced at
3387 % some point in the future.
3388 % \changes{v1.9r}{1999/01/07}{Hackery to allow using fontenc several
3390 % \changes{v1.9u}{1999/06/10}{Ensure that we also forget old options
3393 \global\expandafter\let\csname ver@fontenc.sty\endcsname\relax
3394 \global\expandafter\let\csname opt@fontenc.sty\endcsname\relax
3395 \global\let\@ifl@ter@@\@ifl@ter
3396 \def\@ifl@ter#1#2#3#4#5{\global\let\@ifl@ter\@ifl@ter@@}
3401 % \subsection{The textcomp package}
3403 % This one is for the |TS1| encoding which contains text symbols
3404 % for use with the |T1|-encoded text fonts. It therefore first
3405 % inputs the file |TS1enc.def| and then sets (or resets) the
3406 % defaults for the symbols it contains. The result of this is that
3407 % when one of these symbols is accessed and the current encoding
3408 % does not provide it, the symbol will be supplied by a silent,
3409 % local change to this encoding.
3414 % Since many PostScript fonts only implement a subset of |TS1| many
3415 % commands only produce black blobs of ink. To resolve the
3416 % resulting problems a number of options have been introduced and
3417 % some code has been developed to distinguish sub-encodings.
3419 % The sub-encodings have a numerical id and are defined as follows
3421 % \begin{description}
3423 % \item[\#5] those \texttt{TS1} symbols that are also in the ISO-Adobe
3424 % character set; without \verb=textcurrency=, which is often
3425 % misused for the Euro. Older Type1 fonts from the non-\TeX{}
3426 % world provide only this subset.
3428 % \item[\#4] = \#5 + \verb=\texteuro=. Most newer fonts provide this.
3430 % \item[\#3] = \#4 + \verb=\textomega=. Can also be described as
3431 % $\texttt{TS1} \cap (\texttt{ISO-Adobe} \cup
3432 % \texttt{MacRoman})$. (Except for the missing "currency".)
3435 % \item[\#2] = \#3 + \verb=\textestimated= + \verb=\textcurrency=. Can
3436 % also be described as $\texttt{TS1} \cap
3437 % \texttt{Adobe-Western-2}$. This may be relevant for OpenType
3438 % fonts, which usually show the Adobe-Western-2 character set.
3440 % \item[\#1] = \texttt{TS1} without \verb=\textcircled= and \verb=\t=.
3441 % These two glyphs are often not implemented and if their kernel
3442 % defaults are changed commands like \verb=\copyright=
3443 % unnecessarily fail.
3445 % \item[\#0] = full \texttt{TS1}
3448 % And here a summary to go in the transcript file:
3450 \PackageInfo{textcomp}{Sub-encoding information:\MessageBreak
3451 \space\space 5 = only ISO-Adobe without
3452 \string\textcurrency\MessageBreak
3453 \space\space 4 = 5 + \string\texteuro\MessageBreak
3454 \space\space 3 = 4 + \string\textohm\MessageBreak
3455 \space\space 2 = 3 + \noexpand\textestimated+
3456 \string\textcurrency\MessageBreak
3457 \space\space 1 = TS1 - \noexpand\textcircled-
3458 \string\t\MessageBreak
3459 \space\space 0 = TS1 (full)\MessageBreak
3460 Font families with sub-encoding setting implement\MessageBreak
3461 only a restricted character set as indicated.\MessageBreak
3462 Family '?' is the default used for unknown fonts.\MessageBreak
3463 See the documentation for details\@gobble}
3466 % \begin{macro}{\DeclareEncodingSubset}
3467 % An encoding subset to which a font family belongs is declared by
3468 % the command |\DeclareEncodingSubset| that takes the major encoding as the
3469 % first argument (e.g., |TS1|), the family name as the second
3470 % argument (e.g., |cmr|), and the subset encoding id as a third,
3471 % (e.g., |0| for |cmr|).
3473 % The default encoding subset to use when nothing is known about
3474 % the current font family is named |?|.
3476 \def\DeclareEncodingSubset#1#2#3{%
3477 \@ifundefined{#1:#2}%
3478 {\PackageInfo{textcomp}{Setting #2 sub-encoding to #1/#3}}%
3479 {\PackageInfo{textcomp}{Changing #2 sub-encoding to #1/#3}}%
3480 \@namedef{#1:#2}{#3}}
3481 \@onlypreamble\DeclareEncodingSubset
3486 % The options for the package are the following:
3487 % \begin{description}
3489 % for unknown font families enables only symbols that are also
3490 % in the ISO-Adobe character set; without "currency", which is
3491 % often misused for the Euro. Older Type1 fonts from the
3492 % non-TeX world provide only this subset.
3495 % enables the ``safe'' symbols plus the |\texteuro|
3496 % command. Most newer fonts provide this.
3498 % \item[full] enables all |TS1| commands; useful only with fonts
3499 % like EC or CM bright.
3502 % same as ``full'', except that |\textcircled|
3503 % and |\t| are \emph{not} redefined from their defaults to avoid
3504 % that commands like |\copyright| suddenly no longer work.
3507 % ignore all subset encoding definitions stored in the package
3508 % itself or in the configuration file and always use the default
3509 % subset as specified by one of the other options (seldom useful,
3513 % \begin{macro}{\iftc@forced}
3514 % Switch used to implement the \texttt{force} option
3516 \newif\iftc@forced \tc@forcedfalse
3520 % This is implemented by defining the default subset:
3522 \DeclareOption{full}{\DeclareEncodingSubset{TS1}{?}{0}}
3523 \DeclareOption{almostfull}{\DeclareEncodingSubset{TS1}{?}{1}}
3524 \DeclareOption{euro}{\DeclareEncodingSubset{TS1}{?}{4}}
3525 \DeclareOption{safe}{\DeclareEncodingSubset{TS1}{?}{5}}
3527 % The default is ``almostfull'' which means that old documents will
3528 % work except that |\textcircled| and |\t| will use the kernel
3529 % defaults (with the advantage that this also works if the current
3530 % font (as often the case) doesn't implement these glyphs.
3532 % The ``force'' option simply sets the switch to true.
3534 \DeclareOption{force}{\tc@forcedtrue}
3537 % The suggestions to user is to use the ``safe'' option always
3538 % unless that balks in which case they could switch to
3539 % ``almostfull'' but then better check their output manually.
3542 \def\tc@errorwarn{\PackageError}
3543 \DeclareOption{warn}{\gdef\tc@errorwarn#1#2#3{\PackageWarning{#1}{#2}}}
3547 \ExecuteOptions{almostfull}
3548 \ProcessOptions\relax
3551 % \begin{macro}{\CheckEncodingSubset}
3552 % The command |\CheckEncodingSubset| will check if the current font
3553 % family has the right encoding subset to typeset a certain
3554 % command. It takes five arguments as follows:
3555 % first argument is either |\UseTextSymbol|, |\UseTextAccent|
3556 % depending on whether or not the symbol is a text symbol or a text
3559 % The second argument is the encoding from which this symbol should
3562 % The third argument is either a fake accessor command or an error
3563 % message. the code in that argument (if ever executed) receives
3564 % two arguments: |#2| and |#5| of |\CheckEncodingSubset|.
3566 % Argument four is the subset encoding id to test against: if this
3567 % value is higher than the subset id of the current font family
3568 % then we typeset the symbol, i.e., execute |#1{#2}#5| otherwise
3569 % it runs |#3#5|, e.g., to produce an error message or fake the
3572 % Argument five is the symbol or accent command that is being
3575 % For usage examples see definitions below.
3579 % If the ``force'' option was given we always use the default for
3582 \def\CheckEncodingSubset#1#2#3#4#5{%
3584 0\csname #2:?\endcsname
3586 \expandafter\@firstoftwo
3588 \expandafter\@secondoftwo
3594 % In normal circumstances the test is a bit more complicated: first
3595 % check if there exists a macro
3596 % |\|\meta{arg2}|:|\meta{current-family} and if so use that value
3597 % to test against, otherwise use the default to test against.
3600 \def\CheckEncodingSubset#1#2#3#4#5{%
3602 \expandafter\ifx\csname #2:\f@family\endcsname\relax
3603 0\csname #2:?\endcsname
3605 \csname #2:\f@family\endcsname
3608 \expandafter\@firstoftwo
3610 \expandafter\@secondoftwo
3619 % \begin{macro}{tc@subst}
3622 \tc@errorwarn{textcomp}% % should be latex error if general
3623 {Symbol \string#1 not provided by\MessageBreak
3624 font family \f@family\space
3625 in TS1 encoding.\MessageBreak Default family used instead}\@eha
3626 \bgroup\fontfamily\textcompsubstdefault\selectfont#1\egroup
3631 % \begin{macro}{\textcompsubstdefault}
3633 \def\textcompsubstdefault{cmr}
3637 % \begin{macro}{\tc@error}
3638 % |\tc@error| is going to be used in arg |#3| of
3639 % |\CheckEncodingSubset| when a symbol is not available in a
3640 % certain font family. It gets pass the encoding it normally lives
3641 % in (arg one) and the name of the symbol or accent that has a
3645 % error commands take argument:
3646 % #1 symbol to be used
3648 \PackageError{textcomp}% % should be latex error if general
3649 {Accent \string#1 not provided by\MessageBreak
3650 font family \f@family\space
3651 in TS1 encoding}\@eha
3657 % \begin{macro}{\tc@fake@euro}
3658 % |\tc@fake@euro| is an example of a ``fake'' definition to use in arg |#3| of
3659 % |\CheckEncodingSubset| when a symbol is not available in a
3660 % certain font family. Here we produce an Euro symbol by combining
3661 % a ``C'' with a ``=''.
3663 \def\tc@fake@euro#1{%
3665 \PackageInfo{textcomp}{Faking \noexpand#1for font family
3666 \f@family\MessageBreak in TS1 encoding}%
3668 \vfil\hbox to 0.07em{\dimen@\f@size\p@
3670 \fontsize{.7\dimen@}\z@\selectfont=\hss}%
3678 % \begin{macro}{\tc@check@symbol}
3679 % \begin{macro}{\tc@check@accent}
3680 % These are two abbreviations that we use below to check symbols
3681 % and accents in TS1. Only there to save some space, e.g., we can
3684 %\DeclareTextCommandDefault{\textcurrency}{\tc@check@symbol3\textcurrency}
3686 % to ensure that |\textcurrency| is only typeset if the current
3687 % font has a \texttt{TS1} subset id of less than 3. Otherwise
3688 % |\tc@error| is called telling the user that for this font family
3689 % |\textcurreny| is not available.
3691 \def\tc@check@symbol{\CheckEncodingSubset\UseTextSymbol{TS1}\tc@subst}
3692 \def\tc@check@accent{\CheckEncodingSubset\UseTextAccent{TS1}\tc@error}
3697 % We start with the commands that are ``safe'' and which can be
3698 % unconditionally set up, first the accents\ldots
3700 \DeclareTextAccentDefault{\capitalcedilla}{TS1}
3701 \DeclareTextAccentDefault{\capitalogonek}{TS1}
3702 \DeclareTextAccentDefault{\capitalgrave}{TS1}
3703 \DeclareTextAccentDefault{\capitalacute}{TS1}
3704 \DeclareTextAccentDefault{\capitalcircumflex}{TS1}
3705 \DeclareTextAccentDefault{\capitaltilde}{TS1}
3706 \DeclareTextAccentDefault{\capitaldieresis}{TS1}
3707 \DeclareTextAccentDefault{\capitalhungarumlaut}{TS1}
3708 \DeclareTextAccentDefault{\capitalring}{TS1}
3709 \DeclareTextAccentDefault{\capitalcaron}{TS1}
3710 \DeclareTextAccentDefault{\capitalbreve}{TS1}
3711 \DeclareTextAccentDefault{\capitalmacron}{TS1}
3712 \DeclareTextAccentDefault{\capitaldotaccent}{TS1}
3714 % \ldots and then the other glyphs.
3715 % \changes{v1.9p}{1998/06/12}{Renamed \cs{textmacron} pr/2840}
3717 \DeclareTextSymbolDefault{\textcapitalcompwordmark}{TS1}
3718 \DeclareTextSymbolDefault{\textascendercompwordmark}{TS1}
3719 \DeclareTextSymbolDefault{\textquotestraightbase}{TS1}
3720 \DeclareTextSymbolDefault{\textquotestraightdblbase}{TS1}
3721 \DeclareTextSymbolDefault{\texttwelveudash}{TS1}
3722 \DeclareTextSymbolDefault{\textthreequartersemdash}{TS1}
3723 \DeclareTextSymbolDefault{\textdollar}{TS1}
3724 \DeclareTextSymbolDefault{\textquotesingle}{TS1}
3725 \DeclareTextSymbolDefault{\textasteriskcentered}{TS1}
3726 \DeclareTextSymbolDefault{\textfractionsolidus}{TS1}
3727 \DeclareTextSymbolDefault{\textminus}{TS1}
3728 \DeclareTextSymbolDefault{\textlbrackdbl}{TS1}
3729 \DeclareTextSymbolDefault{\textrbrackdbl}{TS1}
3730 \DeclareTextSymbolDefault{\textasciigrave}{TS1}
3731 \DeclareTextSymbolDefault{\texttildelow}{TS1}
3732 \DeclareTextSymbolDefault{\textasciibreve}{TS1}
3733 \DeclareTextSymbolDefault{\textasciicaron}{TS1}
3734 \DeclareTextSymbolDefault{\textgravedbl}{TS1}
3735 \DeclareTextSymbolDefault{\textacutedbl}{TS1}
3736 \DeclareTextSymbolDefault{\textdagger}{TS1}
3737 \DeclareTextSymbolDefault{\textdaggerdbl}{TS1}
3738 \DeclareTextSymbolDefault{\textbardbl}{TS1}
3739 \DeclareTextSymbolDefault{\textperthousand}{TS1}
3740 \DeclareTextSymbolDefault{\textbullet}{TS1}
3741 \DeclareTextSymbolDefault{\textcelsius}{TS1}
3742 \DeclareTextSymbolDefault{\textflorin}{TS1}
3743 \DeclareTextSymbolDefault{\texttrademark}{TS1}
3744 \DeclareTextSymbolDefault{\textcent}{TS1}
3745 \DeclareTextSymbolDefault{\textsterling}{TS1}
3746 \DeclareTextSymbolDefault{\textyen}{TS1}
3747 \DeclareTextSymbolDefault{\textbrokenbar}{TS1}
3748 \DeclareTextSymbolDefault{\textsection}{TS1}
3749 \DeclareTextSymbolDefault{\textasciidieresis}{TS1}
3750 \DeclareTextSymbolDefault{\textcopyright}{TS1}
3751 \DeclareTextSymbolDefault{\textordfeminine}{TS1}
3752 \DeclareTextSymbolDefault{\textlnot}{TS1}
3753 \DeclareTextSymbolDefault{\textregistered}{TS1}
3754 \DeclareTextSymbolDefault{\textasciimacron}{TS1}
3755 \DeclareTextSymbolDefault{\textdegree}{TS1}
3756 \DeclareTextSymbolDefault{\textpm}{TS1}
3757 \DeclareTextSymbolDefault{\texttwosuperior}{TS1}
3758 \DeclareTextSymbolDefault{\textthreesuperior}{TS1}
3759 \DeclareTextSymbolDefault{\textasciiacute}{TS1}
3760 \DeclareTextSymbolDefault{\textmu}{TS1}
3761 \DeclareTextSymbolDefault{\textparagraph}{TS1}
3762 \DeclareTextSymbolDefault{\textperiodcentered}{TS1}
3763 \DeclareTextSymbolDefault{\textonesuperior}{TS1}
3764 \DeclareTextSymbolDefault{\textordmasculine}{TS1}
3765 \DeclareTextSymbolDefault{\textonequarter}{TS1}
3766 \DeclareTextSymbolDefault{\textonehalf}{TS1}
3767 \DeclareTextSymbolDefault{\textthreequarters}{TS1}
3768 \DeclareTextSymbolDefault{\texttimes}{TS1}
3769 \DeclareTextSymbolDefault{\textdiv}{TS1}
3772 % The |\texteuro| is only available for subsets with id 4 or
3773 % less. Otherwise we fake the glyph using |\tc@fake@euro|
3775 \DeclareTextCommandDefault{\texteuro}
3776 {\CheckEncodingSubset\UseTextSymbol{TS1}\tc@fake@euro5\texteuro}
3779 % The |\textohm| is only available for subsets with id 3 or
3780 % less. Otherwise we produce an error.
3782 \DeclareTextCommandDefault{\textohm}{\tc@check@symbol4\textohm}
3784 % The |\textestimated| and |\textcurrency| are only provided for
3785 % fonts with subset encoding with id 2 or less.
3787 \DeclareTextCommandDefault{\textestimated}%
3788 {\tc@check@symbol3\textestimated}
3789 \DeclareTextCommandDefault{\textcurrency}%
3790 {\tc@check@symbol3\textcurrency}
3792 % Nearly all of the remaining glyphs are provided only with fonts
3793 % with id 1 or 0, i.e., are essentially complete.
3795 \DeclareTextCommandDefault{\capitaltie}%
3796 {\tc@check@accent2\capitaltie}
3797 \DeclareTextCommandDefault{\newtie}%
3798 {\tc@check@accent2\newtie}
3799 \DeclareTextCommandDefault{\capitalnewtie}%
3800 {\tc@check@accent2\capitalnewtie}
3801 \DeclareTextCommandDefault{\textleftarrow}%
3802 {\tc@check@symbol2\textleftarrow}
3803 \DeclareTextCommandDefault{\textrightarrow}%
3804 {\tc@check@symbol2\textrightarrow}
3805 \DeclareTextCommandDefault{\textblank}%
3806 {\tc@check@symbol2\textblank}
3807 \DeclareTextCommandDefault{\textdblhyphen}%
3808 {\tc@check@symbol2\textdblhyphen}
3809 \DeclareTextCommandDefault{\textzerooldstyle}%
3810 {\tc@check@symbol2\textzerooldstyle}
3811 \DeclareTextCommandDefault{\textoneoldstyle}%
3812 {\tc@check@symbol2\textoneoldstyle}
3813 \DeclareTextCommandDefault{\texttwooldstyle}%
3814 {\tc@check@symbol2\texttwooldstyle}
3815 \DeclareTextCommandDefault{\textthreeoldstyle}%
3816 {\tc@check@symbol2\textthreeoldstyle}
3817 \DeclareTextCommandDefault{\textfouroldstyle}%
3818 {\tc@check@symbol2\textfouroldstyle}
3819 \DeclareTextCommandDefault{\textfiveoldstyle}%
3820 {\tc@check@symbol2\textfiveoldstyle}
3821 \DeclareTextCommandDefault{\textsixoldstyle}%
3822 {\tc@check@symbol2\textsixoldstyle}
3823 \DeclareTextCommandDefault{\textsevenoldstyle}%
3824 {\tc@check@symbol2\textsevenoldstyle}
3825 \DeclareTextCommandDefault{\texteightoldstyle}%
3826 {\tc@check@symbol2\texteightoldstyle}
3827 \DeclareTextCommandDefault{\textnineoldstyle}%
3828 {\tc@check@symbol2\textnineoldstyle}
3829 \DeclareTextCommandDefault{\textlangle}%
3830 {\tc@check@symbol2\textlangle}
3831 \DeclareTextCommandDefault{\textrangle}%
3832 {\tc@check@symbol2\textrangle}
3833 \DeclareTextCommandDefault{\textmho}%
3834 {\tc@check@symbol2\textmho}
3835 \DeclareTextCommandDefault{\textbigcircle}%
3836 {\tc@check@symbol2\textbigcircle}
3837 \DeclareTextCommandDefault{\textuparrow}%
3838 {\tc@check@symbol2\textuparrow}
3839 \DeclareTextCommandDefault{\textdownarrow}%
3840 {\tc@check@symbol2\textdownarrow}
3841 \DeclareTextCommandDefault{\textborn}%
3842 {\tc@check@symbol2\textborn}
3843 \DeclareTextCommandDefault{\textdivorced}%
3844 {\tc@check@symbol2\textdivorced}
3845 \DeclareTextCommandDefault{\textdied}%
3846 {\tc@check@symbol2\textdied}
3847 \DeclareTextCommandDefault{\textleaf}%
3848 {\tc@check@symbol2\textleaf}
3849 \DeclareTextCommandDefault{\textmarried}%
3850 {\tc@check@symbol2\textmarried}
3851 \DeclareTextCommandDefault{\textmusicalnote}%
3852 {\tc@check@symbol2\textmusicalnote}
3853 \DeclareTextCommandDefault{\textdblhyphenchar}%
3854 {\tc@check@symbol2\textdblhyphenchar}
3855 \DeclareTextCommandDefault{\textdollaroldstyle}%
3856 {\tc@check@symbol2\textdollaroldstyle}
3857 \DeclareTextCommandDefault{\textcentoldstyle}%
3858 {\tc@check@symbol2\textcentoldstyle}
3859 \DeclareTextCommandDefault{\textcolonmonetary}%
3860 {\tc@check@symbol2\textcolonmonetary}
3861 \DeclareTextCommandDefault{\textwon}%
3862 {\tc@check@symbol2\textwon}
3863 \DeclareTextCommandDefault{\textnaira}%
3864 {\tc@check@symbol2\textnaira}
3865 \DeclareTextCommandDefault{\textguarani}%
3866 {\tc@check@symbol2\textguarani}
3867 \DeclareTextCommandDefault{\textpeso}%
3868 {\tc@check@symbol2\textpeso}
3869 \DeclareTextCommandDefault{\textlira}%
3870 {\tc@check@symbol2\textlira}
3871 \DeclareTextCommandDefault{\textrecipe}%
3872 {\tc@check@symbol2\textrecipe}
3873 \DeclareTextCommandDefault{\textinterrobang}%
3874 {\tc@check@symbol2\textinterrobang}
3875 \DeclareTextCommandDefault{\textinterrobangdown}%
3876 {\tc@check@symbol2\textinterrobangdown}
3877 \DeclareTextCommandDefault{\textdong}%
3878 {\tc@check@symbol2\textdong}
3879 \DeclareTextCommandDefault{\textpertenthousand}%
3880 {\tc@check@symbol2\textpertenthousand}
3881 \DeclareTextCommandDefault{\textpilcrow}%
3882 {\tc@check@symbol2\textpilcrow}
3883 \DeclareTextCommandDefault{\textbaht}%
3884 {\tc@check@symbol2\textbaht}
3885 \DeclareTextCommandDefault{\textnumero}%
3886 {\tc@check@symbol2\textnumero}
3887 \DeclareTextCommandDefault{\textdiscount}%
3888 {\tc@check@symbol2\textdiscount}
3889 \DeclareTextCommandDefault{\textopenbullet}%
3890 {\tc@check@symbol2\textopenbullet}
3891 \DeclareTextCommandDefault{\textservicemark}%
3892 {\tc@check@symbol2\textservicemark}
3893 \DeclareTextCommandDefault{\textlquill}%
3894 {\tc@check@symbol2\textlquill}
3895 \DeclareTextCommandDefault{\textrquill}%
3896 {\tc@check@symbol2\textrquill}
3897 \DeclareTextCommandDefault{\textcopyleft}%
3898 {\tc@check@symbol2\textcopyleft}
3899 \DeclareTextCommandDefault{\textcircledP}%
3900 {\tc@check@symbol2\textcircledP}
3901 \DeclareTextCommandDefault{\textreferencemark}%
3902 {\tc@check@symbol2\textreferencemark}
3903 \DeclareTextCommandDefault{\textsurd}%
3904 {\tc@check@symbol2\textsurd}
3906 % The |\textcircled| and |\t| are handled specially, unless the
3907 % current font has a subset id of 0 (i.e. full \texttt{TS1}) we
3908 % pick the symbols up from the the math font encodings, i.e., the
3909 % third argument to |\CheckEncodingSubset| uses |\UseTextAccent| to
3910 % get them from there.
3912 \DeclareTextCommandDefault{\textcircled}
3913 {\CheckEncodingSubset\UseTextAccent{TS1}%
3914 {\UseTextAccent{OMS}}1\textcircled}
3915 \DeclareTextCommandDefault{\t}
3916 {\CheckEncodingSubset\UseTextAccent{TS1}%
3917 {\UseTextAccent{OML}}1\t}
3922 % Finally input the encoding-specific definitions for
3923 % \texttt{TS1} thus making the top-level definitions
3924 % optimised for this encoding (and not for the default
3925 % encoding, see section~\ref{sec:orderofdecls}).
3926 % \changes{v1.9o}{1998/03/20}{Load decls after defaults for speed.}
3930 % Now having the new glyphs available we also want to make sure
3931 % that they are used. For most cases this will automatically happen
3932 % but for some glyphs there are inferior definitions already known
3933 % to \LaTeX{} which will prevent the usage of the \texttt{TS1}
3934 % versions (see section~\ref{sec:removeencspec} above). So we better
3936 % \changes{v1.9o}{1998/03/20}{Added various \cs{UndeclareTextCommand}
3937 % declarations for pr/2783}
3939 \UndeclareTextCommand{\textsterling}{OT1}
3940 \UndeclareTextCommand{\textdollar} {OT1}
3942 % Similar declarations should probably be made for other encodings
3943 % like \texttt{OT4} if they are in use.
3945 %\UndeclareTextCommand{\textsterling}{OT4}
3946 %\UndeclareTextCommand{\textdollar} {OT4}
3948 % From the \texttt{T1} encoding there are two candidates for removal:
3949 % \textperthousand{} and \textpertenthousand{} since these are both
3950 % constructed from \% followed by a tiny
3951 % `{\fontencoding{T1}\selectfont \char 24}'
3952 % rather than being a single glyph. The problem with this
3953 % approach is that in PostScript fonts this small zero is usually not
3954 % available resulting in \%\rule{3pt}{3pt} rather than
3955 % \textperthousand{} while the real glyph (at least for
3956 % |\textperthousand|) is available in the PostScript version of
3957 % \texttt{TS1}. So for the moment we compromise by removing the
3958 % \texttt{T1} declaration for |\textperthousand| but keeping the one
3959 % for |\textpertenthousand|. This will have the effect that with
3960 % Computer Modern fonts everything will come out (although
3961 % \textperthousand{} and \textpertenthousand{} are not taken from the
3962 % same physical font) and with PostScript fonts \textperthousand{}
3963 % will come out correctly while \textpertenthousand{} will most
3964 % likely look like \%\rule{6pt}{3pt} --- which is probably an
3965 % improvement over just getting a single `\rule{3pt}{3pt}' to
3966 % indicate a completely missing glyph, which would happen if we
3967 % also `undeclared' |\textpertenthousand|.
3969 \UndeclareTextCommand{\textperthousand}{T1}
3970 %\UndeclareTextCommand{\textpertenthousand}{T1}
3974 % \subsubsection{Supporting oldstyle digits}
3977 \DeclareRobustCommand\oldstylenums[1]{%
3980 \mathgroup\symletters #1%
3982 \CheckEncodingSubset\@use@text@encoding{TS1}%
3983 {\PackageWarning{textcomp}%
3984 {Oldstyle digits unavailable for
3985 family \f@family.\MessageBreak
3986 Lining digits used instead}}%
3993 % \subsubsection{Subset encoding defaults}
3995 % For many font families commonly used in the \TeX{} world we
3996 % provide the subset encoding data here. Users can add additional
3997 % font families in the file \texttt{textcomp.cfg} if they own other
4000 % However, if the option ``forced'' was given then all subset
4001 % encoding specifications are ignored, so there is no point in
4002 % setting any of them up:
4007 % Computer modern based fonts (e.g., CM, CM-Bright, Concrete):
4009 \DeclareEncodingSubset{TS1}{cmr} {0}
4010 \DeclareEncodingSubset{TS1}{cmss} {0}
4011 \DeclareEncodingSubset{TS1}{cmtt} {0}
4012 \DeclareEncodingSubset{TS1}{cmvtt} {0}
4013 \DeclareEncodingSubset{TS1}{cmbr} {0}
4014 \DeclareEncodingSubset{TS1}{cmtl} {0}
4015 \DeclareEncodingSubset{TS1}{ccr} {0}
4020 \DeclareEncodingSubset{TS1}{ptm} {4}
4021 \DeclareEncodingSubset{TS1}{pcr} {4}
4022 \DeclareEncodingSubset{TS1}{phv} {4}
4023 \DeclareEncodingSubset{TS1}{ppl} {3}
4024 \DeclareEncodingSubset{TS1}{pag} {4}
4025 \DeclareEncodingSubset{TS1}{pbk} {4}
4026 \DeclareEncodingSubset{TS1}{pnc} {4}
4027 \DeclareEncodingSubset{TS1}{pzc} {4}
4028 \DeclareEncodingSubset{TS1}{bch} {4}
4029 \DeclareEncodingSubset{TS1}{put} {5}
4032 % Other CTAN fonts (probably not complete):
4034 \DeclareEncodingSubset{TS1}{uag} {5}
4035 \DeclareEncodingSubset{TS1}{ugq} {5}
4036 \DeclareEncodingSubset{TS1}{ul8} {4}
4037 \DeclareEncodingSubset{TS1}{ul9} {4} % (LuxiSans, one day)
4038 \DeclareEncodingSubset{TS1}{augie} {5}
4039 \DeclareEncodingSubset{TS1}{dayrom} {3}
4040 \DeclareEncodingSubset{TS1}{dayroms} {3}
4041 \DeclareEncodingSubset{TS1}{pxr} {0}
4042 \DeclareEncodingSubset{TS1}{pxss} {0}
4043 \DeclareEncodingSubset{TS1}{pxtt} {0}
4044 \DeclareEncodingSubset{TS1}{txr} {0}
4045 \DeclareEncodingSubset{TS1}{txss} {0}
4046 \DeclareEncodingSubset{TS1}{txtt} {0}
4049 % Latin Modern and TeX Gyre:
4050 % \changes{v1.99k}{2009/10/28}{Added Latin Modern and TeX Gyre subsets}
4051 % \changes{v1.99l}{2009/11/04}{Added more Latin Modern and TeX Gyre subsets}
4052 % \changes{v1.99m}{2015/02/16}{Added lmtt (Heiko Oberdiek) latex/4415}
4054 \DeclareEncodingSubset{TS1}{lmr} {0}
4055 \DeclareEncodingSubset{TS1}{lmdh} {0}
4056 \DeclareEncodingSubset{TS1}{lmss} {0}
4057 \DeclareEncodingSubset{TS1}{lmssq} {0}
4058 \DeclareEncodingSubset{TS1}{lmvtt} {0}
4059 \DeclareEncodingSubset{TS1}{lmtt} {0}
4063 \DeclareEncodingSubset{TS1}{qhv} {0}
4064 \DeclareEncodingSubset{TS1}{qag} {0}
4065 \DeclareEncodingSubset{TS1}{qbk} {0}
4066 \DeclareEncodingSubset{TS1}{qcr} {0}
4067 \DeclareEncodingSubset{TS1}{qcs} {0}
4068 \DeclareEncodingSubset{TS1}{qpl} {0}
4069 \DeclareEncodingSubset{TS1}{qtm} {0}
4070 \DeclareEncodingSubset{TS1}{qzc} {0}
4071 \DeclareEncodingSubset{TS1}{qhvc} {0}
4074 % Fourier-GUTenberg:
4076 \DeclareEncodingSubset{TS1}{futs} {4}
4077 \DeclareEncodingSubset{TS1}{futx} {4}
4078 \DeclareEncodingSubset{TS1}{futj} {4}
4081 % Y\&Y's Lucida Bright
4083 \DeclareEncodingSubset{TS1}{hlh} {3}
4084 \DeclareEncodingSubset{TS1}{hls} {3}
4085 \DeclareEncodingSubset{TS1}{hlst} {3}
4087 % The remaining settings for Lucida are conservative: the following
4088 % fonts contain the |\textohm| character but not the |\texteuro|,
4089 % i.e., belong to neither subset~4 nor subset~3. If you want to
4090 % use the |\textohm| with these fonts copy these definition to
4091 % \texttt{textcomp.cfg} and change the subset to~3. However in that
4092 % case make sure that you do not use the |\texteuro|.
4094 \DeclareEncodingSubset{TS1}{hlct} {5}
4095 \DeclareEncodingSubset{TS1}{hlx} {5}
4096 \DeclareEncodingSubset{TS1}{hlce} {5}
4097 \DeclareEncodingSubset{TS1}{hlcn} {5}
4098 \DeclareEncodingSubset{TS1}{hlcw} {5}
4099 \DeclareEncodingSubset{TS1}{hlcf} {5}
4102 % Other commercial families\ldots
4104 \DeclareEncodingSubset{TS1}{pplx} {3}
4105 \DeclareEncodingSubset{TS1}{pplj} {3}
4106 \DeclareEncodingSubset{TS1}{ptmx} {4}
4107 \DeclareEncodingSubset{TS1}{ptmj} {4}
4110 % If the file \texttt{textcomp.cfg} exists it will be loaded at
4111 % this point. This allows to define further subset encodings for
4112 % font families not covered by default.
4115 \InputIfFileExists{textcomp.cfg}
4116 {\PackageInfo{textcomp}{Local configuration file used}}{}