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)}
2144 % \changes{v1.99}{2004/02/02}{Added \cs{textbigcircle}}
2145 % Note that slot 13 has in places been named |\Orb|: please root
2146 % out and destroy this impolity wherever you find it!
2148 \DeclareTextSymbol{\textasteriskcentered}{OMS}{3} % "03
2149 \DeclareTextSymbol{\textbackslash}{OMS}{110} % "6E
2150 \DeclareTextSymbol{\textbar}{OMS}{106} % "6A
2151 \DeclareTextSymbol{\textbardbl}{OMS}{107} % "6B
2152 \DeclareTextSymbol{\textbraceleft}{OMS}{102} % "66
2153 \DeclareTextSymbol{\textbraceright}{OMS}{103} % "67
2154 \DeclareTextSymbol{\textbullet}{OMS}{15} % "0F
2155 \DeclareTextSymbol{\textdaggerdbl}{OMS}{122} % "7A
2156 \DeclareTextSymbol{\textdagger}{OMS}{121} % "79
2157 \DeclareTextSymbol{\textparagraph}{OMS}{123} % "7B
2158 \DeclareTextSymbol{\textperiodcentered}{OMS}{1} % "01
2159 \DeclareTextSymbol{\textsection}{OMS}{120} % "78
2160 \DeclareTextSymbol{\textbigcircle}{OMS}{13} % "0D
2161 \DeclareTextCommand{\textcircled}{OMS}[1]{\hmode@bgroup
2163 \hfil \raise .07ex\hbox {\upshape#1}\hfil \crcr
2170 % \subsection{Definitions for the OML encoding}
2172 % \changes{v1.6d}{1994/10/30}{Added the OML encoding.}
2174 % The definitions for the `\TeX{} math italic' (OML) encoding. Even
2175 % though this is meant to be a math font, it includes some of the
2176 % standard \LaTeX{} text symbols.
2178 % Declare the encoding.
2181 \DeclareFontEncoding{OML}{}{}
2183 % Declare the symbols.
2184 % \changes{v1.7t}{1995/11/29}{Added \cs{textless} and
2185 % \cs{textgreater}.}
2186 % \changes{v1.9h}{1997/12/17}{Changed to decimal codes.}
2187 % \changes{v1.9m}{1998/01/16}{fixed decimal codes. latex/2734}
2189 \DeclareTextSymbol{\textless}{OML}{`\<}
2190 \DeclareTextSymbol{\textgreater}{OML}{`\>}
2191 \DeclareTextAccent{\t}{OML}{127} % "7F
2195 % \subsection{Definitions for the OT4 encoding}
2197 % These definitions are for the Polish extension to the
2198 % `\TeX\ text' (OT1) encoding.
2199 % This encoding was created by B.~Jackowski and M.~Ry\'cko
2200 % for use with the Polish version of Computer Modern and Computer
2201 % Concrete. In positions 0--127 it is identical to OT1 but it
2202 % contains some additional characters in the upper half. The \LaTeX{}
2203 % support was developed by Mariusz Olko.
2205 % The PL fonts that use it are available as follows:\\
2207 % \texttt{ftp://ftp.gust.org.pl/TeX/language/polish/pl-mf.zip};
2210 % \texttt{ftp://ftp.gust.org.pl/TeX/language/polish/pl-tfm.zip}.
2212 % Declare the encoding.
2215 \DeclareFontEncoding{OT4}{}{}
2216 \DeclareFontSubstitution{OT4}{cmr}{m}{n}
2218 % Declare the accents.
2220 \DeclareTextAccent{\"}{OT4}{127}
2221 \DeclareTextAccent{\'}{OT4}{19}
2222 \DeclareTextAccent{\.}{OT4}{95}
2223 \DeclareTextAccent{\=}{OT4}{22}
2224 \DeclareTextAccent{\^}{OT4}{94}
2225 \DeclareTextAccent{\`}{OT4}{18}
2226 \DeclareTextAccent{\~}{OT4}{126}
2227 \DeclareTextAccent{\H}{OT4}{125}
2228 \DeclareTextAccent{\u}{OT4}{21}
2229 \DeclareTextAccent{\v}{OT4}{20}
2230 \DeclareTextAccent{\r}{OT4}{23}
2232 % The ogonek accent is available only under a e A \& E. But we
2233 % have to provide some definition for \cs{k}. Some other accents
2234 % have to be built by hand as in OT1:
2235 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
2238 \DeclareTextCommand{\k}{OT4}[1]{%
2239 \TextSymbolUnavailable{\k{#1}}#1}
2241 % In these definitions we no longer use the helper function |\sh@ft|
2242 % from plain.tex since that now has two incompatible definitions.
2243 % \changes{v1.99g}{2005/09/27}{Replace \cs{sh@ft} by \cs{ltx@sh@ft}}
2245 \DeclareTextCommand{\b}{OT4}[1]
2246 {\hmode@bgroup\o@lign{\relax#1\crcr\hidewidth\ltx@sh@ft{-3ex}%
2247 \vbox to.2ex{\hbox{\char22}\vss}\hidewidth}\egroup}
2248 \DeclareTextCommand{\c}{OT4}[1]
2249 {\leavevmode\setbox\z@\hbox{#1}\ifdim\ht\z@=1ex\accent24 #1%
2250 \else{\ooalign{\unhbox\z@\crcr\hidewidth\char24\hidewidth}}\fi}
2251 \DeclareTextCommand{\d}{OT4}[1]
2253 \o@lign{\relax#1\crcr\hidewidth\ltx@sh@ft{-1ex}.\hidewidth}\egroup}
2255 % Declare the text symbols.
2257 \DeclareTextSymbol{\AE}{OT4}{29}
2258 \DeclareTextSymbol{\OE}{OT4}{30}
2259 \DeclareTextSymbol{\O}{OT4}{31}
2260 \DeclareTextSymbol{\L}{OT4}{138}
2261 \DeclareTextSymbol{\ae}{OT4}{26}
2262 \DeclareTextSymbol{\guillemotleft}{OT4}{174}
2263 \DeclareTextSymbol{\guillemotright}{OT4}{175}
2264 \DeclareTextSymbol{\i}{OT4}{16}
2265 \DeclareTextSymbol{\j}{OT4}{17}
2266 \DeclareTextSymbol{\l}{OT4}{170}
2267 \DeclareTextSymbol{\o}{OT4}{28}
2268 \DeclareTextSymbol{\oe}{OT4}{27}
2269 \DeclareTextSymbol{\quotedblbase}{OT4}{255}
2270 \DeclareTextSymbol{\ss}{OT4}{25}
2271 \DeclareTextSymbol{\textemdash}{OT4}{124}
2272 \DeclareTextSymbol{\textendash}{OT4}{123}
2273 \DeclareTextSymbol{\textexclamdown}{OT4}{60}
2274 %\DeclareTextSymbol{\texthyphenchar}{OT4}{`\-}
2275 %\DeclareTextSymbol{\texthyphen}{OT4}{`\-}
2276 \DeclareTextSymbol{\textquestiondown}{OT4}{62}
2277 \DeclareTextSymbol{\textquotedblleft}{OT4}{92}
2278 \DeclareTextSymbol{\textquotedblright}{OT4}{`\"}
2279 \DeclareTextSymbol{\textquoteleft}{OT4}{`\`}
2280 \DeclareTextSymbol{\textquoteright}{OT4}{`\'}
2282 % Definition for \r A as in OT1:
2283 % \changes{v1.96}{2002/10/28}{%
2284 % coding change, to follow bug fix by DEK in plain.tex (pr/3469)}
2286 \DeclareTextCompositeCommand{\r}{OT4}{A}
2287 {\leavevmode\setbox\z@\hbox{!}\dimen@\ht\z@\advance\dimen@-1ex%
2288 \rlap{\raise.67\dimen@\hbox{\char23}}A}
2290 % In the OT4 encoding, \pounds~and \$ share a slot.
2291 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
2294 \DeclareTextCommand{\textdollar}{OT4}{\hmode@bgroup
2295 \ifdim \fontdimen\@ne\font >\z@
2301 \DeclareTextCommand{\textsterling}{OT4}{\hmode@bgroup
2302 \ifdim \fontdimen\@ne\font >\z@
2305 \fontshape{ui}\selectfont
2309 % Declare the composites.
2311 \DeclareTextComposite{\k}{OT4}{A}{129}
2312 \DeclareTextComposite{\'}{OT4}{C}{130}
2313 \DeclareTextComposite{\k}{OT4}{E}{134}
2314 \DeclareTextComposite{\'}{OT4}{N}{139}
2315 \DeclareTextComposite{\'}{OT4}{S}{145}
2316 \DeclareTextComposite{\'}{OT4}{Z}{153}
2317 \DeclareTextComposite{\.}{OT4}{Z}{155}
2318 \DeclareTextComposite{\k}{OT4}{a}{161}
2319 \DeclareTextComposite{\'}{OT4}{c}{162}
2320 \DeclareTextComposite{\k}{OT4}{e}{166}
2321 \DeclareTextComposite{\'}{OT4}{n}{171}
2322 \DeclareTextComposite{\'}{OT4}{s}{177}
2323 \DeclareTextComposite{\'}{OT4}{z}{185}
2324 \DeclareTextComposite{\.}{OT4}{z}{187}
2325 \DeclareTextComposite{\'}{OT4}{O}{211}
2326 \DeclareTextComposite{\'}{OT4}{o}{243}
2331 % \subsection{Definitions for the TS1 encoding}
2333 % \changes{v1.9c}{1997/05/04}{Added TS1 encoding v2.2.beta}
2334 % \changes{v1.9g}{1997/11/23}
2335 % {Use \cs{textperthousand}, \cs{textpertenthousand} and
2336 % \cs{textfractionsolidus} not
2337 % \cs{textpermill}, \cs{textpertenmill} and \cs{textfraction}.
2339 % \changes{v1.9h}{1997/12/17}
2340 % {Removed default settings, see next section.}
2344 \DeclareFontEncoding{TS1}{}{}
2345 \DeclareFontSubstitution{TS1}{cmr}{m}{n}
2347 % Some accents have to be built by hand.
2348 % Note that |\ooalign| and |\o@lign| must be inside a group.
2349 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
2352 \DeclareTextCommand{\capitalcedilla}{TS1}[1]
2354 \ooalign{\null#1\crcr\hidewidth\char11\hidewidth}\egroup}
2355 \DeclareTextCommand{\capitalogonek}{TS1}[1]
2357 \ooalign{\null#1\crcr\hidewidth\char12\hidewidth}\egroup}
2360 % Accents for capital letters.
2362 % These commands can be used by the end user either directly or through
2363 % definitions of the type
2365 % \DeclareTextCompositeCommand{\'}{T1}{X}{\capitalacute X}
2367 % None of the latter definitions are provided by default, since they
2368 % are probably rarely used.
2372 \DeclareTextAccent{\capitalgrave}{TS1}{0}
2373 \DeclareTextAccent{\capitalacute}{TS1}{1}
2374 \DeclareTextAccent{\capitalcircumflex}{TS1}{2}
2375 \DeclareTextAccent{\capitaltilde}{TS1}{3}
2376 \DeclareTextAccent{\capitaldieresis}{TS1}{4}
2377 \DeclareTextAccent{\capitalhungarumlaut}{TS1}{5}
2378 \DeclareTextAccent{\capitalring}{TS1}{6}
2379 \DeclareTextAccent{\capitalcaron}{TS1}{7}
2383 \DeclareTextAccent{\capitalbreve}{TS1}{8}
2384 \DeclareTextAccent{\capitalmacron}{TS1}{9}
2385 \DeclareTextAccent{\capitaldotaccent}{TS1}{10}
2389 % The tie accent was borrowed from the |cmmi| font. The tc fonts
2390 % now provide four tie accents, the first two are done in the
2391 % classical way with assymetric glyphs hanging out of their boxes;
2392 % the new ties are centered in their boxes like all other accents.
2393 % They need a name: please tell us if you know what to call them.
2397 \DeclareTextAccent{\t}{TS1}{26}
2398 \DeclareTextAccent{\capitaltie}{TS1}{27}
2399 \DeclareTextAccent{\newtie}{TS1}{28}
2400 \DeclareTextAccent{\capitalnewtie}{TS1}{29}
2403 % Compund word marks.
2405 % The text companion fonts contain two compound word marks of
2406 % different heights, one has |cap_height|, the other |asc_height|.
2409 \DeclareTextSymbol{\textcapitalcompwordmark}{TS1}{23}
2410 \DeclareTextSymbol{\textascendercompwordmark}{TS1}{31}
2413 % The text companion symbols.
2416 \DeclareTextSymbol{\textquotestraightbase}{TS1}{13}
2420 \DeclareTextSymbol{\textquotestraightdblbase}{TS1}{18}
2421 \DeclareTextSymbol{\texttwelveudash}{TS1}{21}
2422 \DeclareTextSymbol{\textthreequartersemdash}{TS1}{22}
2426 \DeclareTextSymbol{\textleftarrow}{TS1}{24}
2427 \DeclareTextSymbol{\textrightarrow}{TS1}{25}
2431 \DeclareTextSymbol{\textblank}{TS1}{32}
2432 \DeclareTextSymbol{\textdollar}{TS1}{36}
2433 \DeclareTextSymbol{\textquotesingle}{TS1}{39}
2437 \DeclareTextSymbol{\textasteriskcentered}{TS1}{42}
2439 % Note that '054 is a comma and '056 is a full stop: these make
2440 % numbers using oldstyle digits easier to input.
2442 \DeclareTextSymbol{\textdblhyphen}{TS1}{45}
2443 \DeclareTextSymbol{\textfractionsolidus}{TS1}{47}
2450 \DeclareTextSymbol{\textzerooldstyle}{TS1}{48}
2451 \DeclareTextSymbol{\textoneoldstyle}{TS1}{49}
2452 \DeclareTextSymbol{\texttwooldstyle}{TS1}{50}
2453 \DeclareTextSymbol{\textthreeoldstyle}{TS1}{51}
2454 \DeclareTextSymbol{\textfouroldstyle}{TS1}{52}
2455 \DeclareTextSymbol{\textfiveoldstyle}{TS1}{53}
2456 \DeclareTextSymbol{\textsixoldstyle}{TS1}{54}
2457 \DeclareTextSymbol{\textsevenoldstyle}{TS1}{55}
2461 \DeclareTextSymbol{\texteightoldstyle}{TS1}{56}
2462 \DeclareTextSymbol{\textnineoldstyle}{TS1}{57}
2465 % More text companion symbols.
2468 \DeclareTextSymbol{\textlangle}{TS1}{60}
2469 \DeclareTextSymbol{\textminus}{TS1}{61}
2470 \DeclareTextSymbol{\textrangle}{TS1}{62}
2474 \DeclareTextSymbol{\textmho}{TS1}{77}
2477 % \changes{v1.9r}{1999/01/06}{Minor documentation fix.}
2478 % The big circle is here to define the command \cs{textcircled}.
2479 % Formerly it was taken from the |cmsy| font.
2480 % \changes{v1.9h}{1997/12/17}{Changed to decimal codes in \cs{ooalign}.}
2481 % \changes{v1.9k}{1998/01/12}{Adding missing braces and \cs{ushape}.}
2482 % \changes{v1.9y}{2000/01/30}{Use \cs{hmode@bgroup} where applicable
2485 \DeclareTextSymbol{\textbigcircle}{TS1}{79}
2486 \DeclareTextCommand{\textcircled}{TS1}[1]{\hmode@bgroup
2488 \hfil \raise .07ex\hbox {\upshape#1}\hfil \crcr
2489 \char 79 % '117 = "4F
2494 % More text companion symbols.
2498 \DeclareTextSymbol{\textohm}{TS1}{87}
2502 \DeclareTextSymbol{\textlbrackdbl}{TS1}{91}
2503 \DeclareTextSymbol{\textrbrackdbl}{TS1}{93}
2504 \DeclareTextSymbol{\textuparrow}{TS1}{94}
2505 \DeclareTextSymbol{\textdownarrow}{TS1}{95}
2509 \DeclareTextSymbol{\textasciigrave}{TS1}{96}
2510 \DeclareTextSymbol{\textborn}{TS1}{98}
2511 \DeclareTextSymbol{\textdivorced}{TS1}{99}
2512 \DeclareTextSymbol{\textdied}{TS1}{100}
2516 \DeclareTextSymbol{\textleaf}{TS1}{108}
2517 \DeclareTextSymbol{\textmarried}{TS1}{109}
2518 \DeclareTextSymbol{\textmusicalnote}{TS1}{110}
2522 \DeclareTextSymbol{\texttildelow}{TS1}{126}
2525 % This glyph, |\textdblhyphenchar| is hanging, like the hyphenchar of
2529 \DeclareTextSymbol{\textdblhyphenchar}{TS1}{127}
2533 \DeclareTextSymbol{\textasciibreve}{TS1}{128}
2534 \DeclareTextSymbol{\textasciicaron}{TS1}{129}
2537 % This next glyph is \emph{not} the same as |\textquotedbl|.
2539 % \changes{v1.9p}{1998/06/12}{Corrected 130 and 131, see pr/2834}
2541 \DeclareTextSymbol{\textacutedbl}{TS1}{130}
2542 \DeclareTextSymbol{\textgravedbl}{TS1}{131}
2543 \DeclareTextSymbol{\textdagger}{TS1}{132}
2544 \DeclareTextSymbol{\textdaggerdbl}{TS1}{133}
2545 \DeclareTextSymbol{\textbardbl}{TS1}{134}
2546 \DeclareTextSymbol{\textperthousand}{TS1}{135}
2550 \DeclareTextSymbol{\textbullet}{TS1}{136}
2551 \DeclareTextSymbol{\textcelsius}{TS1}{137}
2552 \DeclareTextSymbol{\textdollaroldstyle}{TS1}{138}
2553 \DeclareTextSymbol{\textcentoldstyle}{TS1}{139}
2554 \DeclareTextSymbol{\textflorin}{TS1}{140}
2555 \DeclareTextSymbol{\textcolonmonetary}{TS1}{141}
2556 \DeclareTextSymbol{\textwon}{TS1}{142}
2557 \DeclareTextSymbol{\textnaira}{TS1}{143}
2561 \DeclareTextSymbol{\textguarani}{TS1}{144}
2562 \DeclareTextSymbol{\textpeso}{TS1}{145}
2563 \DeclareTextSymbol{\textlira}{TS1}{146}
2564 \DeclareTextSymbol{\textrecipe}{TS1}{147}
2565 \DeclareTextSymbol{\textinterrobang}{TS1}{148}
2566 \DeclareTextSymbol{\textinterrobangdown}{TS1}{149}
2567 \DeclareTextSymbol{\textdong}{TS1}{150}
2568 \DeclareTextSymbol{\texttrademark}{TS1}{151}
2572 \DeclareTextSymbol{\textpertenthousand}{TS1}{152}
2573 \DeclareTextSymbol{\textpilcrow}{TS1}{153}
2574 \DeclareTextSymbol{\textbaht}{TS1}{154}
2575 \DeclareTextSymbol{\textnumero}{TS1}{155}
2577 % This next name may change.
2578 % For the following sign we know only a german name, which is
2579 % abz\"uglich. The meaning is something like ``commercial minus''.
2580 % An ASCII ersatz is ./. (dot slash dot).
2581 % The temporary English name is |\textdiscount|.
2583 \DeclareTextSymbol{\textdiscount}{TS1}{156}
2584 \DeclareTextSymbol{\textestimated}{TS1}{157}
2585 \DeclareTextSymbol{\textopenbullet}{TS1}{158}
2586 \DeclareTextSymbol{\textservicemark}{TS1}{159}
2590 \DeclareTextSymbol{\textlquill}{TS1}{160}
2591 \DeclareTextSymbol{\textrquill}{TS1}{161}
2592 \DeclareTextSymbol{\textcent}{TS1}{162}
2593 \DeclareTextSymbol{\textsterling}{TS1}{163}
2594 \DeclareTextSymbol{\textcurrency}{TS1}{164}
2595 \DeclareTextSymbol{\textyen}{TS1}{165}
2596 \DeclareTextSymbol{\textbrokenbar}{TS1}{166}
2597 \DeclareTextSymbol{\textsection}{TS1}{167}
2601 \DeclareTextSymbol{\textasciidieresis}{TS1}{168}
2602 \DeclareTextSymbol{\textcopyright}{TS1}{169}
2603 \DeclareTextSymbol{\textordfeminine}{TS1}{170}
2604 \DeclareTextSymbol{\textcopyleft}{TS1}{171}
2605 \DeclareTextSymbol{\textlnot}{TS1}{172}
2608 % The meaning of the circled-P is ``sound recording copyright''.
2610 % \changes{v1.9p}{1998/06/12}{Renamed \cs{textmacron} pr/2840}
2612 \DeclareTextSymbol{\textcircledP}{TS1}{173}
2613 \DeclareTextSymbol{\textregistered}{TS1}{174}
2614 \DeclareTextSymbol{\textasciimacron}{TS1}{175}
2618 \DeclareTextSymbol{\textdegree}{TS1}{176}
2619 \DeclareTextSymbol{\textpm}{TS1}{177}
2620 \DeclareTextSymbol{\texttwosuperior}{TS1}{178}
2621 \DeclareTextSymbol{\textthreesuperior}{TS1}{179}
2622 \DeclareTextSymbol{\textasciiacute}{TS1}{180}
2623 \DeclareTextSymbol{\textmu}{TS1}{181} % micro sign
2624 \DeclareTextSymbol{\textparagraph}{TS1}{182}
2625 \DeclareTextSymbol{\textperiodcentered}{TS1}{183}
2629 \DeclareTextSymbol{\textreferencemark}{TS1}{184}
2630 \DeclareTextSymbol{\textonesuperior}{TS1}{185}
2631 \DeclareTextSymbol{\textordmasculine}{TS1}{186}
2632 \DeclareTextSymbol{\textsurd}{TS1}{187}
2633 \DeclareTextSymbol{\textonequarter}{TS1}{188}
2634 \DeclareTextSymbol{\textonehalf}{TS1}{189}
2635 \DeclareTextSymbol{\textthreequarters}{TS1}{190}
2636 \DeclareTextSymbol{\texteuro}{TS1}{191}
2640 \DeclareTextSymbol{\texttimes}{TS1}{214}
2644 \DeclareTextSymbol{\textdiv}{TS1}{246}
2648 % \subsection{Definitions for the TU encoding}
2650 % \changes{v2.0a}{2016/12/04}{Added TU encoding}
2651 % \changes{v2.0b}{2017/01/23}{Added TU specific commands in ASCII range pr/4500}
2652 % \changes{v2.0c}{2017/01/24}{TeX ligature syntax for xetex and luatex reversed}
2653 % \changes{v2.0c}{2017/01/24}{Make \cs{textasteriskcentered} U+2217 not U+204E}
2654 % \changes{v2.0c}{2017/01/24}{Declare TU composites for i and j}
2655 % \changes{v2.0d}{2017/01/24}{Declare macron composites for YyGg}
2656 % \changes{v2.0e}{2017/02/12}{Declare fallback code for \cs{textasteriskcentered}}
2657 % \changes{v2.0f}{2017/02/19}{%
2658 % declare composites with empty base for hat and tilde,
2659 % use same slots for \cs{textasciicircum} ans \cs{textasciitilde}}
2660 % \changes{v2.0f}{2017/02/19}{%
2661 % declare straight quotes using new \cs{remove@tlig} command}
2662 % \changes{v2.0g}{2017/02/22}{Fix typo introduced at 2.0f}
2663 % \changes{v2.0h}{2017/02/24}{introduce \cs{DeclareUnicodeAccent}}%
2664 % The TU encoding was originally introduced in the contributed
2665 % package \texttt{fontspec} as a Unicode encoding for XeTeX and
2668 % Normally for these engines, the input consists of Unicode characters
2669 % encoded in UTF-8. There is therefore little need to use the
2670 % traditional (ASCII) encoding-specific commands
2672 % However, sometimes (e.g. for backwards compatibility) it can be
2673 % useful to access these Unicode characters via such ASCII-based
2674 % markup. The commands provided here
2675 % Cover the characters in the T1 and TS1 encodings, but specified in
2676 % Unicode position. Almost all the command names have been
2677 % mechanically extracted form the \texttt{inputenc} UTF-8 support,
2678 % which is essentially doing a reverse mapping from UTF-8 data to
2679 % \LaTeX\ LICR commands.
2681 % A few additional names for character which were supported in the
2682 % original \texttt{fontspec} version of this file have also been
2683 % added, even though they are not currently in the default
2684 % \texttt{inputenc} UTF-8 declarations.
2689 % In the base interface the Unicode encoding is always known as TU
2690 % But we parameterise the encoding name to allow for modelling
2691 % differences in Unicode support by different fonts.
2693 \providecommand\UnicodeEncodingName{TU}
2695 % As the Unicode encoding, TU, is only currently available with XeTeX
2696 % or LuaTeX, we detect these engines first, and make adjustments for the
2697 % differing font loading syntax. For other engines, we issue a warning
2698 % then abort this file, switching back to T1 encoding.
2700 \begingroup\expandafter\expandafter\expandafter\endgroup
2701 \expandafter\ifx\csname XeTeXrevision\endcsname\relax
2705 \begingroup\expandafter\expandafter\expandafter\endgroup
2706 \expandafter\ifx\csname directlua\endcsname\relax
2709 % Not LuaTeX or XeTeX, abort with a warning.
2711 \PackageWarningNoLine{fontenc}
2712 {\UnicodeEncodingName\space
2713 encoding is only available with XeTeX and LuaTeX.\MessageBreak
2714 Defaulting to T1 encoding}
2715 \def\encodingdefault{T1}
2716 \expandafter\expandafter\expandafter\endinput
2725 \def\UnicodeFontTeXLigatures{+tlig;}
2730 \def\@remove@tlig##1{\@remove@tlig@##1\@nil#1\@nil\relax}
2731 \def\@remove@tlig@##1#1{\@remove@tlig@@##1}}
2732 \edef\reserved@b{\detokenize{+tlig;}}
2733 \expandafter\reserved@a\expandafter{\reserved@b}
2734 \def\@remove@tlig@@#1\@nil#2\relax{#1}
2738 \def\remove@tlig#1{%
2741 \expandafter\@remove@tlig\expandafter{\fontname\font}%
2755 \def\UnicodeFontTeXLigatures{mapping=tex-text;}
2759 \def\remove@tlig#1{\XeTeXglyph\numexpr\XeTeXcharglyph#1\relax}
2767 \def\UnicodeFontFile#1#2{"[#1]:#2"}
2768 \def\UnicodeFontName#1#2{"#1:#2"}
2771 % Declare the encoding
2773 \DeclareFontEncoding\UnicodeEncodingName{}{}
2776 % Declare accent command to use a postpended combining character
2777 % rather than the TeX |\accent| primitive
2779 \def\add@unicode@accent#1#2{%
2780 \if\relax\detokenize{#2}\relax^^a0\else#2\fi
2785 \def\DeclareUnicodeAccent#1#2#3{%
2786 \DeclareTextCommand{#1}{#2}{\add@unicode@accent{#3}}%
2790 % Wrapper around |\DeclareTextCompositeCommand| that uses the declared
2791 % composite if it exists in the current font or fals back to the default
2792 % definition for the TU accent if not.
2795 \catcode\z@=11\relax
2796 \gdef\DeclareUnicodeComposite#1#2#3{%
2797 \def\reserved@a##1##2{%
2798 \DeclareTextCompositeCommand#1\UnicodeEncodingName{#2}{%
2799 \iffontchar\font#3 ##2%
2801 \expandafter\expandafter\expandafter\extract@default@composite
2802 \csname\UnicodeEncodingName\string#1\endcsname{#2}\@nil
2806 \expandafter\reserved@a\expandafter{\reserved@b}{^^@}}}%
2811 \def\extract@default@composite#1{%
2812 \ifx\@text@composite#1%
2813 \expandafter\extract@default@composite@a
2815 \expandafter\extract@default@composite@b\expandafter#1%
2820 \def\extract@default@composite@a#1\@text@composite#2\@nil{%
2821 \def\reserved@b{#2}}
2822 \def\extract@default@composite@b#1#2\@nil{%
2823 \def\reserved@b{#1#2}}
2827 \DeclareTextCommand\textquotesingle \UnicodeEncodingName{%
2828 \remove@tlig{"0027}}
2829 \DeclareTextCommand\textasciigrave \UnicodeEncodingName{%
2830 \remove@tlig{"0060}}
2831 \DeclareTextCommand\textquotedbl \UnicodeEncodingName{%
2832 \remove@tlig{"0022}}
2836 \DeclareTextSymbol{\textdollar} \UnicodeEncodingName{"0024}
2837 \DeclareTextSymbol{\textless} \UnicodeEncodingName{"003C}
2838 \DeclareTextSymbol{\textgreater} \UnicodeEncodingName{"003E}
2839 \DeclareTextSymbol{\textbackslash} \UnicodeEncodingName{"005C}
2840 \DeclareTextSymbol{\textasciicircum} \UnicodeEncodingName{"005E}
2841 \DeclareTextSymbol{\textunderscore} \UnicodeEncodingName{"005F}
2842 \DeclareTextSymbol{\textbraceleft} \UnicodeEncodingName{"007B}
2843 \DeclareTextSymbol{\textbar} \UnicodeEncodingName{"007C}
2844 \DeclareTextSymbol{\textbraceright} \UnicodeEncodingName{"007D}
2845 \DeclareTextSymbol{\textasciitilde} \UnicodeEncodingName{"007E}
2846 \DeclareTextSymbol{\textexclamdown} \UnicodeEncodingName{"00A1}
2847 \DeclareTextSymbol{\textcent} \UnicodeEncodingName{"00A2}
2848 \DeclareTextSymbol{\textsterling} \UnicodeEncodingName{"00A3}
2849 \DeclareTextSymbol{\textcurrency} \UnicodeEncodingName{"00A4}
2850 \DeclareTextSymbol{\textyen} \UnicodeEncodingName{"00A5}
2851 \DeclareTextSymbol{\textbrokenbar} \UnicodeEncodingName{"00A6}
2852 \DeclareTextSymbol{\textsection} \UnicodeEncodingName{"00A7}
2853 \DeclareTextSymbol{\textasciidieresis} \UnicodeEncodingName{"00A8}
2854 \DeclareTextSymbol{\textcopyright} \UnicodeEncodingName{"00A9}
2855 \DeclareTextSymbol{\textordfeminine} \UnicodeEncodingName{"00AA}
2856 \DeclareTextSymbol{\guillemotleft} \UnicodeEncodingName{"00AB}
2857 \DeclareTextSymbol{\textlnot} \UnicodeEncodingName{"00AC}
2858 \DeclareTextSymbol{\textregistered} \UnicodeEncodingName{"00AE}
2859 \DeclareTextSymbol{\textasciimacron} \UnicodeEncodingName{"00AF}
2860 \DeclareTextSymbol{\textdegree} \UnicodeEncodingName{"00B0}
2861 \DeclareTextSymbol{\textpm} \UnicodeEncodingName{"00B1}
2862 \DeclareTextSymbol{\texttwosuperior} \UnicodeEncodingName{"00B2}
2863 \DeclareTextSymbol{\textthreesuperior} \UnicodeEncodingName{"00B3}
2864 \DeclareTextSymbol{\textasciiacute} \UnicodeEncodingName{"00B4}
2865 \DeclareTextSymbol{\textmu} \UnicodeEncodingName{"00B5}
2866 \DeclareTextSymbol{\textparagraph} \UnicodeEncodingName{"00B6}
2867 \DeclareTextSymbol{\textperiodcentered} \UnicodeEncodingName{"00B7}
2868 \DeclareTextSymbol{\textonesuperior} \UnicodeEncodingName{"00B9}
2869 \DeclareTextSymbol{\textordmasculine} \UnicodeEncodingName{"00BA}
2870 \DeclareTextSymbol{\guillemotright} \UnicodeEncodingName{"00BB}
2871 \DeclareTextSymbol{\textonequarter} \UnicodeEncodingName{"00BC}
2872 \DeclareTextSymbol{\textonehalf} \UnicodeEncodingName{"00BD}
2873 \DeclareTextSymbol{\textthreequarters} \UnicodeEncodingName{"00BE}
2874 \DeclareTextSymbol{\textquestiondown} \UnicodeEncodingName{"00BF}
2875 \DeclareTextSymbol{\AE} \UnicodeEncodingName{"00C6}
2876 \DeclareTextSymbol{\DH} \UnicodeEncodingName{"00D0}
2877 \DeclareTextSymbol{\texttimes} \UnicodeEncodingName{"00D7}
2878 \DeclareTextSymbol{\O} \UnicodeEncodingName{"00D8}
2879 \DeclareTextSymbol{\TH} \UnicodeEncodingName{"00DE}
2880 \DeclareTextSymbol{\ss} \UnicodeEncodingName{"00DF}
2881 \DeclareTextSymbol{\ae} \UnicodeEncodingName{"00E6}
2882 \DeclareTextSymbol{\dh} \UnicodeEncodingName{"00F0}
2883 \DeclareTextSymbol{\textdiv} \UnicodeEncodingName{"00F7}
2884 \DeclareTextSymbol{\o} \UnicodeEncodingName{"00F8}
2885 \DeclareTextSymbol{\th} \UnicodeEncodingName{"00FE}
2886 \DeclareTextSymbol{\DJ} \UnicodeEncodingName{"0110}
2887 \DeclareTextSymbol{\dj} \UnicodeEncodingName{"0111}
2888 \DeclareTextSymbol{\i} \UnicodeEncodingName{"0131}
2889 \DeclareTextSymbol{\IJ} \UnicodeEncodingName{"0132}
2890 \DeclareTextSymbol{\ij} \UnicodeEncodingName{"0133}
2891 \DeclareTextSymbol{\L} \UnicodeEncodingName{"0141}
2892 \DeclareTextSymbol{\l} \UnicodeEncodingName{"0142}
2893 \DeclareTextSymbol{\NG} \UnicodeEncodingName{"014A}
2894 \DeclareTextSymbol{\ng} \UnicodeEncodingName{"014B}
2895 \DeclareTextSymbol{\OE} \UnicodeEncodingName{"0152}
2896 \DeclareTextSymbol{\oe} \UnicodeEncodingName{"0153}
2897 \DeclareTextSymbol{\textflorin} \UnicodeEncodingName{"0192}
2898 \DeclareTextSymbol{\j} \UnicodeEncodingName{"0237}
2899 \DeclareTextSymbol{\textasciicaron} \UnicodeEncodingName{"02C7}
2900 \DeclareTextSymbol{\textasciibreve} \UnicodeEncodingName{"02D8}
2901 \DeclareTextSymbol{\textacutedbl} \UnicodeEncodingName{"02DD}
2902 \DeclareTextSymbol{\textgravedbl} \UnicodeEncodingName{"02F5}
2903 \DeclareTextSymbol{\texttildelow} \UnicodeEncodingName{"02F7}
2904 \DeclareTextSymbol{\textbaht} \UnicodeEncodingName{"0E3F}
2905 \DeclareTextSymbol{\SS} \UnicodeEncodingName{"1E9E}
2906 \DeclareTextSymbol{\textcompwordmark} \UnicodeEncodingName{"200C}
2907 \DeclareTextSymbol{\textendash} \UnicodeEncodingName{"2013}
2908 \DeclareTextSymbol{\textemdash} \UnicodeEncodingName{"2014}
2909 \DeclareTextSymbol{\textbardbl} \UnicodeEncodingName{"2016}
2910 \DeclareTextSymbol{\textquoteleft} \UnicodeEncodingName{"2018}
2911 \DeclareTextSymbol{\textquoteright} \UnicodeEncodingName{"2019}
2912 \DeclareTextSymbol{\quotesinglbase} \UnicodeEncodingName{"201A}
2913 \DeclareTextSymbol{\textquotedblleft} \UnicodeEncodingName{"201C}
2914 \DeclareTextSymbol{\textquotedblright} \UnicodeEncodingName{"201D}
2915 \DeclareTextSymbol{\quotedblbase} \UnicodeEncodingName{"201E}
2916 \DeclareTextSymbol{\textdagger} \UnicodeEncodingName{"2020}
2917 \DeclareTextSymbol{\textdaggerdbl} \UnicodeEncodingName{"2021}
2918 \DeclareTextSymbol{\textbullet} \UnicodeEncodingName{"2022}
2919 \DeclareTextSymbol{\textellipsis} \UnicodeEncodingName{"2026}
2920 \DeclareTextSymbol{\textperthousand} \UnicodeEncodingName{"2030}
2921 \DeclareTextSymbol{\textpertenthousand} \UnicodeEncodingName{"2031}
2922 \DeclareTextSymbol{\guilsinglleft} \UnicodeEncodingName{"2039}
2923 \DeclareTextSymbol{\guilsinglright} \UnicodeEncodingName{"203A}
2924 \DeclareTextSymbol{\textreferencemark} \UnicodeEncodingName{"203B}
2925 \DeclareTextSymbol{\textinterrobang} \UnicodeEncodingName{"203D}
2926 \DeclareTextSymbol{\textfractionsolidus} \UnicodeEncodingName{"2044}
2927 \DeclareTextSymbol{\textlquill} \UnicodeEncodingName{"2045}
2928 \DeclareTextSymbol{\textrquill} \UnicodeEncodingName{"2046}
2929 \DeclareTextSymbol{\textdiscount} \UnicodeEncodingName{"2052}
2930 \DeclareTextSymbol{\textcolonmonetary} \UnicodeEncodingName{"20A1}
2931 \DeclareTextSymbol{\textlira} \UnicodeEncodingName{"20A4}
2932 \DeclareTextSymbol{\textnaira} \UnicodeEncodingName{"20A6}
2933 \DeclareTextSymbol{\textwon} \UnicodeEncodingName{"20A9}
2934 \DeclareTextSymbol{\textdong} \UnicodeEncodingName{"20AB}
2935 \DeclareTextSymbol{\texteuro} \UnicodeEncodingName{"20AC}
2936 \DeclareTextSymbol{\textpeso} \UnicodeEncodingName{"20B1}
2937 \DeclareTextSymbol{\textcelsius} \UnicodeEncodingName{"2103}
2938 \DeclareTextSymbol{\textnumero} \UnicodeEncodingName{"2116}
2939 \DeclareTextSymbol{\textcircledP} \UnicodeEncodingName{"2117}
2940 \DeclareTextSymbol{\textrecipe} \UnicodeEncodingName{"211E}
2941 \DeclareTextSymbol{\textservicemark} \UnicodeEncodingName{"2120}
2942 \DeclareTextSymbol{\texttrademark} \UnicodeEncodingName{"2122}
2943 \DeclareTextSymbol{\textohm} \UnicodeEncodingName{"2126}
2944 \DeclareTextSymbol{\textmho} \UnicodeEncodingName{"2127}
2945 \DeclareTextSymbol{\textestimated} \UnicodeEncodingName{"212E}
2946 \DeclareTextSymbol{\textleftarrow} \UnicodeEncodingName{"2190}
2947 \DeclareTextSymbol{\textuparrow} \UnicodeEncodingName{"2191}
2948 \DeclareTextSymbol{\textrightarrow} \UnicodeEncodingName{"2192}
2949 \DeclareTextSymbol{\textdownarrow} \UnicodeEncodingName{"2193}
2950 \DeclareTextSymbol{\textminus} \UnicodeEncodingName{"2212}
2952 % Not all fonts have U+2217 but using U+002A requires some adjustment.
2954 \DeclareTextCommand{\textasteriskcentered}\UnicodeEncodingName{%
2955 \iffontchar\font"2217 \char"2217 \else
2958 {\the\dimexpr1.2\dimexpr\f@size pt\relax}%
2961 \raisebox{-0.6ex}[\dimexpr\height-0.6ex][0pt]{*}%
2967 \DeclareTextSymbol{\textsurd} \UnicodeEncodingName{"221A}
2968 \DeclareTextSymbol{\textlangle} \UnicodeEncodingName{"2329}
2969 \DeclareTextSymbol{\textrangle} \UnicodeEncodingName{"232A}
2970 \DeclareTextSymbol{\textblank} \UnicodeEncodingName{"2422}
2971 \DeclareTextSymbol{\textvisiblespace} \UnicodeEncodingName{"2423}
2972 \DeclareTextSymbol{\textopenbullet} \UnicodeEncodingName{"25E6}
2973 \DeclareTextSymbol{\textbigcircle} \UnicodeEncodingName{"25EF}
2974 \DeclareTextSymbol{\textmusicalnote} \UnicodeEncodingName{"266A}
2975 \DeclareTextSymbol{\textmarried} \UnicodeEncodingName{"26AD}
2976 \DeclareTextSymbol{\textdivorced} \UnicodeEncodingName{"26AE}
2977 \DeclareTextSymbol{\textinterrobangdown} \UnicodeEncodingName{"2E18}
2979 % Accents must be declared before the composites that use them.
2981 \DeclareUnicodeAccent{\`} \UnicodeEncodingName{"0300}
2982 \DeclareUnicodeAccent{\'} \UnicodeEncodingName{"0301}
2983 \DeclareUnicodeAccent{\^} \UnicodeEncodingName{"0302}
2984 \DeclareUnicodeAccent{\~} \UnicodeEncodingName{"0303}
2985 \DeclareUnicodeAccent{\=} \UnicodeEncodingName{"0304}
2986 \DeclareUnicodeAccent{\u} \UnicodeEncodingName{"0306}
2987 \DeclareUnicodeAccent{\.} \UnicodeEncodingName{"0307}
2988 \DeclareUnicodeAccent{\"} \UnicodeEncodingName{"0308}
2989 \DeclareUnicodeAccent{\r} \UnicodeEncodingName{"030A}
2990 \DeclareUnicodeAccent{\H} \UnicodeEncodingName{"030B}
2991 \DeclareUnicodeAccent{\v} \UnicodeEncodingName{"030C}
2992 \DeclareUnicodeAccent{\b} \UnicodeEncodingName{"0332}
2993 \DeclareUnicodeAccent{\d} \UnicodeEncodingName{"0323}
2994 \DeclareUnicodeAccent{\c} \UnicodeEncodingName{"0327}
2995 \DeclareUnicodeAccent{\k} \UnicodeEncodingName{"0328}
2996 \DeclareTextCommand\textcommabelow \UnicodeEncodingName[1]
2997 {\hmode@bgroup\ooalign{\null#1\crcr\hidewidth\raise-.31ex
2998 \hbox{\check@mathfonts\fontsize\ssf@size\z@
2999 \math@fontsfalse\selectfont,}\hidewidth}\egroup}
3003 \DeclareUnicodeComposite{\^} {}{"005E}
3004 \DeclareUnicodeComposite{\~} {}{"007E}
3008 \DeclareUnicodeComposite{\`} {A}{"00C0}
3009 \DeclareUnicodeComposite{\'} {A}{"00C1}
3010 \DeclareUnicodeComposite{\^} {A}{"00C2}
3011 \DeclareUnicodeComposite{\~} {A}{"00C3}
3012 \DeclareUnicodeComposite{\"} {A}{"00C4}
3013 \DeclareUnicodeComposite{\r} {A}{"00C5}
3014 \DeclareUnicodeComposite{\c} {C}{"00C7}
3015 \DeclareUnicodeComposite{\`} {E}{"00C8}
3016 \DeclareUnicodeComposite{\'} {E}{"00C9}
3017 \DeclareUnicodeComposite{\^} {E}{"00CA}
3018 \DeclareUnicodeComposite{\"} {E}{"00CB}
3019 \DeclareUnicodeComposite{\`} {I}{"00CC}
3020 \DeclareUnicodeComposite{\'} {I}{"00CD}
3021 \DeclareUnicodeComposite{\^} {I}{"00CE}
3022 \DeclareUnicodeComposite{\"} {I}{"00CF}
3023 \DeclareUnicodeComposite{\~} {N}{"00D1}
3024 \DeclareUnicodeComposite{\`} {O}{"00D2}
3025 \DeclareUnicodeComposite{\'} {O}{"00D3}
3026 \DeclareUnicodeComposite{\^} {O}{"00D4}
3027 \DeclareUnicodeComposite{\~} {O}{"00D5}
3028 \DeclareUnicodeComposite{\"} {O}{"00D6}
3029 \DeclareUnicodeComposite{\`} {U}{"00D9}
3030 \DeclareUnicodeComposite{\'} {U}{"00DA}
3031 \DeclareUnicodeComposite{\^} {U}{"00DB}
3032 \DeclareUnicodeComposite{\"} {U}{"00DC}
3033 \DeclareUnicodeComposite{\'} {Y}{"00DD}
3034 \DeclareUnicodeComposite{\`} {a}{"00E0}
3035 \DeclareUnicodeComposite{\'} {a}{"00E1}
3036 \DeclareUnicodeComposite{\^} {a}{"00E2}
3037 \DeclareUnicodeComposite{\~} {a}{"00E3}
3038 \DeclareUnicodeComposite{\"} {a}{"00E4}
3039 \DeclareUnicodeComposite{\r} {a}{"00E5}
3040 \DeclareUnicodeComposite{\c} {c}{"00E7}
3041 \DeclareUnicodeComposite{\`} {e}{"00E8}
3042 \DeclareUnicodeComposite{\'} {e}{"00E9}
3043 \DeclareUnicodeComposite{\^} {e}{"00EA}
3044 \DeclareUnicodeComposite{\"} {e}{"00EB}
3045 \DeclareUnicodeComposite{\`} \i {"00EC}
3046 \DeclareUnicodeComposite{\`} {i}{"00EC}
3047 \DeclareUnicodeComposite{\'} \i {"00ED}
3048 \DeclareUnicodeComposite{\'} {i}{"00ED}
3049 \DeclareUnicodeComposite{\^} \i {"00EE}
3050 \DeclareUnicodeComposite{\^} {i}{"00EE}
3051 \DeclareUnicodeComposite{\"} \i {"00EF}
3052 \DeclareUnicodeComposite{\"} {i}{"00EF}
3053 \DeclareUnicodeComposite{\~} {n}{"00F1}
3054 \DeclareUnicodeComposite{\`} {o}{"00F2}
3055 \DeclareUnicodeComposite{\'} {o}{"00F3}
3056 \DeclareUnicodeComposite{\^} {o}{"00F4}
3057 \DeclareUnicodeComposite{\~} {o}{"00F5}
3058 \DeclareUnicodeComposite{\"} {o}{"00F6}
3059 \DeclareUnicodeComposite{\`} {u}{"00F9}
3060 \DeclareUnicodeComposite{\'} {u}{"00FA}
3061 \DeclareUnicodeComposite{\^} {u}{"00FB}
3062 \DeclareUnicodeComposite{\"} {u}{"00FC}
3063 \DeclareUnicodeComposite{\'} {y}{"00FD}
3064 \DeclareUnicodeComposite{\"} {y}{"00FF}
3065 \DeclareUnicodeComposite{\=} {A}{"0100}
3066 \DeclareUnicodeComposite{\=} {a}{"0101}
3067 \DeclareUnicodeComposite{\u} {A}{"0102}
3068 \DeclareUnicodeComposite{\u} {a}{"0103}
3069 \DeclareUnicodeComposite{\k} {A}{"0104}
3070 \DeclareUnicodeComposite{\k} {a}{"0105}
3071 \DeclareUnicodeComposite{\'} {C}{"0106}
3072 \DeclareUnicodeComposite{\'} {c}{"0107}
3073 \DeclareUnicodeComposite{\^} {C}{"0108}
3074 \DeclareUnicodeComposite{\^} {c}{"0109}
3075 \DeclareUnicodeComposite{\.} {C}{"010A}
3076 \DeclareUnicodeComposite{\.} {c}{"010B}
3077 \DeclareUnicodeComposite{\v} {C}{"010C}
3078 \DeclareUnicodeComposite{\v} {c}{"010D}
3079 \DeclareUnicodeComposite{\v} {D}{"010E}
3080 \DeclareUnicodeComposite{\v} {d}{"010F}
3081 \DeclareUnicodeComposite{\=} {E}{"0112}
3082 \DeclareUnicodeComposite{\=} {e}{"0113}
3083 \DeclareUnicodeComposite{\u} {E}{"0114}
3084 \DeclareUnicodeComposite{\u} {e}{"0115}
3085 \DeclareUnicodeComposite{\.} {E}{"0116}
3086 \DeclareUnicodeComposite{\.} {e}{"0117}
3087 \DeclareUnicodeComposite{\k} {E}{"0118}
3088 \DeclareUnicodeComposite{\k} {e}{"0119}
3089 \DeclareUnicodeComposite{\v} {E}{"011A}
3090 \DeclareUnicodeComposite{\v} {e}{"011B}
3091 \DeclareUnicodeComposite{\^} {G}{"011C}
3092 \DeclareUnicodeComposite{\^} {g}{"011D}
3093 \DeclareUnicodeComposite{\u} {G}{"011E}
3094 \DeclareUnicodeComposite{\u} {g}{"011F}
3095 \DeclareUnicodeComposite{\.} {G}{"0120}
3096 \DeclareUnicodeComposite{\.} {g}{"0121}
3097 \DeclareUnicodeComposite{\c} {G}{"0122}
3098 \DeclareUnicodeComposite{\c} {g}{"0123}
3099 \DeclareUnicodeComposite{\^} {H}{"0124}
3100 \DeclareUnicodeComposite{\^} {h}{"0125}
3101 \DeclareUnicodeComposite{\~} {I}{"0128}
3102 \DeclareUnicodeComposite{\~} \i {"0129}
3103 \DeclareUnicodeComposite{\~} {i}{"0129}
3104 \DeclareUnicodeComposite{\=} {I}{"012A}
3105 \DeclareUnicodeComposite{\=} \i {"012B}
3106 \DeclareUnicodeComposite{\=} {i}{"012B}
3107 \DeclareUnicodeComposite{\u} {I}{"012C}
3108 \DeclareUnicodeComposite{\u} \i {"012D}
3109 \DeclareUnicodeComposite{\u} {i}{"012D}
3110 \DeclareUnicodeComposite{\k} {I}{"012E}
3111 \DeclareUnicodeComposite{\k} \i {"012F}
3112 \DeclareUnicodeComposite{\k} {i}{"012F}
3113 \DeclareUnicodeComposite{\.} {I}{"0130}
3114 \DeclareUnicodeComposite{\^} {J}{"0134}
3115 \DeclareUnicodeComposite{\^} \j {"0135}
3116 \DeclareUnicodeComposite{\^} {j}{"0135}
3117 \DeclareUnicodeComposite{\c} {K}{"0136}
3118 \DeclareUnicodeComposite{\c} {k}{"0137}
3119 \DeclareUnicodeComposite{\'} {L}{"0139}
3120 \DeclareUnicodeComposite{\'} {l}{"013A}
3121 \DeclareUnicodeComposite{\c} {L}{"013B}
3122 \DeclareUnicodeComposite{\c} {l}{"013C}
3123 \DeclareUnicodeComposite{\v} {L}{"013D}
3124 \DeclareUnicodeComposite{\v} {l}{"013E}
3125 \DeclareUnicodeComposite{\'} {N}{"0143}
3126 \DeclareUnicodeComposite{\'} {n}{"0144}
3127 \DeclareUnicodeComposite{\c} {N}{"0145}
3128 \DeclareUnicodeComposite{\c} {n}{"0146}
3129 \DeclareUnicodeComposite{\v} {N}{"0147}
3130 \DeclareUnicodeComposite{\v} {n}{"0148}
3131 \DeclareUnicodeComposite{\=} {O}{"014C}
3132 \DeclareUnicodeComposite{\=} {o}{"014D}
3133 \DeclareUnicodeComposite{\u} {O}{"014E}
3134 \DeclareUnicodeComposite{\u} {o}{"014F}
3135 \DeclareUnicodeComposite{\H} {O}{"0150}
3136 \DeclareUnicodeComposite{\H} {o}{"0151}
3137 \DeclareUnicodeComposite{\'} {R}{"0154}
3138 \DeclareUnicodeComposite{\'} {r}{"0155}
3139 \DeclareUnicodeComposite{\c} {R}{"0156}
3140 \DeclareUnicodeComposite{\c} {r}{"0157}
3141 \DeclareUnicodeComposite{\v} {R}{"0158}
3142 \DeclareUnicodeComposite{\v} {r}{"0159}
3143 \DeclareUnicodeComposite{\'} {S}{"015A}
3144 \DeclareUnicodeComposite{\'} {s}{"015B}
3145 \DeclareUnicodeComposite{\^} {S}{"015C}
3146 \DeclareUnicodeComposite{\^} {s}{"015D}
3147 \DeclareUnicodeComposite{\c} {S}{"015E}
3148 \DeclareUnicodeComposite{\c} {s}{"015F}
3149 \DeclareUnicodeComposite{\v} {S}{"0160}
3150 \DeclareUnicodeComposite{\v} {s}{"0161}
3151 \DeclareUnicodeComposite{\c} {T}{"0162}
3152 \DeclareUnicodeComposite{\c} {t}{"0163}
3153 \DeclareUnicodeComposite{\v} {T}{"0164}
3154 \DeclareUnicodeComposite{\v} {t}{"0165}
3155 \DeclareUnicodeComposite{\~} {U}{"0168}
3156 \DeclareUnicodeComposite{\~} {u}{"0169}
3157 \DeclareUnicodeComposite{\=} {U}{"016A}
3158 \DeclareUnicodeComposite{\=} {u}{"016B}
3159 \DeclareUnicodeComposite{\u} {U}{"016C}
3160 \DeclareUnicodeComposite{\u} {u}{"016D}
3161 \DeclareUnicodeComposite{\r} {U}{"016E}
3162 \DeclareUnicodeComposite{\r} {u}{"016F}
3163 \DeclareUnicodeComposite{\H} {U}{"0170}
3164 \DeclareUnicodeComposite{\H} {u}{"0171}
3165 \DeclareUnicodeComposite{\k} {U}{"0172}
3166 \DeclareUnicodeComposite{\k} {u}{"0173}
3167 \DeclareUnicodeComposite{\^} {W}{"0174}
3168 \DeclareUnicodeComposite{\^} {w}{"0175}
3169 \DeclareUnicodeComposite{\^} {Y}{"0176}
3170 \DeclareUnicodeComposite{\^} {y}{"0177}
3171 \DeclareUnicodeComposite{\"} {Y}{"0178}
3172 \DeclareUnicodeComposite{\'} {Z}{"0179}
3173 \DeclareUnicodeComposite{\'} {z}{"017A}
3174 \DeclareUnicodeComposite{\.} {Z}{"017B}
3175 \DeclareUnicodeComposite{\.} {z}{"017C}
3176 \DeclareUnicodeComposite{\v} {Z}{"017D}
3177 \DeclareUnicodeComposite{\v} {z}{"017E}
3178 \DeclareUnicodeComposite{\v} {A}{"01CD}
3179 \DeclareUnicodeComposite{\v} {a}{"01CE}
3180 \DeclareUnicodeComposite{\v} {I}{"01CF}
3181 \DeclareUnicodeComposite{\v} \i {"01D0}
3182 \DeclareUnicodeComposite{\v} {i}{"01D0}
3183 \DeclareUnicodeComposite{\v} {O}{"01D1}
3184 \DeclareUnicodeComposite{\v} {o}{"01D2}
3185 \DeclareUnicodeComposite{\v} {U}{"01D3}
3186 \DeclareUnicodeComposite{\v} {u}{"01D4}
3187 \DeclareUnicodeComposite{\=} \AE{"01E2}
3188 \DeclareUnicodeComposite{\=} \ae{"01E3}
3189 \DeclareUnicodeComposite{\v} {G}{"01E6}
3190 \DeclareUnicodeComposite{\v} {g}{"01E7}
3191 \DeclareUnicodeComposite{\v} {K}{"01E8}
3192 \DeclareUnicodeComposite{\v} {k}{"01E9}
3193 \DeclareUnicodeComposite{\k} {O}{"01EA}
3194 \DeclareUnicodeComposite{\k} {o}{"01EB}
3195 \DeclareUnicodeComposite{\v} \j {"01F0}
3196 \DeclareUnicodeComposite{\v} {j}{"01F0}
3197 \DeclareUnicodeComposite{\'} {G}{"01F4}
3198 \DeclareUnicodeComposite{\'} {g}{"01F5}
3199 \DeclareUnicodeComposite{\textcommabelow}{S}{"0218}
3200 \DeclareUnicodeComposite{\textcommabelow}{s}{"0219}
3201 \DeclareUnicodeComposite{\textcommabelow}{T}{"021A}
3202 \DeclareUnicodeComposite{\textcommabelow}{t}{"021B}
3203 \DeclareUnicodeComposite{\=} {Y}{"0232}
3204 \DeclareUnicodeComposite{\=} {y}{"0232}
3205 \DeclareUnicodeComposite{\.} {B}{"1E02}
3206 \DeclareUnicodeComposite{\.} {b}{"1E03}
3207 \DeclareUnicodeComposite{\=} {G}{"1E20}
3208 \DeclareUnicodeComposite{\=} {g}{"1E21}
3215 % \section{Package files}
3217 % \changes{v1.9h}{1997/12/17}{Added section.}
3218 % \changes{v1.9h}{1997/12/17}{Added code for textcomp.sty.}
3219 % This file now also contains some packages that provide access to
3220 % the more specialised encodings.
3222 % \subsection{The fontenc package}
3224 % \changes{v1.5c}{1994/05/14}{Added the fontenc package}
3225 % \changes{v1.5g}{1994/05/16}{Removed the lowercasing of the filename.}
3226 % \changes{v1.7a}{1994/11/30}{Always load the enc.def file, so that
3227 % the default encoding for the commands will change.}
3228 % \changes{v1.7x}{1996/05/18}{Produce error if encoding not found.
3230 % \changes{v1.7y}{1996/05/21}{Corrected error message (CAR)}
3231 % \changes{v1.8d}{1996/11/18}
3232 % {(DPC) lowercase external file names. internal/1044}%
3233 % This package allows authors to specify which encodings they will use.
3234 % For each encoding |FOO|, the package looks to see if the encoding
3235 % |FOO| has already been declared. If it has not, the file |fooenc.def|
3236 % is loaded. The default encoding is set to be |FOO|.
3238 % In addition the package at the moment contains extra code to extend
3239 % the |\@uclclist| (list of upper/lower case pairs) for encodings that
3240 % involve cyrillic characters. THIS IS A TEMPORARY SOLUTION and will not
3241 % stay this way forever (or so we hope) but right now we are missing a
3242 % proper interface for this and didn't wanted to rush it.
3243 % \changes{v1.9r}{1999/01/07}{Hackery to temp support cyrillic uc/lc}
3244 % \changes{v1.9t}{1999/02/24}{Corrected hackery cyrillic uc/lc list}
3245 % \changes{v1.9x}{1999/12/08}{Changed \cs{CYRRHOOK} and \cs{cyrrhook}
3246 % to\cs{CYRRHK} and \cs{cyrrhk} as name changed in the cyrillic
3247 % bundle for naming consistency with other ``hook'' glyphs.}
3252 % Here we define a macro that extends the |\@uclclist| if needed and
3253 % afterwards turns itself in a noop.
3255 \def\update@uclc@with@cyrillic{%
3256 \expandafter\def\expandafter\@uclclist\expandafter
3258 \cyra\CYRA\cyrabhch\CYRABHCH\cyrabhchdsc\CYRABHCHDSC\cyrabhdze
3259 \CYRABHDZE\cyrabhha\CYRABHHA\cyrae\CYRAE\cyrb\CYRB\cyrbyus
3260 \CYRBYUS\cyrc\CYRC\cyrch\CYRCH\cyrchldsc\CYRCHLDSC\cyrchrdsc
3261 \CYRCHRDSC\cyrchvcrs\CYRCHVCRS\cyrd\CYRD\cyrdelta\CYRDELTA
3262 \cyrdje\CYRDJE\cyrdze\CYRDZE\cyrdzhe\CYRDZHE\cyre\CYRE\cyreps
3263 \CYREPS\cyrerev\CYREREV\cyrery\CYRERY\cyrf\CYRF\cyrfita
3264 \CYRFITA\cyrg\CYRG\cyrgdsc\CYRGDSC\cyrgdschcrs\CYRGDSCHCRS
3265 \cyrghcrs\CYRGHCRS\cyrghk\CYRGHK\cyrgup\CYRGUP\cyrh\CYRH
3266 \cyrhdsc\CYRHDSC\cyrhhcrs\CYRHHCRS\cyrhhk\CYRHHK\cyrhrdsn
3267 \CYRHRDSN\cyri\CYRI\cyrie\CYRIE\cyrii\CYRII\cyrishrt\CYRISHRT
3268 \cyrishrtdsc\CYRISHRTDSC\cyrizh\CYRIZH\cyrje\CYRJE\cyrk\CYRK
3269 \cyrkbeak\CYRKBEAK\cyrkdsc\CYRKDSC\cyrkhcrs\CYRKHCRS\cyrkhk
3270 \CYRKHK\cyrkvcrs\CYRKVCRS\cyrl\CYRL\cyrldsc\CYRLDSC\cyrlhk
3271 \CYRLHK\cyrlje\CYRLJE\cyrm\CYRM\cyrmdsc\CYRMDSC\cyrmhk\CYRMHK
3272 \cyrn\CYRN\cyrndsc\CYRNDSC\cyrng\CYRNG\cyrnhk\CYRNHK\cyrnje
3273 \CYRNJE\cyrnlhk\CYRNLHK\cyro\CYRO\cyrotld\CYROTLD\cyrp\CYRP
3274 \cyrphk\CYRPHK\cyrq\CYRQ\cyrr\CYRR\cyrrdsc\CYRRDSC\cyrrhk
3275 \CYRRHK\cyrrtick\CYRRTICK\cyrs\CYRS\cyrsacrs\CYRSACRS
3276 \cyrschwa\CYRSCHWA\cyrsdsc\CYRSDSC\cyrsemisftsn\CYRSEMISFTSN
3277 \cyrsftsn\CYRSFTSN\cyrsh\CYRSH\cyrshch\CYRSHCH\cyrshha\CYRSHHA
3278 \cyrt\CYRT\cyrtdsc\CYRTDSC\cyrtetse\CYRTETSE\cyrtshe\CYRTSHE
3279 \cyru\CYRU\cyrushrt\CYRUSHRT\cyrv\CYRV\cyrw\CYRW\cyry\CYRY
3280 \cyrya\CYRYA\cyryat\CYRYAT\cyryhcrs\CYRYHCRS\cyryi\CYRYI\cyryo
3281 \CYRYO\cyryu\CYRYU\cyrz\CYRZ\cyrzdsc\CYRZDSC\cyrzh\CYRZH
3282 \cyrzhdsc\CYRZHDSC}%
3283 \let\update@uclc@with@cyrillic\relax
3287 % Here we process each option:
3290 \let\encodingdefault\CurrentOption
3292 \lowercase{\def\noexpand\reserved@f{\CurrentOption enc.def}}}%
3294 \InputIfFileExists\reserved@f
3295 {}{\PackageError{fontenc}%
3296 {Encoding file `\reserved@f' not found.%
3298 You might have misspelt the name of the encoding}%
3299 {Necessary code for this encoding was not
3300 loaded.\MessageBreak
3301 Thus calling the encoding later on will
3302 produce further error messages.}}%
3303 \let\reserved@f\relax
3306 % In case the current encoding is one of a list of known
3307 % cyrillic ones we extend the |\@uclclist|:
3309 \expandafter\in@\expandafter{\CurrentOption}%
3310 {T2A,T2B,T2C,X2,LCY,OT2}%
3314 % But only if it hasn't already been extended. This might happen if
3315 % there are several calls to fontenc loading one of the above
3316 % encodings. If we don't do this check the |\@uclclist| gets
3317 % unnecessarily big, slowing down the processing at runtime.
3318 % \changes{v1.9v}{1999/06/12}{Extend \cs{@uclclist} only once}
3320 \expandafter\in@\expandafter\cyra\expandafter
3324 \update@uclc@with@cyrillic
3335 \fontencoding\encodingdefault\selectfont
3338 % To save some space we get rid of the macro extending the
3339 % |\@uclclist| (might have happened already).
3341 \let\update@uclc@with@cyrillic\relax
3344 % Finally we pretend that the fontenc package wasn't read in. This
3345 % allows for using it several times, e.g., in a class file and in the
3346 % preamble (at the cost of not getting any version info).
3347 % That kind of hackery shows that using a general purpose
3348 % package just for loading an encoding is not the right kind
3349 % of interface for setting up encodings --- it will get replaced at
3350 % some point in the future.
3351 % \changes{v1.9r}{1999/01/07}{Hackery to allow using fontenc several
3353 % \changes{v1.9u}{1999/06/10}{Ensure that we also forget old options
3356 \global\expandafter\let\csname ver@fontenc.sty\endcsname\relax
3357 \global\expandafter\let\csname opt@fontenc.sty\endcsname\relax
3358 \global\let\@ifl@ter@@\@ifl@ter
3359 \def\@ifl@ter#1#2#3#4#5{\global\let\@ifl@ter\@ifl@ter@@}
3364 % \subsection{The textcomp package}
3366 % This one is for the |TS1| encoding which contains text symbols
3367 % for use with the |T1|-encoded text fonts. It therefore first
3368 % inputs the file |TS1enc.def| and then sets (or resets) the
3369 % defaults for the symbols it contains. The result of this is that
3370 % when one of these symbols is accessed and the current encoding
3371 % does not provide it, the symbol will be supplied by a silent,
3372 % local change to this encoding.
3377 % Since many PostScript fonts only implement a subset of |TS1| many
3378 % commands only produce black blobs of ink. To resolve the
3379 % resulting problems a number of options have been introduced and
3380 % some code has been developed to distinguish sub-encodings.
3382 % The sub-encodings have a numerical id and are defined as follows
3384 % \begin{description}
3386 % \item[\#5] those \texttt{TS1} symbols that are also in the ISO-Adobe
3387 % character set; without \verb=textcurrency=, which is often
3388 % misused for the Euro. Older Type1 fonts from the non-\TeX{}
3389 % world provide only this subset.
3391 % \item[\#4] = \#5 + \verb=\texteuro=. Most newer fonts provide this.
3393 % \item[\#3] = \#4 + \verb=\textomega=. Can also be described as
3394 % $\texttt{TS1} \cap (\texttt{ISO-Adobe} \cup
3395 % \texttt{MacRoman})$. (Except for the missing "currency".)
3398 % \item[\#2] = \#3 + \verb=\textestimated= + \verb=\textcurrency=. Can
3399 % also be described as $\texttt{TS1} \cap
3400 % \texttt{Adobe-Western-2}$. This may be relevant for OpenType
3401 % fonts, which usually show the Adobe-Western-2 character set.
3403 % \item[\#1] = \texttt{TS1} without \verb=\textcircled= and \verb=\t=.
3404 % These two glyphs are often not implemented and if their kernel
3405 % defaults are changed commands like \verb=\copyright=
3406 % unnecessarily fail.
3408 % \item[\#0] = full \texttt{TS1}
3411 % And here a summary to go in the transcript file:
3413 \PackageInfo{textcomp}{Sub-encoding information:\MessageBreak
3414 \space\space 5 = only ISO-Adobe without
3415 \string\textcurrency\MessageBreak
3416 \space\space 4 = 5 + \string\texteuro\MessageBreak
3417 \space\space 3 = 4 + \string\textohm\MessageBreak
3418 \space\space 2 = 3 + \noexpand\textestimated+
3419 \string\textcurrency\MessageBreak
3420 \space\space 1 = TS1 - \noexpand\textcircled-
3421 \string\t\MessageBreak
3422 \space\space 0 = TS1 (full)\MessageBreak
3423 Font families with sub-encoding setting implement\MessageBreak
3424 only a restricted character set as indicated.\MessageBreak
3425 Family '?' is the default used for unknown fonts.\MessageBreak
3426 See the documentation for details\@gobble}
3429 % \begin{macro}{\DeclareEncodingSubset}
3430 % An encoding subset to which a font family belongs is declared by
3431 % the command |\DeclareEncodingSubset| that takes the major encoding as the
3432 % first argument (e.g., |TS1|), the family name as the second
3433 % argument (e.g., |cmr|), and the subset encoding id as a third,
3434 % (e.g., |0| for |cmr|).
3436 % The default encoding subset to use when nothing is known about
3437 % the current font family is named |?|.
3439 \def\DeclareEncodingSubset#1#2#3{%
3440 \@ifundefined{#1:#2}%
3441 {\PackageInfo{textcomp}{Setting #2 sub-encoding to #1/#3}}%
3442 {\PackageInfo{textcomp}{Changing #2 sub-encoding to #1/#3}}%
3443 \@namedef{#1:#2}{#3}}
3444 \@onlypreamble\DeclareEncodingSubset
3449 % The options for the package are the following:
3450 % \begin{description}
3452 % for unknown font families enables only symbols that are also
3453 % in the ISO-Adobe character set; without "currency", which is
3454 % often misused for the Euro. Older Type1 fonts from the
3455 % non-TeX world provide only this subset.
3458 % enables the ``safe'' symbols plus the |\texteuro|
3459 % command. Most newer fonts provide this.
3461 % \item[full] enables all |TS1| commands; useful only with fonts
3462 % like EC or CM bright.
3465 % same as ``full'', except that |\textcircled|
3466 % and |\t| are \emph{not} redefined from their defaults to avoid
3467 % that commands like |\copyright| suddenly no longer work.
3470 % ignore all subset encoding definitions stored in the package
3471 % itself or in the configuration file and always use the default
3472 % subset as specified by one of the other options (seldom useful,
3476 % \begin{macro}{\iftc@forced}
3477 % Switch used to implement the \texttt{force} option
3479 \newif\iftc@forced \tc@forcedfalse
3483 % This is implemented by defining the default subset:
3485 \DeclareOption{full}{\DeclareEncodingSubset{TS1}{?}{0}}
3486 \DeclareOption{almostfull}{\DeclareEncodingSubset{TS1}{?}{1}}
3487 \DeclareOption{euro}{\DeclareEncodingSubset{TS1}{?}{4}}
3488 \DeclareOption{safe}{\DeclareEncodingSubset{TS1}{?}{5}}
3490 % The default is ``almostfull'' which means that old documents will
3491 % work except that |\textcircled| and |\t| will use the kernel
3492 % defaults (with the advantage that this also works if the current
3493 % font (as often the case) doesn't implement these glyphs.
3495 % The ``force'' option simply sets the switch to true.
3497 \DeclareOption{force}{\tc@forcedtrue}
3500 % The suggestions to user is to use the ``safe'' option always
3501 % unless that balks in which case they could switch to
3502 % ``almostfull'' but then better check their output manually.
3505 \def\tc@errorwarn{\PackageError}
3506 \DeclareOption{warn}{\gdef\tc@errorwarn#1#2#3{\PackageWarning{#1}{#2}}}
3510 \ExecuteOptions{almostfull}
3511 \ProcessOptions\relax
3514 % \begin{macro}{\CheckEncodingSubset}
3515 % The command |\CheckEncodingSubset| will check if the current font
3516 % family has the right encoding subset to typeset a certain
3517 % command. It takes five arguments as follows:
3518 % first argument is either |\UseTextSymbol|, |\UseTextAccent|
3519 % depending on whether or not the symbol is a text symbol or a text
3522 % The second argument is the encoding from which this symbol should
3525 % The third argument is either a fake accessor command or an error
3526 % message. the code in that argument (if ever executed) receives
3527 % two arguments: |#2| and |#5| of |\CheckEncodingSubset|.
3529 % Argument four is the subset encoding id to test against: if this
3530 % value is higher than the subset id of the current font family
3531 % then we typeset the symbol, i.e., execute |#1{#2}#5| otherwise
3532 % it runs |#3#5|, e.g., to produce an error message or fake the
3535 % Argument five is the symbol or accent command that is being
3538 % For usage examples see definitions below.
3542 % If the ``force'' option was given we always use the default for
3545 \def\CheckEncodingSubset#1#2#3#4#5{%
3547 0\csname #2:?\endcsname
3549 \expandafter\@firstoftwo
3551 \expandafter\@secondoftwo
3557 % In normal circumstances the test is a bit more complicated: first
3558 % check if there exists a macro
3559 % |\|\meta{arg2}|:|\meta{current-family} and if so use that value
3560 % to test against, otherwise use the default to test against.
3563 \def\CheckEncodingSubset#1#2#3#4#5{%
3565 \expandafter\ifx\csname #2:\f@family\endcsname\relax
3566 0\csname #2:?\endcsname
3568 \csname #2:\f@family\endcsname
3571 \expandafter\@firstoftwo
3573 \expandafter\@secondoftwo
3582 % \begin{macro}{tc@subst}
3585 \tc@errorwarn{textcomp}% % should be latex error if general
3586 {Symbol \string#1 not provided by\MessageBreak
3587 font family \f@family\space
3588 in TS1 encoding.\MessageBreak Default family used instead}\@eha
3589 \bgroup\fontfamily\textcompsubstdefault\selectfont#1\egroup
3594 % \begin{macro}{\textcompsubstdefault}
3596 \def\textcompsubstdefault{cmr}
3600 % \begin{macro}{\tc@error}
3601 % |\tc@error| is going to be used in arg |#3| of
3602 % |\CheckEncodingSubset| when a symbol is not available in a
3603 % certain font family. It gets pass the encoding it normally lives
3604 % in (arg one) and the name of the symbol or accent that has a
3608 % error commands take argument:
3609 % #1 symbol to be used
3611 \PackageError{textcomp}% % should be latex error if general
3612 {Accent \string#1 not provided by\MessageBreak
3613 font family \f@family\space
3614 in TS1 encoding}\@eha
3620 % \begin{macro}{\tc@fake@euro}
3621 % |\tc@fake@euro| is an example of a ``fake'' definition to use in arg |#3| of
3622 % |\CheckEncodingSubset| when a symbol is not available in a
3623 % certain font family. Here we produce an Euro symbol by combining
3624 % a ``C'' with a ``=''.
3626 \def\tc@fake@euro#1{%
3628 \PackageInfo{textcomp}{Faking \noexpand#1for font family
3629 \f@family\MessageBreak in TS1 encoding}%
3631 \vfil\hbox to 0.07em{\dimen@\f@size\p@
3633 \fontsize{.7\dimen@}\z@\selectfont=\hss}%
3641 % \begin{macro}{\tc@check@symbol}
3642 % \begin{macro}{\tc@check@accent}
3643 % These are two abbreviations that we use below to check symbols
3644 % and accents in TS1. Only there to save some space, e.g., we can
3647 %\DeclareTextCommandDefault{\textcurrency}{\tc@check@symbol3\textcurrency}
3649 % to ensure that |\textcurrency| is only typeset if the current
3650 % font has a \texttt{TS1} subset id of less than 3. Otherwise
3651 % |\tc@error| is called telling the user that for this font family
3652 % |\textcurreny| is not available.
3654 \def\tc@check@symbol{\CheckEncodingSubset\UseTextSymbol{TS1}\tc@subst}
3655 \def\tc@check@accent{\CheckEncodingSubset\UseTextAccent{TS1}\tc@error}
3660 % We start with the commands that are ``safe'' and which can be
3661 % unconditionally set up, first the accents\ldots
3663 \DeclareTextAccentDefault{\capitalcedilla}{TS1}
3664 \DeclareTextAccentDefault{\capitalogonek}{TS1}
3665 \DeclareTextAccentDefault{\capitalgrave}{TS1}
3666 \DeclareTextAccentDefault{\capitalacute}{TS1}
3667 \DeclareTextAccentDefault{\capitalcircumflex}{TS1}
3668 \DeclareTextAccentDefault{\capitaltilde}{TS1}
3669 \DeclareTextAccentDefault{\capitaldieresis}{TS1}
3670 \DeclareTextAccentDefault{\capitalhungarumlaut}{TS1}
3671 \DeclareTextAccentDefault{\capitalring}{TS1}
3672 \DeclareTextAccentDefault{\capitalcaron}{TS1}
3673 \DeclareTextAccentDefault{\capitalbreve}{TS1}
3674 \DeclareTextAccentDefault{\capitalmacron}{TS1}
3675 \DeclareTextAccentDefault{\capitaldotaccent}{TS1}
3677 % \ldots and then the other glyphs.
3678 % \changes{v1.9p}{1998/06/12}{Renamed \cs{textmacron} pr/2840}
3680 \DeclareTextSymbolDefault{\textcapitalcompwordmark}{TS1}
3681 \DeclareTextSymbolDefault{\textascendercompwordmark}{TS1}
3682 \DeclareTextSymbolDefault{\textquotestraightbase}{TS1}
3683 \DeclareTextSymbolDefault{\textquotestraightdblbase}{TS1}
3684 \DeclareTextSymbolDefault{\texttwelveudash}{TS1}
3685 \DeclareTextSymbolDefault{\textthreequartersemdash}{TS1}
3686 \DeclareTextSymbolDefault{\textdollar}{TS1}
3687 \DeclareTextSymbolDefault{\textquotesingle}{TS1}
3688 \DeclareTextSymbolDefault{\textasteriskcentered}{TS1}
3689 \DeclareTextSymbolDefault{\textfractionsolidus}{TS1}
3690 \DeclareTextSymbolDefault{\textminus}{TS1}
3691 \DeclareTextSymbolDefault{\textlbrackdbl}{TS1}
3692 \DeclareTextSymbolDefault{\textrbrackdbl}{TS1}
3693 \DeclareTextSymbolDefault{\textasciigrave}{TS1}
3694 \DeclareTextSymbolDefault{\texttildelow}{TS1}
3695 \DeclareTextSymbolDefault{\textasciibreve}{TS1}
3696 \DeclareTextSymbolDefault{\textasciicaron}{TS1}
3697 \DeclareTextSymbolDefault{\textgravedbl}{TS1}
3698 \DeclareTextSymbolDefault{\textacutedbl}{TS1}
3699 \DeclareTextSymbolDefault{\textdagger}{TS1}
3700 \DeclareTextSymbolDefault{\textdaggerdbl}{TS1}
3701 \DeclareTextSymbolDefault{\textbardbl}{TS1}
3702 \DeclareTextSymbolDefault{\textperthousand}{TS1}
3703 \DeclareTextSymbolDefault{\textbullet}{TS1}
3704 \DeclareTextSymbolDefault{\textcelsius}{TS1}
3705 \DeclareTextSymbolDefault{\textflorin}{TS1}
3706 \DeclareTextSymbolDefault{\texttrademark}{TS1}
3707 \DeclareTextSymbolDefault{\textcent}{TS1}
3708 \DeclareTextSymbolDefault{\textsterling}{TS1}
3709 \DeclareTextSymbolDefault{\textyen}{TS1}
3710 \DeclareTextSymbolDefault{\textbrokenbar}{TS1}
3711 \DeclareTextSymbolDefault{\textsection}{TS1}
3712 \DeclareTextSymbolDefault{\textasciidieresis}{TS1}
3713 \DeclareTextSymbolDefault{\textcopyright}{TS1}
3714 \DeclareTextSymbolDefault{\textordfeminine}{TS1}
3715 \DeclareTextSymbolDefault{\textlnot}{TS1}
3716 \DeclareTextSymbolDefault{\textregistered}{TS1}
3717 \DeclareTextSymbolDefault{\textasciimacron}{TS1}
3718 \DeclareTextSymbolDefault{\textdegree}{TS1}
3719 \DeclareTextSymbolDefault{\textpm}{TS1}
3720 \DeclareTextSymbolDefault{\texttwosuperior}{TS1}
3721 \DeclareTextSymbolDefault{\textthreesuperior}{TS1}
3722 \DeclareTextSymbolDefault{\textasciiacute}{TS1}
3723 \DeclareTextSymbolDefault{\textmu}{TS1}
3724 \DeclareTextSymbolDefault{\textparagraph}{TS1}
3725 \DeclareTextSymbolDefault{\textperiodcentered}{TS1}
3726 \DeclareTextSymbolDefault{\textonesuperior}{TS1}
3727 \DeclareTextSymbolDefault{\textordmasculine}{TS1}
3728 \DeclareTextSymbolDefault{\textonequarter}{TS1}
3729 \DeclareTextSymbolDefault{\textonehalf}{TS1}
3730 \DeclareTextSymbolDefault{\textthreequarters}{TS1}
3731 \DeclareTextSymbolDefault{\texttimes}{TS1}
3732 \DeclareTextSymbolDefault{\textdiv}{TS1}
3735 % The |\texteuro| is only available for subsets with id 4 or
3736 % less. Otherwise we fake the glyph using |\tc@fake@euro|
3738 \DeclareTextCommandDefault{\texteuro}
3739 {\CheckEncodingSubset\UseTextSymbol{TS1}\tc@fake@euro5\texteuro}
3742 % The |\textohm| is only available for subsets with id 3 or
3743 % less. Otherwise we produce an error.
3745 \DeclareTextCommandDefault{\textohm}{\tc@check@symbol4\textohm}
3747 % The |\textestimated| and |\textcurrency| are only provided for
3748 % fonts with subset encoding with id 2 or less.
3750 \DeclareTextCommandDefault{\textestimated}%
3751 {\tc@check@symbol3\textestimated}
3752 \DeclareTextCommandDefault{\textcurrency}%
3753 {\tc@check@symbol3\textcurrency}
3755 % Nearly all of the remaining glyphs are provided only with fonts
3756 % with id 1 or 0, i.e., are essentially complete.
3758 \DeclareTextCommandDefault{\capitaltie}%
3759 {\tc@check@accent2\capitaltie}
3760 \DeclareTextCommandDefault{\newtie}%
3761 {\tc@check@accent2\newtie}
3762 \DeclareTextCommandDefault{\capitalnewtie}%
3763 {\tc@check@accent2\capitalnewtie}
3764 \DeclareTextCommandDefault{\textleftarrow}%
3765 {\tc@check@symbol2\textleftarrow}
3766 \DeclareTextCommandDefault{\textrightarrow}%
3767 {\tc@check@symbol2\textrightarrow}
3768 \DeclareTextCommandDefault{\textblank}%
3769 {\tc@check@symbol2\textblank}
3770 \DeclareTextCommandDefault{\textdblhyphen}%
3771 {\tc@check@symbol2\textdblhyphen}
3772 \DeclareTextCommandDefault{\textzerooldstyle}%
3773 {\tc@check@symbol2\textzerooldstyle}
3774 \DeclareTextCommandDefault{\textoneoldstyle}%
3775 {\tc@check@symbol2\textoneoldstyle}
3776 \DeclareTextCommandDefault{\texttwooldstyle}%
3777 {\tc@check@symbol2\texttwooldstyle}
3778 \DeclareTextCommandDefault{\textthreeoldstyle}%
3779 {\tc@check@symbol2\textthreeoldstyle}
3780 \DeclareTextCommandDefault{\textfouroldstyle}%
3781 {\tc@check@symbol2\textfouroldstyle}
3782 \DeclareTextCommandDefault{\textfiveoldstyle}%
3783 {\tc@check@symbol2\textfiveoldstyle}
3784 \DeclareTextCommandDefault{\textsixoldstyle}%
3785 {\tc@check@symbol2\textsixoldstyle}
3786 \DeclareTextCommandDefault{\textsevenoldstyle}%
3787 {\tc@check@symbol2\textsevenoldstyle}
3788 \DeclareTextCommandDefault{\texteightoldstyle}%
3789 {\tc@check@symbol2\texteightoldstyle}
3790 \DeclareTextCommandDefault{\textnineoldstyle}%
3791 {\tc@check@symbol2\textnineoldstyle}
3792 \DeclareTextCommandDefault{\textlangle}%
3793 {\tc@check@symbol2\textlangle}
3794 \DeclareTextCommandDefault{\textrangle}%
3795 {\tc@check@symbol2\textrangle}
3796 \DeclareTextCommandDefault{\textmho}%
3797 {\tc@check@symbol2\textmho}
3798 \DeclareTextCommandDefault{\textbigcircle}%
3799 {\tc@check@symbol2\textbigcircle}
3800 \DeclareTextCommandDefault{\textuparrow}%
3801 {\tc@check@symbol2\textuparrow}
3802 \DeclareTextCommandDefault{\textdownarrow}%
3803 {\tc@check@symbol2\textdownarrow}
3804 \DeclareTextCommandDefault{\textborn}%
3805 {\tc@check@symbol2\textborn}
3806 \DeclareTextCommandDefault{\textdivorced}%
3807 {\tc@check@symbol2\textdivorced}
3808 \DeclareTextCommandDefault{\textdied}%
3809 {\tc@check@symbol2\textdied}
3810 \DeclareTextCommandDefault{\textleaf}%
3811 {\tc@check@symbol2\textleaf}
3812 \DeclareTextCommandDefault{\textmarried}%
3813 {\tc@check@symbol2\textmarried}
3814 \DeclareTextCommandDefault{\textmusicalnote}%
3815 {\tc@check@symbol2\textmusicalnote}
3816 \DeclareTextCommandDefault{\textdblhyphenchar}%
3817 {\tc@check@symbol2\textdblhyphenchar}
3818 \DeclareTextCommandDefault{\textdollaroldstyle}%
3819 {\tc@check@symbol2\textdollaroldstyle}
3820 \DeclareTextCommandDefault{\textcentoldstyle}%
3821 {\tc@check@symbol2\textcentoldstyle}
3822 \DeclareTextCommandDefault{\textcolonmonetary}%
3823 {\tc@check@symbol2\textcolonmonetary}
3824 \DeclareTextCommandDefault{\textwon}%
3825 {\tc@check@symbol2\textwon}
3826 \DeclareTextCommandDefault{\textnaira}%
3827 {\tc@check@symbol2\textnaira}
3828 \DeclareTextCommandDefault{\textguarani}%
3829 {\tc@check@symbol2\textguarani}
3830 \DeclareTextCommandDefault{\textpeso}%
3831 {\tc@check@symbol2\textpeso}
3832 \DeclareTextCommandDefault{\textlira}%
3833 {\tc@check@symbol2\textlira}
3834 \DeclareTextCommandDefault{\textrecipe}%
3835 {\tc@check@symbol2\textrecipe}
3836 \DeclareTextCommandDefault{\textinterrobang}%
3837 {\tc@check@symbol2\textinterrobang}
3838 \DeclareTextCommandDefault{\textinterrobangdown}%
3839 {\tc@check@symbol2\textinterrobangdown}
3840 \DeclareTextCommandDefault{\textdong}%
3841 {\tc@check@symbol2\textdong}
3842 \DeclareTextCommandDefault{\textpertenthousand}%
3843 {\tc@check@symbol2\textpertenthousand}
3844 \DeclareTextCommandDefault{\textpilcrow}%
3845 {\tc@check@symbol2\textpilcrow}
3846 \DeclareTextCommandDefault{\textbaht}%
3847 {\tc@check@symbol2\textbaht}
3848 \DeclareTextCommandDefault{\textnumero}%
3849 {\tc@check@symbol2\textnumero}
3850 \DeclareTextCommandDefault{\textdiscount}%
3851 {\tc@check@symbol2\textdiscount}
3852 \DeclareTextCommandDefault{\textopenbullet}%
3853 {\tc@check@symbol2\textopenbullet}
3854 \DeclareTextCommandDefault{\textservicemark}%
3855 {\tc@check@symbol2\textservicemark}
3856 \DeclareTextCommandDefault{\textlquill}%
3857 {\tc@check@symbol2\textlquill}
3858 \DeclareTextCommandDefault{\textrquill}%
3859 {\tc@check@symbol2\textrquill}
3860 \DeclareTextCommandDefault{\textcopyleft}%
3861 {\tc@check@symbol2\textcopyleft}
3862 \DeclareTextCommandDefault{\textcircledP}%
3863 {\tc@check@symbol2\textcircledP}
3864 \DeclareTextCommandDefault{\textreferencemark}%
3865 {\tc@check@symbol2\textreferencemark}
3866 \DeclareTextCommandDefault{\textsurd}%
3867 {\tc@check@symbol2\textsurd}
3869 % The |\textcircled| and |\t| are handled specially, unless the
3870 % current font has a subset id of 0 (i.e. full \texttt{TS1}) we
3871 % pick the symbols up from the the math font encodings, i.e., the
3872 % third argument to |\CheckEncodingSubset| uses |\UseTextAccent| to
3873 % get them from there.
3875 \DeclareTextCommandDefault{\textcircled}
3876 {\CheckEncodingSubset\UseTextAccent{TS1}%
3877 {\UseTextAccent{OMS}}1\textcircled}
3878 \DeclareTextCommandDefault{\t}
3879 {\CheckEncodingSubset\UseTextAccent{TS1}%
3880 {\UseTextAccent{OML}}1\t}
3885 % Finally input the encoding-specific definitions for
3886 % \texttt{TS1} thus making the top-level definitions
3887 % optimised for this encoding (and not for the default
3888 % encoding, see section~\ref{sec:orderofdecls}).
3889 % \changes{v1.9o}{1998/03/20}{Load decls after defaults for speed.}
3893 % Now having the new glyphs available we also want to make sure
3894 % that they are used. For most cases this will automatically happen
3895 % but for some glyphs there are inferior definitions already known
3896 % to \LaTeX{} which will prevent the usage of the \texttt{TS1}
3897 % versions (see section~\ref{sec:removeencspec} above). So we better
3899 % \changes{v1.9o}{1998/03/20}{Added various \cs{UndeclareTextCommand}
3900 % declarations for pr/2783}
3902 \UndeclareTextCommand{\textsterling}{OT1}
3903 \UndeclareTextCommand{\textdollar} {OT1}
3905 % Similar declarations should probably be made for other encodings
3906 % like \texttt{OT4} if they are in use.
3908 %\UndeclareTextCommand{\textsterling}{OT4}
3909 %\UndeclareTextCommand{\textdollar} {OT4}
3911 % From the \texttt{T1} encoding there are two candidates for removal:
3912 % \textperthousand{} and \textpertenthousand{} since these are both
3913 % constructed from \% followed by a tiny
3914 % `{\fontencoding{T1}\selectfont \char 24}'
3915 % rather than being a single glyph. The problem with this
3916 % approach is that in PostScript fonts this small zero is usually not
3917 % available resulting in \%\rule{3pt}{3pt} rather than
3918 % \textperthousand{} while the real glyph (at least for
3919 % |\textperthousand|) is available in the PostScript version of
3920 % \texttt{TS1}. So for the moment we compromise by removing the
3921 % \texttt{T1} declaration for |\textperthousand| but keeping the one
3922 % for |\textpertenthousand|. This will have the effect that with
3923 % Computer Modern fonts everything will come out (although
3924 % \textperthousand{} and \textpertenthousand{} are not taken from the
3925 % same physical font) and with PostScript fonts \textperthousand{}
3926 % will come out correctly while \textpertenthousand{} will most
3927 % likely look like \%\rule{6pt}{3pt} --- which is probably an
3928 % improvement over just getting a single `\rule{3pt}{3pt}' to
3929 % indicate a completely missing glyph, which would happen if we
3930 % also `undeclared' |\textpertenthousand|.
3932 \UndeclareTextCommand{\textperthousand}{T1}
3933 %\UndeclareTextCommand{\textpertenthousand}{T1}
3937 % \subsubsection{Supporting oldstyle digits}
3940 \DeclareRobustCommand\oldstylenums[1]{%
3943 \mathgroup\symletters #1%
3945 \CheckEncodingSubset\@use@text@encoding{TS1}%
3946 {\PackageWarning{textcomp}%
3947 {Oldstyle digits unavailable for
3948 family \f@family.\MessageBreak
3949 Lining digits used instead}}%
3956 % \subsubsection{Subset encoding defaults}
3958 % For many font families commonly used in the \TeX{} world we
3959 % provide the subset encoding data here. Users can add additional
3960 % font families in the file \texttt{textcomp.cfg} if they own other
3963 % However, if the option ``forced'' was given then all subset
3964 % encoding specifications are ignored, so there is no point in
3965 % setting any of them up:
3970 % Computer modern based fonts (e.g., CM, CM-Bright, Concrete):
3972 \DeclareEncodingSubset{TS1}{cmr} {0}
3973 \DeclareEncodingSubset{TS1}{cmss} {0}
3974 \DeclareEncodingSubset{TS1}{cmtt} {0}
3975 \DeclareEncodingSubset{TS1}{cmvtt} {0}
3976 \DeclareEncodingSubset{TS1}{cmbr} {0}
3977 \DeclareEncodingSubset{TS1}{cmtl} {0}
3978 \DeclareEncodingSubset{TS1}{ccr} {0}
3983 \DeclareEncodingSubset{TS1}{ptm} {4}
3984 \DeclareEncodingSubset{TS1}{pcr} {4}
3985 \DeclareEncodingSubset{TS1}{phv} {4}
3986 \DeclareEncodingSubset{TS1}{ppl} {3}
3987 \DeclareEncodingSubset{TS1}{pag} {4}
3988 \DeclareEncodingSubset{TS1}{pbk} {4}
3989 \DeclareEncodingSubset{TS1}{pnc} {4}
3990 \DeclareEncodingSubset{TS1}{pzc} {4}
3991 \DeclareEncodingSubset{TS1}{bch} {4}
3992 \DeclareEncodingSubset{TS1}{put} {5}
3995 % Other CTAN fonts (probably not complete):
3997 \DeclareEncodingSubset{TS1}{uag} {5}
3998 \DeclareEncodingSubset{TS1}{ugq} {5}
3999 \DeclareEncodingSubset{TS1}{ul8} {4}
4000 \DeclareEncodingSubset{TS1}{ul9} {4} % (LuxiSans, one day)
4001 \DeclareEncodingSubset{TS1}{augie} {5}
4002 \DeclareEncodingSubset{TS1}{dayrom} {3}
4003 \DeclareEncodingSubset{TS1}{dayroms} {3}
4004 \DeclareEncodingSubset{TS1}{pxr} {0}
4005 \DeclareEncodingSubset{TS1}{pxss} {0}
4006 \DeclareEncodingSubset{TS1}{pxtt} {0}
4007 \DeclareEncodingSubset{TS1}{txr} {0}
4008 \DeclareEncodingSubset{TS1}{txss} {0}
4009 \DeclareEncodingSubset{TS1}{txtt} {0}
4012 % Latin Modern and TeX Gyre:
4013 % \changes{v1.99k}{2009/10/28}{Added Latin Modern and TeX Gyre subsets}
4014 % \changes{v1.99l}{2009/11/04}{Added more Latin Modern and TeX Gyre subsets}
4015 % \changes{v1.99m}{2015/02/16}{Added lmtt (Heiko Oberdiek) latex/4415}
4017 \DeclareEncodingSubset{TS1}{lmr} {0}
4018 \DeclareEncodingSubset{TS1}{lmdh} {0}
4019 \DeclareEncodingSubset{TS1}{lmss} {0}
4020 \DeclareEncodingSubset{TS1}{lmssq} {0}
4021 \DeclareEncodingSubset{TS1}{lmvtt} {0}
4022 \DeclareEncodingSubset{TS1}{lmtt} {0}
4026 \DeclareEncodingSubset{TS1}{qhv} {0}
4027 \DeclareEncodingSubset{TS1}{qag} {0}
4028 \DeclareEncodingSubset{TS1}{qbk} {0}
4029 \DeclareEncodingSubset{TS1}{qcr} {0}
4030 \DeclareEncodingSubset{TS1}{qcs} {0}
4031 \DeclareEncodingSubset{TS1}{qpl} {0}
4032 \DeclareEncodingSubset{TS1}{qtm} {0}
4033 \DeclareEncodingSubset{TS1}{qzc} {0}
4034 \DeclareEncodingSubset{TS1}{qhvc} {0}
4037 % Fourier-GUTenberg:
4039 \DeclareEncodingSubset{TS1}{futs} {4}
4040 \DeclareEncodingSubset{TS1}{futx} {4}
4041 \DeclareEncodingSubset{TS1}{futj} {4}
4044 % Y\&Y's Lucida Bright
4046 \DeclareEncodingSubset{TS1}{hlh} {3}
4047 \DeclareEncodingSubset{TS1}{hls} {3}
4048 \DeclareEncodingSubset{TS1}{hlst} {3}
4050 % The remaining settings for Lucida are conservative: the following
4051 % fonts contain the |\textohm| character but not the |\texteuro|,
4052 % i.e., belong to neither subset~4 nor subset~3. If you want to
4053 % use the |\textohm| with these fonts copy these definition to
4054 % \texttt{textcomp.cfg} and change the subset to~3. However in that
4055 % case make sure that you do not use the |\texteuro|.
4057 \DeclareEncodingSubset{TS1}{hlct} {5}
4058 \DeclareEncodingSubset{TS1}{hlx} {5}
4059 \DeclareEncodingSubset{TS1}{hlce} {5}
4060 \DeclareEncodingSubset{TS1}{hlcn} {5}
4061 \DeclareEncodingSubset{TS1}{hlcw} {5}
4062 \DeclareEncodingSubset{TS1}{hlcf} {5}
4065 % Other commercial families\ldots
4067 \DeclareEncodingSubset{TS1}{pplx} {3}
4068 \DeclareEncodingSubset{TS1}{pplj} {3}
4069 \DeclareEncodingSubset{TS1}{ptmx} {4}
4070 \DeclareEncodingSubset{TS1}{ptmj} {4}
4073 % If the file \texttt{textcomp.cfg} exists it will be loaded at
4074 % this point. This allows to define further subset encodings for
4075 % font families not covered by default.
4078 \InputIfFileExists{textcomp.cfg}
4079 {\PackageInfo{textcomp}{Local configuration file used}}{}