| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% Copyright (C) 1993-2025 |
| 4 |
% The LaTeX Project and any individual authors listed elsewhere |
| 5 |
% in this file. |
| 6 |
% |
| 7 |
% This file is part of the LaTeX base system. |
| 8 |
% ------------------------------------------- |
| 9 |
% |
| 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 |
% https://www.latex-project.org/lppl.txt |
| 15 |
% and version 1.3c or later is part of all distributions of LaTeX |
| 16 |
% version 2008 or later. |
| 17 |
% |
| 18 |
% This file has the LPPL maintenance status "maintained". |
| 19 |
% |
| 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 |
| 22 |
% information. |
| 23 |
% |
| 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. |
| 27 |
% |
| 28 |
% \fi |
| 29 |
% \iffalse |
| 30 |
%%% From File: fontdef.dtx |
| 31 |
%<*!latexrelease> |
| 32 |
%<*dtx> |
| 33 |
\ProvidesFile{fontdef.dtx} |
| 34 |
%</dtx> |
| 35 |
%<text, >\ProvidesFile{fonttext.ltx} |
| 36 |
%<math, >\ProvidesFile{fontmath.ltx} |
| 37 |
%<+cfgtext>\ProvidesFile{fonttext.cfg} |
| 38 |
%<+cfgmath>\ProvidesFile{fontmath.cfg} |
| 39 |
%<+cfgprel>\ProvidesFile{preload.cfg} |
| 40 |
%<driver, >\ProvidesFile{fontdef.drv} |
| 41 |
% \fi |
| 42 |
% \ProvidesFile{fontdef.dtx} |
| 43 |
[2025/06/05 v3.0l LaTeX Kernel |
| 44 |
% \iffalse |
| 45 |
%<text, > (Text font setup) |
| 46 |
%<math, > (Math font setup) |
| 47 |
%<+cfgtext> (Uncustomized text font setup) |
| 48 |
%<+cfgmath> (Uncustomized math font setup) |
| 49 |
%<+cfgprel> (Uncustomized preload font setup) |
| 50 |
%<*dtx> |
| 51 |
% \fi |
| 52 |
(font setup) |
| 53 |
%\iffalse |
| 54 |
%</dtx> |
| 55 |
%\fi |
| 56 |
] |
| 57 |
% \iffalse |
| 58 |
%</!latexrelease> |
| 59 |
%\fi |
| 60 |
% |
| 61 |
%\iffalse This is a META comment |
| 62 |
% |
| 63 |
% File `fontdef.dtx'. |
| 64 |
% Copyright (C) 1989-1999 Frank Mittelbach and Rainer Sch\"opf, |
| 65 |
% All rights reserved. |
| 66 |
% |
| 67 |
%\fi |
| 68 |
% |
| 69 |
% \changes{v2.1a}{1993/12/01}{Update for LaTeX2e} |
| 70 |
% \changes{v2.2a}{1994/10/14}{New coding} |
| 71 |
% \changes{v2.2i}{1994/12/02}{Commented out \cs{ldots}. ASAJ.} |
| 72 |
% \changes{v2.2j}{1995/05/11}{Updates to some plain macros} |
| 73 |
% \changes{v2.2l}{1995/10/03}{\cs{@@sqrt} from patch file for /1701} |
| 74 |
% \changes{v2.2o}{1996/05/17}{\cs{@@sqrt} removed, at last} |
| 75 |
% \changes{v2.2p}{1996/11/20}{lowercase fd and enc.def file names /1044} |
| 76 |
% \changes{v2.2x}{1999/01/05}{Need special protection for character |
| 77 |
% \texttt{\char62} in \cs{changes} entry.} |
| 78 |
% |
| 79 |
% \title{The \texttt{fontdef.dtx} file\thanks |
| 80 |
% {This file has version number \fileversion, dated \filedate}} |
| 81 |
% \author{Frank Mittelbach \and Rainer Sch\"opf} |
| 82 |
% |
| 83 |
% \def\dst{{\normalfont\scshape docstrip}} |
| 84 |
% \setcounter{StandardModuleDepth}{1} |
| 85 |
% |
| 86 |
% |
| 87 |
% \MaintainedByLaTeXTeam{latex} |
| 88 |
% \maketitle |
| 89 |
% |
| 90 |
% \section{Introduction} |
| 91 |
% |
| 92 |
% This file is used to generate the files \texttt{fonttext.ltx} (text |
| 93 |
% font declarations) and \texttt{fontmath.ltx} (math font |
| 94 |
% declarations), which are used during the format generation. It |
| 95 |
% contains the declaration of the standard text encodings used at the |
| 96 |
% site as well as a minimal subset of font shape groups that NFSS will |
| 97 |
% look at to ensure that the specified encodings are valid. |
| 98 |
% |
| 99 |
% The math part contains the setup for math encodings as well as the |
| 100 |
% default math symbol declarations that belong to the encoding. |
| 101 |
% |
| 102 |
% It is possible to change this setup (by using other fonts, or |
| 103 |
% defaults) without losing the ability to |
| 104 |
% process documents written at other sites. Portability in this sense |
| 105 |
% means that a document will compile without errors. It does not mean, |
| 106 |
% however, that identical output will be produced. For this it is |
| 107 |
% necessary that the distributed setup is used at both installations. |
| 108 |
% |
| 109 |
% \section{Customization} |
| 110 |
% |
| 111 |
% You are not allowed to change this source file! If you want to |
| 112 |
% change the default encodings and/or the font shape groups preloaded |
| 113 |
% you should create a copy of \texttt{fonttext.ltx} |
| 114 |
% under the name \texttt{fonttext.cfg} and change this copy. If |
| 115 |
% \LaTeXe{} finds a file of this name it will use it, otherwise it |
| 116 |
% uses the standard file which is \texttt{fontdef.ltx}. |
| 117 |
% |
| 118 |
% If you don't plan to use Computer Modern much or at all, it might |
| 119 |
% (!) be a good idea to make your own \texttt{fonttext.cfg}. Look at |
| 120 |
% the comments below (docstrip module `text') to see what should |
| 121 |
% go into such a file. |
| 122 |
% |
| 123 |
% To change the math font setup use a copy of \texttt{fontmath.ltx} |
| 124 |
% under the name \texttt{fontmath.cfg} and change this copy. However, |
| 125 |
% dealing with this interface is even more a job for an expert than |
| 126 |
% changing the text font setup --- in short, we don't encourage either. |
| 127 |
% |
| 128 |
% \begin{quote} |
| 129 |
% \textbf{Warning:} please note that we don't support customised |
| 130 |
% \LaTeX{} versions. Thus, before sending in a bug report please try |
| 131 |
% your test file with a \LaTeX{} format which is not customised and |
| 132 |
% send in the log from that version (unless the problem goes away). |
| 133 |
% \end{quote} |
| 134 |
% |
| 135 |
% Please note: the following standard encodings have to |
| 136 |
% be defined in all local variants of \texttt{font....cfg} to guarantee |
| 137 |
% that all \LaTeX{} installations behave in the same way. |
| 138 |
% \begin{center} |
| 139 |
% \begin{tabular}{ll} |
| 140 |
% |T1| & Cork \TeX{} text encoding \\ |
| 141 |
% |OT1| & old \TeX{} text encoding \\ |
| 142 |
% |U| & unknown encoding \\ |
| 143 |
% |OML| & old \TeX{} math letters encoding \\ |
| 144 |
% |OMS| & old \TeX{} math symbols encoding \\ |
| 145 |
% |OMX| & old \TeX{} math extension symbols encoding\\ |
| 146 |
% |TU| & Unicode |
| 147 |
% \end{tabular} |
| 148 |
% \end{center} |
| 149 |
% Notice that some of these encodings are `old' in the sense that we |
| 150 |
% hope that they will be superseded soon by encoding standards defined |
| 151 |
% by the \TeX{} user community. Therefore this set of default encodings |
| 152 |
% may change in the future. |
| 153 |
% |
| 154 |
% The first candidate is |OT1| which will soon be replaced by |T1|, the |
| 155 |
% official \TeX{} text encoding. |
| 156 |
% |
| 157 |
% \begin{quote}\textbf{Warning:} |
| 158 |
% If you add additional encodings to this file there is no guarantee |
| 159 |
% any longer that files processable at your installation will also be |
| 160 |
% processable at other installations. Thus, if you make use of |
| 161 |
% such an encoding in your document, e.g.~if you intend to typeset in |
| 162 |
% Cyrillic (|OT2| encoding), you need to specify this encoding in the |
| 163 |
% preamble of your document prior to sending it to another |
| 164 |
% installation. Once the encoding is specified in that place in your |
| 165 |
% document, the document is processable at all \LaTeX{} installations |
| 166 |
% (provided they have suitable fonts installed). |
| 167 |
% |
| 168 |
% For this reason we suggest that you define a short package file that |
| 169 |
% sets up an additional encoding used at your site (rather than |
| 170 |
% putting the encoding into this file) since this package can easily |
| 171 |
% be shipped with your document. |
| 172 |
% \end{quote} |
| 173 |
% |
| 174 |
% |
| 175 |
% \MaybeStop{} |
| 176 |
% |
| 177 |
% \section{The \texttt{docstrip} modules} |
| 178 |
% |
| 179 |
% The following modules are used to direct \texttt{docstrip} in |
| 180 |
% generating external files: |
| 181 |
% \begin{center} |
| 182 |
% \begin{tabular}{ll} |
| 183 |
% driver & produce a documentation driver file \\ |
| 184 |
% text & produce the file \texttt{fonttext.ltx}\\ |
| 185 |
% math & produce the file \texttt{fontmath.ltx}\\ |
| 186 |
% cfgtext & produce a dummy \texttt{fonttext.cfg} file\\ |
| 187 |
% cfgmath & produce a dummy \texttt{fontmath.cfg} file\\ |
| 188 |
% \end{tabular} |
| 189 |
% \end{center} |
| 190 |
% A typical \texttt{docstrip} command file would then have entries like: |
| 191 |
% \begin{verbatim} |
| 192 |
%\generateFile{fonttext.ltx}{t}{\from{fontdef.dtx}{text}} |
| 193 |
%\end{verbatim} |
| 194 |
% |
| 195 |
% |
| 196 |
% \section{A driver for this document} |
| 197 |
% |
| 198 |
% The next bit of code contains the documentation driver file for |
| 199 |
% \TeX{}, i.e.~the file that will produce the documentation you are |
| 200 |
% currently reading. It will be extracted from this file by the |
| 201 |
% \dst{} program. |
| 202 |
% \begin{macrocode} |
| 203 |
%<*driver> |
| 204 |
\documentclass{ltxdoc} |
| 205 |
\GetFileInfo{fontdef.dtx} |
| 206 |
\begin{document} |
| 207 |
\DocInput{fontdef.dtx} |
| 208 |
\end{document} |
| 209 |
%</driver> |
| 210 |
% \end{macrocode} |
| 211 |
% |
| 212 |
% |
| 213 |
% |
| 214 |
% \section{The \texttt{fonttext.ltx} file} |
| 215 |
% |
| 216 |
% The identification is done earlier on with a |\ProvidesFile| |
| 217 |
% declaration. |
| 218 |
% \begin{macrocode} |
| 219 |
%<*text> |
| 220 |
\typeout{=== Don't modify this file, use a .cfg file instead ===^^J} |
| 221 |
% \end{macrocode} |
| 222 |
% |
| 223 |
% \subsection{Encodings} |
| 224 |
% |
| 225 |
% This file declares the standard encodings for text and math |
| 226 |
% fonts. All others should be declared in packages or in the |
| 227 |
% documents directly. |
| 228 |
% |
| 229 |
% For every text encoding there are normally a number of encoding |
| 230 |
% specific commands, e.g.~accents, special characters, etc. (The |
| 231 |
% definition for such a command might have to change when the |
| 232 |
% encoding is changed, because the character is in a different |
| 233 |
% position, or not available at all, or the accent is produced in a |
| 234 |
% different way.) This is handled by a general mechanism which is |
| 235 |
% described in \texttt{ltoutenc.dtx}. |
| 236 |
% |
| 237 |
% By convention, text encoding specific declarations, including the |
| 238 |
% |\DeclareFontEncoding| declaration, are kept in separate file of |
| 239 |
% the form \meta{enc}\texttt{enc.def}, e.g.~\texttt{ot1enc.def}. This |
| 240 |
% allows other applications to make use of the declarations as |
| 241 |
% well. |
| 242 |
% |
| 243 |
% Similar to the default encoding, the loading of the encoding |
| 244 |
% files for the two major text encodings shouldn't be changed. |
| 245 |
% In particular, the \texttt{inputenc} package depends on this. |
| 246 |
% \changes{v2.2s}{1997/12/20}{Added documentation} |
| 247 |
% |
| 248 |
% \changes{v2.1d}{1994/01/05}{Removed nf prefix from file names.} |
| 249 |
% \changes{v2.1f}{1994/05/14}{Removed .def files.} |
| 250 |
% \changes{v2.1g}{1994/05/16}{Removed \cs{DeclareFontEncoding} for ot1 |
| 251 |
% and t1 and input .def files instead} |
| 252 |
% \changes{v2.2c}{1994/10/25}{Added OMSenc.def} |
| 253 |
% \changes{v2.2d}{1994/10/31}{Added OMLenc.def ...} |
| 254 |
% \changes{v2.2e}{1994/10/31}{... and moved further down} |
| 255 |
% \changes{v2.2f}{1994/11/07}{(DPC) Updated to use \cs{ProvidesFile}} |
| 256 |
% \changes{v2.2h}{1994/11/16}{(DPC) Removed \cmd\{ and \cmd\}} |
| 257 |
% \changes{v3.0a}{2016/12/03}{(DPC) Default to TU encoding for Unicode TeX engines} |
| 258 |
% \begin{macrocode} |
| 259 |
\input {omlenc.def} |
| 260 |
\input {omsenc.def} |
| 261 |
% \end{macrocode} |
| 262 |
% Documents containing a lot of accented characters should really |
| 263 |
% be using T1 fonts. We therefore load this after OT1 so that T1 encoding |
| 264 |
% specific commands are executed as fast as possible (encoding |
| 265 |
% files are no longer reloaded in \texttt{fontenc}. |
| 266 |
% \changes{v3.0f}{2020/01/25}{Load t1enc.def last (gh/255)} |
| 267 |
% \begin{macrocode} |
| 268 |
\input {ot1enc.def} |
| 269 |
\input {t1enc.def} |
| 270 |
% \end{macrocode} |
| 271 |
% |
| 272 |
% \begin{macrocode} |
| 273 |
\input {ts1enc.def} |
| 274 |
% \end{macrocode} |
| 275 |
% |
| 276 |
% |
| 277 |
% |
| 278 |
% \changes{v3.0a}{2016/12/03}{(DPC) Default to TU encoding for Unicode TeX engines} |
| 279 |
% \begin{macrocode} |
| 280 |
\ifx\Umathcode\@undefined |
| 281 |
% \end{macrocode} |
| 282 |
% |
| 283 |
% We then set the default text font encoding. This will |
| 284 |
% hopefully change some day to |T1|. This setting should \emph{not} |
| 285 |
% be changed to produce a portable format. |
| 286 |
% \begin{macrocode} |
| 287 |
\fontencoding{OT1} |
| 288 |
% \end{macrocode} |
| 289 |
% |
| 290 |
% The initial \texttt{fontenc} package load list if an 8-bit \TeX{} |
| 291 |
% engine is used: |
| 292 |
% \changes{v3.0g}{2020/02/11}{Provide value for \cs{@fontenc@load@list} (gh/273)} |
| 293 |
% \begin{macrocode} |
| 294 |
\def\@fontenc@load@list{\@elt{T1,OT1}} |
| 295 |
% \end{macrocode} |
| 296 |
% |
| 297 |
% |
| 298 |
% |
| 299 |
% |
| 300 |
% \begin{macrocode} |
| 301 |
\def\rmsubstdefault{cmr} |
| 302 |
\def\sfsubstdefault{cmss} |
| 303 |
\def\ttsubstdefault{cmtt} |
| 304 |
\LoadFontDefinitionFile{TS1}{cmr} |
| 305 |
% \end{macrocode} |
| 306 |
% |
| 307 |
% \begin{macrocode} |
| 308 |
\else |
| 309 |
% \end{macrocode} |
| 310 |
% Unicode. |
| 311 |
% \begin{macrocode} |
| 312 |
\input {tuenc.def} |
| 313 |
\fontencoding{TU} |
| 314 |
% \end{macrocode} |
| 315 |
% |
| 316 |
% The initial \texttt{fontenc} package load list if a Unicode |
| 317 |
% engine is used: |
| 318 |
% \changes{v3.0g}{2020/02/11}{Provide value for \cs{@fontenc@load@list} (gh/273)} |
| 319 |
% \begin{macrocode} |
| 320 |
\def\@fontenc@load@list{\@elt{TU}} |
| 321 |
% \end{macrocode} |
| 322 |
% |
| 323 |
% \begin{macrocode} |
| 324 |
\DeclareFontSubstitution{TU}{lmr}{m}{n} |
| 325 |
\LoadFontDefinitionFile{TU}{lmr} |
| 326 |
\LoadFontDefinitionFile{TU}{lmss} |
| 327 |
\LoadFontDefinitionFile{TU}{lmtt} |
| 328 |
% \end{macrocode} |
| 329 |
% |
| 330 |
% \begin{macrocode} |
| 331 |
\def\rmsubstdefault{lmr} |
| 332 |
\def\sfsubstdefault{lmss} |
| 333 |
\def\ttsubstdefault{lmtt} |
| 334 |
\LoadFontDefinitionFile{TS1}{lmr} |
| 335 |
% \end{macrocode} |
| 336 |
% |
| 337 |
% \begin{macrocode} |
| 338 |
\DeclareFontSubstitution{TU}{lmr}{m}{n} |
| 339 |
% \end{macrocode} |
| 340 |
% End of Unicode branch. |
| 341 |
% \begin{macrocode} |
| 342 |
\fi |
| 343 |
% \end{macrocode} |
| 344 |
% |
| 345 |
% If different encodings for text fonts are in use one could put |
| 346 |
% the common setup into |\DeclareFontEncodingDefaults|. There is |
| 347 |
% now a better mechanism so using this interface is discouraged! |
| 348 |
% \begin{macrocode} |
| 349 |
\DeclareFontEncodingDefaults{}{} |
| 350 |
% \end{macrocode} |
| 351 |
% |
| 352 |
% The default font substitution for an encoding is defined in the |
| 353 |
% corresponding \texttt{...enc.def} file so for \texttt{OT1}, |
| 354 |
% \texttt{T1}, and \texttt{TS1} this is already defined. |
| 355 |
% \begin{macrocode} |
| 356 |
%\DeclareFontSubstitution{T1}{cmr}{m}{n} |
| 357 |
%\DeclareFontSubstitution{OT1}{cmr}{m}{n} |
| 358 |
%\DeclareFontSubstitution{TS1}{cmr}{m}{n} |
| 359 |
% \end{macrocode} |
| 360 |
% |
| 361 |
% This release of \LaTeXe{} assumes that the ec fonts are |
| 362 |
% available. It is possible to change this to point to some other |
| 363 |
% font family (e.g., Times with the appropriate encoding if it is |
| 364 |
% available) without making documents non-portable. However, in |
| 365 |
% such a case documents will produce different page breaks at other |
| 366 |
% sites. The substitution defaults can all be changed without |
| 367 |
% losing portability as long as there are font shape definitions |
| 368 |
% for the selected substitutions. |
| 369 |
% |
| 370 |
% For every encoding declaration, \LaTeXe{} will try to verify that |
| 371 |
% the given substitution information makes sense, i.e.~that it is |
| 372 |
% impossible to go into an endless loop if font substitution |
| 373 |
% happens. This is done at the moment the |\begin{document}| is |
| 374 |
% encountered. \LaTeXe{} will then check that for every encoding the |
| 375 |
% substitution defaults form a valid font shape group, which means |
| 376 |
% that it will check if there is a |\DeclareFontShape| declaration |
| 377 |
% for this combination. We will therefore load the corresponding |
| 378 |
% |.fd| files now. If we don't do this they would be loaded at |
| 379 |
% verification time (i.e.~at |\begin{document}| which would delay |
| 380 |
% processing unnecessarily. |
| 381 |
% |
| 382 |
% \begin{quote} |
| 383 |
% \textbf{Warning:} Please note that this means that you have to |
| 384 |
% regenerate the format whenever you change any of these |
| 385 |
% \texttt{.fd} files since \LaTeXe{} will not read \texttt{.fd} |
| 386 |
% files if it already knows about the encoding/family |
| 387 |
% combination. |
| 388 |
% \end{quote} |
| 389 |
% |
| 390 |
% \changes{v2.2m}{1995/11/01}{add \cs{nfss@catcodes} for internal/1932} |
| 391 |
% The |\nfss@catcodes| ensures that white space is ignored in any |
| 392 |
% definitions made in the fd files. |
| 393 |
% \begin{macrocode} |
| 394 |
\begingroup |
| 395 |
\nfss@catcodes |
| 396 |
\input {t1cmr.fd} |
| 397 |
\input {ot1cmr.fd} |
| 398 |
% \end{macrocode} |
| 399 |
% |
| 400 |
% \changes{v3.0l}{2024/11/19}{Preload the TS1 \texttt{ts1cmr.fd} file |
| 401 |
% in all engines} |
| 402 |
% \begin{macrocode} |
| 403 |
\input {ts1cmr.fd} |
| 404 |
\endgroup |
| 405 |
% \end{macrocode} |
| 406 |
% |
| 407 |
% We also load some other font definition files which are normally |
| 408 |
% needed in a document. This is only done for processing speed and |
| 409 |
% you can comment the next two lines out to save some memory. If |
| 410 |
% necessary these files are then loaded when your document is |
| 411 |
% processed. (Loading |.fd| files is a less drastic step compared |
| 412 |
% to preloading fonts because the number of fonts is limited 255 at |
| 413 |
% (nearly) every \TeX{} installation, while the amount of main memory |
| 414 |
% is not a limiting factor at most installations.) |
| 415 |
% |
| 416 |
% \changes{v3.0k}{2024/09/03}{Load also t1cmss.fd and t1cmtt.fd} |
| 417 |
% \begin{macrocode} |
| 418 |
\begingroup |
| 419 |
\nfss@catcodes |
| 420 |
\input {t1cmss.fd} |
| 421 |
\input {t1cmtt.fd} |
| 422 |
\input {ot1cmss.fd} |
| 423 |
\input {ot1cmtt.fd} |
| 424 |
% \end{macrocode} |
| 425 |
% |
| 426 |
% \changes{v3.0l}{2024/11/19}{Preload the TS1 \texttt{.fd} file} |
| 427 |
% \begin{macrocode} |
| 428 |
\input {ts1cmss.fd} |
| 429 |
\input {ts1cmtt.fd} |
| 430 |
\endgroup |
| 431 |
% \end{macrocode} |
| 432 |
% |
| 433 |
% \changes{v3.0j}{2024/06/24}{load ts1 cmr fd file in Unicode engines} |
| 434 |
% Even though Unicode engines default to |lm| load |ts1cmr| |
| 435 |
% as this may be used for fallback for TS1 encoding. |
| 436 |
% |
| 437 |
% We now load it in all engines above, so the next lines are no longer |
| 438 |
% necessary. We keep them here if we stop loading other fd files in |
| 439 |
% Unicode engines. |
| 440 |
% \begin{macrocode} |
| 441 |
%\ifx\Umathcode\@undefined\else |
| 442 |
%\begingroup |
| 443 |
%\nfss@catcodes |
| 444 |
%\input {ts1cmr.fd} |
| 445 |
%\endgroup |
| 446 |
%\fi |
| 447 |
% \end{macrocode} |
| 448 |
% |
| 449 |
% Even with all the precautions it is still possible that NFSS will |
| 450 |
% run into problems, for example, when a |.fd| file contains |
| 451 |
% corrupted data. To guard against such cases NFSS has a very |
| 452 |
% low-level fallback font that is installed with the following line. |
| 453 |
% \begin{macrocode} |
| 454 |
\DeclareErrorFont{OT1}{cmr}{m}{n}{10} |
| 455 |
% \end{macrocode} |
| 456 |
% This means, ``if everything else fails use Computer Modern Roman |
| 457 |
% normal shape at 10pt in the old text encoding''. |
| 458 |
% You can change the font used but the encoding should be the same |
| 459 |
% as the one specified with |\fontencoding| above. |
| 460 |
% |
| 461 |
% |
| 462 |
% \subsection{Defaults} |
| 463 |
% |
| 464 |
% To allow the use of |\rmfamily|, |\sffamily|, etc.\ in documents |
| 465 |
% even if non-standard families are used we provide nine macros |
| 466 |
% which hold the name of the corresponding families, series, and so |
| 467 |
% on. This makes it easy to use other font families (like Times |
| 468 |
% Roman, etc.). One simply has to redefine these defaults. |
| 469 |
% |
| 470 |
% All these hooks have to be defined in this file but you can |
| 471 |
% change their meaning (except for |\encodingdefault|) without |
| 472 |
% making documents non-portable. |
| 473 |
% |
| 474 |
% |
| 475 |
% \begin{macro}{\encodingdefault} |
| 476 |
% \begin{macro}{\rmdefault} |
| 477 |
% \begin{macro}{\sfdefault} |
| 478 |
% \begin{macro}{\ttdefault} |
| 479 |
% The following three definitions set up the meaning for |
| 480 |
% |\rmfamily|, |\sffamily|, and |\ttfamily|. |
| 481 |
% \begin{macrocode} |
| 482 |
\ifx\Umathcode\@undefined |
| 483 |
\newcommand\encodingdefault{OT1} |
| 484 |
\newcommand\rmdefault{cmr} |
| 485 |
\newcommand\sfdefault{cmss} |
| 486 |
\newcommand\ttdefault{cmtt} |
| 487 |
\else |
| 488 |
\newcommand\encodingdefault{TU} |
| 489 |
\newcommand\rmdefault{lmr} |
| 490 |
\fontfamily{\rmdefault} |
| 491 |
\newcommand\sfdefault{lmss} |
| 492 |
\newcommand\ttdefault{lmtt} |
| 493 |
\fi |
| 494 |
%</text> |
| 495 |
%<latexrelease>\IncludeInRelease{2017/01/01}% |
| 496 |
%<latexrelease> {\encodingdefault}{TU encoding default}% |
| 497 |
%<latexrelease>\ifx\Umathcode\@undefined |
| 498 |
%<latexrelease>\renewcommand\encodingdefault{OT1} |
| 499 |
%<latexrelease>\fontencoding{\encodingdefault} |
| 500 |
%<latexrelease>\renewcommand\rmdefault{cmr} |
| 501 |
%<latexrelease>\fontfamily{\rmdefault} |
| 502 |
%<latexrelease>\renewcommand\sfdefault{cmss} |
| 503 |
%<latexrelease>\renewcommand\ttdefault{cmtt} |
| 504 |
%<latexrelease>\else |
| 505 |
%<latexrelease>\renewcommand\encodingdefault{TU} |
| 506 |
%<latexrelease>%done in everyjob\fontencoding{\encodingdefault} |
| 507 |
%<latexrelease>\renewcommand\rmdefault{lmr} |
| 508 |
%<latexrelease>\fontfamily{\rmdefault} |
| 509 |
%<latexrelease>\renewcommand\sfdefault{lmss} |
| 510 |
%<latexrelease>\renewcommand\ttdefault{lmtt} |
| 511 |
%<latexrelease>\fi |
| 512 |
%<latexrelease>\EndIncludeInRelease |
| 513 |
%<latexrelease>\IncludeInRelease{0000/00/00}% |
| 514 |
%<latexrelease> {\encodingdefault}{TU encoding default}% |
| 515 |
%<latexrelease>\fontencoding{OT1} |
| 516 |
%<latexrelease>\renewcommand\encodingdefault{OT1} |
| 517 |
%<latexrelease>\fontencoding{\encodingdefault} |
| 518 |
%<latexrelease>\renewcommand\rmdefault{cmr} |
| 519 |
%<latexrelease>\fontfamily{\rmdefault} |
| 520 |
%<latexrelease>\renewcommand\sfdefault{cmss} |
| 521 |
%<latexrelease>\renewcommand\ttdefault{cmtt} |
| 522 |
%<latexrelease>\EndIncludeInRelease |
| 523 |
%<*text> |
| 524 |
% \end{macrocode} |
| 525 |
% \end{macro} |
| 526 |
% \end{macro} |
| 527 |
% \end{macro} |
| 528 |
% \end{macro} |
| 529 |
% |
| 530 |
% \begin{macro}{\bfdefault} |
| 531 |
% \begin{macro}{\mddefault} |
| 532 |
% Series changing commands are influenced by the following hooks. |
| 533 |
% \changes{v3.0e}{2019/12/17}{Set \cs{bfdefault} to ``b''} |
| 534 |
% \begin{macrocode} |
| 535 |
\newcommand\bfdefault{b} % overwritten below (for rollback) |
| 536 |
\newcommand\mddefault{m} % overwritten below (for rollback) |
| 537 |
% \end{macrocode} |
| 538 |
% \end{macro} |
| 539 |
% \end{macro} |
| 540 |
% |
| 541 |
% \begin{macro}{\itdefault} |
| 542 |
% \begin{macro}{\sldefault} |
| 543 |
% \begin{macro}{\scdefault} |
| 544 |
% \begin{macro}{\updefault} |
| 545 |
% |
| 546 |
% Shape changing commands use the following hooks. |
| 547 |
% \changes{v3.0e}{2019/12/17}{Set \cs{updefault} to ``up''} |
| 548 |
% \begin{macrocode} |
| 549 |
\newcommand\itdefault{it} |
| 550 |
\newcommand\sldefault{sl} |
| 551 |
\newcommand\scdefault{sc} |
| 552 |
\newcommand\updefault{up} % overwritten below (for rollback) |
| 553 |
% \end{macrocode} |
| 554 |
% \end{macro} |
| 555 |
% \end{macro} |
| 556 |
% \end{macro} |
| 557 |
% \end{macro} |
| 558 |
% |
| 559 |
|
| 560 |
% \begin{macrocode} |
| 561 |
%</text> |
| 562 |
%<*text|latexrelease> |
| 563 |
%<latexrelease>\IncludeInRelease{2020/02/02}% |
| 564 |
%<latexrelease> {\updefault}{font defaults change}% |
| 565 |
\renewcommand\updefault{up} |
| 566 |
% \end{macrocode} |
| 567 |
% We append \cs{@empty} to the series value so that we can detect |
| 568 |
% if it got changed via \cs{def} or \cs{renewcommand} later. |
| 569 |
% \changes{v3.0h}{2020/03/19}{Support legacy use of \cs{bfdefault} |
| 570 |
% and \cs{mddefault} (gh/306)} |
| 571 |
% \begin{macrocode} |
| 572 |
\renewcommand\bfdefault{b\@empty} |
| 573 |
\renewcommand\mddefault{m\@empty} |
| 574 |
% \end{macrocode} |
| 575 |
% |
| 576 |
% \begin{macrocode} |
| 577 |
\let\bfdefault@previous\bfdefault |
| 578 |
\let\mddefault@previous\mddefault |
| 579 |
%</text|latexrelease> |
| 580 |
%<latexrelease>\EndIncludeInRelease |
| 581 |
%<latexrelease>\IncludeInRelease{0000/00/00}% |
| 582 |
%<latexrelease> {\updefault}{font defaults change}% |
| 583 |
%<latexrelease> |
| 584 |
%<latexrelease>\renewcommand\updefault{n} |
| 585 |
%<latexrelease>\renewcommand\bfdefault{bx} |
| 586 |
%<latexrelease> |
| 587 |
%<latexrelease>\let\bfdefault@previous\undefined |
| 588 |
%<latexrelease>\let\mddefault@previous\undefined |
| 589 |
%<latexrelease>\EndIncludeInRelease |
| 590 |
%<*text> |
| 591 |
% \end{macrocode} |
| 592 |
% |
| 593 |
% \begin{macro}{\familydefault} |
| 594 |
% \begin{macro}{\seriesdefault} |
| 595 |
% \begin{macro}{\shapedefault} |
| 596 |
% Finally we have the hooks that describe the behaviour of |
| 597 |
% the |\normalfont| command. To stay portable, the definition of |
| 598 |
% |\encodingdefault| should \emph{not} be changed and should match |
| 599 |
% the setting above for |\fontencoding|. All other values can be |
| 600 |
% set according to your taste. |
| 601 |
% \changes{v3.0a}{2016/12/03}{(DPC) Default to TU encoding for Unicode TeX engines} |
| 602 |
% \begin{macrocode} |
| 603 |
\newcommand\familydefault{\rmdefault} |
| 604 |
\newcommand\seriesdefault{\mddefault} |
| 605 |
% \end{macrocode} |
| 606 |
% In previous releases \cs{shapedefault} pointed to \cs{updefault} |
| 607 |
% which resolved to \texttt{n}, but these days that is no longer |
| 608 |
% the case (and \texttt{up} is wrong when you want to do a |
| 609 |
% reset. So we now use \texttt{n} explicitly. |
| 610 |
% \changes{v3.0e}{2019/12/17}{Set \cs{shapedefault} explicitly to ``n''} |
| 611 |
% \begin{macrocode} |
| 612 |
\newcommand\shapedefault{n} |
| 613 |
% \end{macrocode} |
| 614 |
% \end{macro} |
| 615 |
% \end{macro} |
| 616 |
% \end{macro} |
| 617 |
% |
| 618 |
% |
| 619 |
% This finishes the low-level setup in \texttt{fonttext.ltx}. |
| 620 |
% \begin{macrocode} |
| 621 |
%</text> |
| 622 |
% \end{macrocode} |
| 623 |
% |
| 624 |
% |
| 625 |
% |
| 626 |
% |
| 627 |
% \section{The \texttt{fontmath.ltx} file} |
| 628 |
% |
| 629 |
% The identification is done earlier on with a |\ProvidesFile| |
| 630 |
% declaration. |
| 631 |
% \begin{macrocode} |
| 632 |
%<*math> |
| 633 |
\typeout{=== Don't modify this file, use a .cfg file instead ===^^J} |
| 634 |
% \end{macrocode} |
| 635 |
% |
| 636 |
% \subsection{The font encodings used} |
| 637 |
% |
| 638 |
% \begin{macrocode} |
| 639 |
\DeclareFontEncoding{OML}{}{} |
| 640 |
\DeclareFontEncoding{OMS}{}{} |
| 641 |
\DeclareFontEncoding{OMX}{}{} |
| 642 |
% \end{macrocode} |
| 643 |
% Finally a declaration for |U| encoding which serves for all fonts |
| 644 |
% that do not fit standard encodings. For math this sets up |
| 645 |
% |\noaccents@| providing for AMS-\LaTeX{}. This macro is used |
| 646 |
% therein to handle accented characters if they are not supported |
| 647 |
% by the font. In other words, if fonts with |U| encoding are used |
| 648 |
% in math, all accents (like from |\breve|) are obtained from some |
| 649 |
% other font that has them. |
| 650 |
% \begin{macrocode} |
| 651 |
\DeclareFontEncoding{U}{}{\noaccents@} |
| 652 |
% \end{macrocode} |
| 653 |
% The encodings for math are next: |
| 654 |
% \begin{macrocode} |
| 655 |
\DeclareFontSubstitution{OML}{cmm}{m}{it} |
| 656 |
\DeclareFontSubstitution{OMS}{cmsy}{m}{n} |
| 657 |
\DeclareFontSubstitution{OMX}{cmex}{m}{n} |
| 658 |
\DeclareFontSubstitution{U}{cmr}{m}{n} |
| 659 |
% \end{macrocode} |
| 660 |
% |
| 661 |
% \begin{macrocode} |
| 662 |
\begingroup |
| 663 |
\nfss@catcodes |
| 664 |
\input {omlcmm.fd} |
| 665 |
\input {omscmsy.fd} |
| 666 |
\input {omxcmex.fd} |
| 667 |
\input {ucmr.fd} |
| 668 |
\endgroup |
| 669 |
% \end{macrocode} |
| 670 |
% |
| 671 |
% \subsubsection{Symbolfont and Alphabet declarations} |
| 672 |
% |
| 673 |
% We now define the basic symbol fonts used by \LaTeX{}. |
| 674 |
% These four symbol fonts must be defined by this file. |
| 675 |
% |
| 676 |
% It is possible to make the symbol fonts point to other external |
| 677 |
% fonts without losing the ability to process documents written |
| 678 |
% at other sites, as long as one defines the same symbol font names |
| 679 |
% with the same encodings, e.g.~|operators| with |OT1| etc. |
| 680 |
% If other encodings are used documents become non-portable. |
| 681 |
% Such a change should therefore be done in a package file. |
| 682 |
% |
| 683 |
% \changes{v2.1e}{1994/01/19}{Added missing setting for symbols in |
| 684 |
% bold version.} |
| 685 |
% \begin{macrocode} |
| 686 |
\DeclareSymbolFont{operators} {OT1}{cmr} {m}{n} |
| 687 |
\DeclareSymbolFont{letters} {OML}{cmm} {m}{it} |
| 688 |
\DeclareSymbolFont{symbols} {OMS}{cmsy}{m}{n} |
| 689 |
\DeclareSymbolFont{largesymbols}{OMX}{cmex}{m}{n} |
| 690 |
% \end{macrocode} |
| 691 |
% |
| 692 |
% \begin{macrocode} |
| 693 |
\SetSymbolFont{operators}{bold}{OT1}{cmr} {bx}{n} |
| 694 |
\SetSymbolFont{letters} {bold}{OML}{cmm} {b}{it} |
| 695 |
\SetSymbolFont{symbols} {bold}{OMS}{cmsy}{b}{n} |
| 696 |
% \end{macrocode} |
| 697 |
% |
| 698 |
% Below are the seven math alphabets which are defined by NFSS. |
| 699 |
% Again they must be defined by this file. |
| 700 |
% However, as before you can change the fonts used without losing |
| 701 |
% portability, but you should be careful when changing the encoding |
| 702 |
% since that may make documents come out wrong. |
| 703 |
% \begin{macrocode} |
| 704 |
\DeclareSymbolFontAlphabet{\mathrm} {operators} |
| 705 |
\DeclareSymbolFontAlphabet{\mathnormal}{letters} |
| 706 |
\DeclareSymbolFontAlphabet{\mathcal} {symbols} |
| 707 |
\DeclareMathAlphabet {\mathbf}{OT1}{cmr}{bx}{n} |
| 708 |
\DeclareMathAlphabet {\mathsf}{OT1}{cmss}{m}{n} |
| 709 |
\DeclareMathAlphabet {\mathit}{OT1}{cmr}{m}{it} |
| 710 |
\DeclareMathAlphabet {\mathtt}{OT1}{cmtt}{m}{n} |
| 711 |
% \end{macrocode} |
| 712 |
% Given the currently available fonts we cannot bold-en |\mathbf| |
| 713 |
% and |\mathtt| but in principle one could use `ultra bold' or |
| 714 |
% something. The alphabets defined via |\DeclareSymbolFontAlphabet| |
| 715 |
% will change automatically in a new math version if the |
| 716 |
% corresponding symbol font changes. |
| 717 |
% \begin{macrocode} |
| 718 |
\SetMathAlphabet\mathsf{bold}{OT1}{cmss}{bx}{n} |
| 719 |
\SetMathAlphabet\mathit{bold}{OT1}{cmr}{bx}{it} |
| 720 |
% \end{macrocode} |
| 721 |
% |
| 722 |
% |
| 723 |
% \subsection{Math font sizes} |
| 724 |
% \changes{v2.2f}{1994/11/07} |
| 725 |
% {(DPC) Add \cs{DeclareMathSizes} declarations} |
| 726 |
% |
| 727 |
% The declarations below declare the text, script and scriptscript |
| 728 |
% size to be used for each text font size. |
| 729 |
% |
| 730 |
% All occurrences of sizes longer than a single character are replaced |
| 731 |
% with the macro name that holds them, saving a number of |
| 732 |
% tokens (but losing a bit of speed, so this may not stay this way). |
| 733 |
% \begin{macrocode} |
| 734 |
\DeclareMathSizes{5}{5}{5}{5} |
| 735 |
\DeclareMathSizes{6}{6}{5}{5} |
| 736 |
\DeclareMathSizes{7}{7}{5}{5} |
| 737 |
\DeclareMathSizes{8}{8}{6}{5} |
| 738 |
\DeclareMathSizes{9}{9}{6}{5} |
| 739 |
\DeclareMathSizes{\@xpt}{\@xpt}{7}{5} |
| 740 |
\DeclareMathSizes{\@xipt}{\@xipt}{8}{6} |
| 741 |
\DeclareMathSizes{\@xiipt}{\@xiipt}{8}{6} |
| 742 |
\DeclareMathSizes{\@xivpt}{\@xivpt}{\@xpt}{7} |
| 743 |
\DeclareMathSizes{\@xviipt}{\@xviipt}{\@xiipt}{\@xpt} |
| 744 |
\DeclareMathSizes{\@xxpt}{\@xxpt}{\@xivpt}{\@xiipt} |
| 745 |
\DeclareMathSizes{\@xxvpt}{\@xxvpt}{\@xxpt}{\@xviipt} |
| 746 |
% \end{macrocode} |
| 747 |
% |
| 748 |
% \subsection{The math symbol assignments} |
| 749 |
% |
| 750 |
% We start by setting up math codes for most of the characters |
| 751 |
% typed in directly from the keyboard. Most of them are normally |
| 752 |
% already setup up in the same way by Ini\TeX{}. However, we repeat |
| 753 |
% them here to have a complete setup which can be exchanged with |
| 754 |
% another if desired. |
| 755 |
% |
| 756 |
% \subsubsection{The letters} |
| 757 |
% \begin{macrocode} |
| 758 |
\DeclareMathSymbol{a}{\mathalpha}{letters}{`a} |
| 759 |
\DeclareMathSymbol{b}{\mathalpha}{letters}{`b} |
| 760 |
\DeclareMathSymbol{c}{\mathalpha}{letters}{`c} |
| 761 |
\DeclareMathSymbol{d}{\mathalpha}{letters}{`d} |
| 762 |
\DeclareMathSymbol{e}{\mathalpha}{letters}{`e} |
| 763 |
\DeclareMathSymbol{f}{\mathalpha}{letters}{`f} |
| 764 |
\DeclareMathSymbol{g}{\mathalpha}{letters}{`g} |
| 765 |
\DeclareMathSymbol{h}{\mathalpha}{letters}{`h} |
| 766 |
\DeclareMathSymbol{i}{\mathalpha}{letters}{`i} |
| 767 |
\DeclareMathSymbol{j}{\mathalpha}{letters}{`j} |
| 768 |
\DeclareMathSymbol{k}{\mathalpha}{letters}{`k} |
| 769 |
\DeclareMathSymbol{l}{\mathalpha}{letters}{`l} |
| 770 |
\DeclareMathSymbol{m}{\mathalpha}{letters}{`m} |
| 771 |
\DeclareMathSymbol{n}{\mathalpha}{letters}{`n} |
| 772 |
\DeclareMathSymbol{o}{\mathalpha}{letters}{`o} |
| 773 |
\DeclareMathSymbol{p}{\mathalpha}{letters}{`p} |
| 774 |
\DeclareMathSymbol{q}{\mathalpha}{letters}{`q} |
| 775 |
\DeclareMathSymbol{r}{\mathalpha}{letters}{`r} |
| 776 |
\DeclareMathSymbol{s}{\mathalpha}{letters}{`s} |
| 777 |
\DeclareMathSymbol{t}{\mathalpha}{letters}{`t} |
| 778 |
\DeclareMathSymbol{u}{\mathalpha}{letters}{`u} |
| 779 |
\DeclareMathSymbol{v}{\mathalpha}{letters}{`v} |
| 780 |
\DeclareMathSymbol{w}{\mathalpha}{letters}{`w} |
| 781 |
\DeclareMathSymbol{x}{\mathalpha}{letters}{`x} |
| 782 |
\DeclareMathSymbol{y}{\mathalpha}{letters}{`y} |
| 783 |
\DeclareMathSymbol{z}{\mathalpha}{letters}{`z} |
| 784 |
% \end{macrocode} |
| 785 |
% |
| 786 |
% \begin{macrocode} |
| 787 |
\DeclareMathSymbol{A}{\mathalpha}{letters}{`A} |
| 788 |
\DeclareMathSymbol{B}{\mathalpha}{letters}{`B} |
| 789 |
\DeclareMathSymbol{C}{\mathalpha}{letters}{`C} |
| 790 |
\DeclareMathSymbol{D}{\mathalpha}{letters}{`D} |
| 791 |
\DeclareMathSymbol{E}{\mathalpha}{letters}{`E} |
| 792 |
\DeclareMathSymbol{F}{\mathalpha}{letters}{`F} |
| 793 |
\DeclareMathSymbol{G}{\mathalpha}{letters}{`G} |
| 794 |
\DeclareMathSymbol{H}{\mathalpha}{letters}{`H} |
| 795 |
\DeclareMathSymbol{I}{\mathalpha}{letters}{`I} |
| 796 |
\DeclareMathSymbol{J}{\mathalpha}{letters}{`J} |
| 797 |
\DeclareMathSymbol{K}{\mathalpha}{letters}{`K} |
| 798 |
\DeclareMathSymbol{L}{\mathalpha}{letters}{`L} |
| 799 |
\DeclareMathSymbol{M}{\mathalpha}{letters}{`M} |
| 800 |
\DeclareMathSymbol{N}{\mathalpha}{letters}{`N} |
| 801 |
\DeclareMathSymbol{O}{\mathalpha}{letters}{`O} |
| 802 |
\DeclareMathSymbol{P}{\mathalpha}{letters}{`P} |
| 803 |
\DeclareMathSymbol{Q}{\mathalpha}{letters}{`Q} |
| 804 |
\DeclareMathSymbol{R}{\mathalpha}{letters}{`R} |
| 805 |
\DeclareMathSymbol{S}{\mathalpha}{letters}{`S} |
| 806 |
\DeclareMathSymbol{T}{\mathalpha}{letters}{`T} |
| 807 |
\DeclareMathSymbol{U}{\mathalpha}{letters}{`U} |
| 808 |
\DeclareMathSymbol{V}{\mathalpha}{letters}{`V} |
| 809 |
\DeclareMathSymbol{W}{\mathalpha}{letters}{`W} |
| 810 |
\DeclareMathSymbol{X}{\mathalpha}{letters}{`X} |
| 811 |
\DeclareMathSymbol{Y}{\mathalpha}{letters}{`Y} |
| 812 |
\DeclareMathSymbol{Z}{\mathalpha}{letters}{`Z} |
| 813 |
% \end{macrocode} |
| 814 |
% |
| 815 |
% \subsubsection{The digits} |
| 816 |
% |
| 817 |
% \begin{macrocode} |
| 818 |
\DeclareMathSymbol{0}{\mathalpha}{operators}{`0} |
| 819 |
\DeclareMathSymbol{1}{\mathalpha}{operators}{`1} |
| 820 |
\DeclareMathSymbol{2}{\mathalpha}{operators}{`2} |
| 821 |
\DeclareMathSymbol{3}{\mathalpha}{operators}{`3} |
| 822 |
\DeclareMathSymbol{4}{\mathalpha}{operators}{`4} |
| 823 |
\DeclareMathSymbol{5}{\mathalpha}{operators}{`5} |
| 824 |
\DeclareMathSymbol{6}{\mathalpha}{operators}{`6} |
| 825 |
\DeclareMathSymbol{7}{\mathalpha}{operators}{`7} |
| 826 |
\DeclareMathSymbol{8}{\mathalpha}{operators}{`8} |
| 827 |
\DeclareMathSymbol{9}{\mathalpha}{operators}{`9} |
| 828 |
% \end{macrocode} |
| 829 |
% |
| 830 |
% |
| 831 |
% \subsubsection{Punctuation, brace, etc. keys} |
| 832 |
% |
| 833 |
% \begin{macrocode} |
| 834 |
\DeclareMathSymbol{!}{\mathclose}{operators}{"21} |
| 835 |
\DeclareMathSymbol{*}{\mathbin}{symbols}{"03} % \ast |
| 836 |
\DeclareMathSymbol{+}{\mathbin}{operators}{"2B} |
| 837 |
\DeclareMathSymbol{,}{\mathpunct}{letters}{"3B} |
| 838 |
\DeclareMathSymbol{-}{\mathbin}{symbols}{"00} |
| 839 |
\DeclareMathSymbol{.}{\mathord}{letters}{"3A} |
| 840 |
\DeclareMathSymbol{:}{\mathrel}{operators}{"3A} |
| 841 |
\DeclareMathSymbol{;}{\mathpunct}{operators}{"3B} |
| 842 |
\DeclareMathSymbol{=}{\mathrel}{operators}{"3D} |
| 843 |
\DeclareMathSymbol{?}{\mathclose}{operators}{"3F} |
| 844 |
% \end{macrocode} |
| 845 |
% The following symbols are defined as delimiters below |
| 846 |
% which automatically defines them as math symbols. |
| 847 |
% \begin{macrocode} |
| 848 |
%\DeclareMathSymbol{(}{\mathopen}{operators}{"28} |
| 849 |
%\DeclareMathSymbol{)}{\mathclose}{operators}{"29} |
| 850 |
%\DeclareMathSymbol{/}{\mathord}{letters}{"3D} |
| 851 |
%\DeclareMathSymbol{[}{\mathopen}{operators}{"5B} |
| 852 |
%\DeclareMathSymbol{]}{\mathclose}{operators}{"5D} |
| 853 |
%\DeclareMathSymbol{|}{\mathord}{symbols}{"6A} |
| 854 |
%\DeclareMathSymbol{<}{\mathrel}{letters}{"3C} |
| 855 |
%\DeclareMathSymbol{>}{\mathrel}{letters}{"3E} |
| 856 |
% \end{macrocode} |
| 857 |
% |
| 858 |
% Should all of the following being activated by default? Probably |
| 859 |
% not. |
| 860 |
% \begin{macrocode} |
| 861 |
%\DeclareMathSymbol{`\{}{\mathopen}{symbols}{"66} |
| 862 |
%\DeclareMathSymbol{`\}}{\mathclose}{symbols}{"67} |
| 863 |
%\DeclareMathSymbol{`\\}{\mathord}{symbols}{"6E} % \backslash |
| 864 |
\mathcode`\ ="8000 % \space |
| 865 |
\mathcode`\'="8000 % ^\prime |
| 866 |
\mathcode`\_="8000 % \_ |
| 867 |
% \end{macrocode} |
| 868 |
% |
| 869 |
% |
| 870 |
% \subsubsection{Delimitercodes for characters} |
| 871 |
% \changes{v2.2q}{1997/01/08} |
| 872 |
% {Use \cs{DeclareMathDelimiter} to set delimiter codes} |
| 873 |
% \changes{v2.2u}{1998/04/15} |
| 874 |
% {Use new syntax for \cs{DeclareMathDelimiter}} |
| 875 |
% [to be completed] |
| 876 |
% |
| 877 |
% Finally, Ini\TeX{} sets all |\delcode| values to -1, except |
| 878 |
% |\delcode`.=0| |
| 879 |
% \begin{macrocode} |
| 880 |
\DeclareMathDelimiter{(}{\mathopen} {operators}{"28}{largesymbols}{"00} |
| 881 |
\DeclareMathDelimiter{)}{\mathclose}{operators}{"29}{largesymbols}{"01} |
| 882 |
\DeclareMathDelimiter{[}{\mathopen} {operators}{"5B}{largesymbols}{"02} |
| 883 |
\DeclareMathDelimiter{]}{\mathclose}{operators}{"5D}{largesymbols}{"03} |
| 884 |
% \end{macrocode} |
| 885 |
% |
| 886 |
% The next two are considered to be relations when not used in the context |
| 887 |
% of a delimiter! And worse, they do even represent different glyphs when |
| 888 |
% being used as delimiter and not as delimiter. This is a user level syntax |
| 889 |
% inherited from plain \TeX{}. Therefore we explicitly redefine the math |
| 890 |
% symbol definitions for these symbols afterwards. |
| 891 |
% \changes{v2.2v}{1998/04/17} |
| 892 |
% {Reinsert symbol defs for \texttt{<} and \texttt{\char62} chars.} |
| 893 |
% \begin{macrocode} |
| 894 |
\DeclareMathDelimiter{<}{\mathopen}{symbols}{"68}{largesymbols}{"0A} |
| 895 |
\DeclareMathDelimiter{>}{\mathclose}{symbols}{"69}{largesymbols}{"0B} |
| 896 |
\DeclareMathSymbol{<}{\mathrel}{letters}{"3C} |
| 897 |
\DeclareMathSymbol{>}{\mathrel}{letters}{"3E} |
| 898 |
% \end{macrocode} |
| 899 |
% And here is another case where the non-delimiter version produces a |
| 900 |
% glyph different from the delimiter version. |
| 901 |
% \changes{v2.2w}{1998/04/18} |
| 902 |
% {Reinsert symbol def for \texttt{/} char.} |
| 903 |
% \begin{macrocode} |
| 904 |
\DeclareMathDelimiter{/}{\mathord}{operators}{"2F}{largesymbols}{"0E} |
| 905 |
\DeclareMathSymbol{/}{\mathord}{letters}{"3D} |
| 906 |
% \end{macrocode} |
| 907 |
% |
| 908 |
% \begin{macrocode} |
| 909 |
\DeclareMathDelimiter{|}{\mathord}{symbols}{"6A}{largesymbols}{"0C} |
| 910 |
% \end{macrocode} |
| 911 |
% |
| 912 |
% \begin{macrocode} |
| 913 |
\expandafter\DeclareMathDelimiter\@backslashchar |
| 914 |
{\mathord}{symbols}{"6E}{largesymbols}{"0F} |
| 915 |
% \end{macrocode} |
| 916 |
% N.B. |{| and |}| should NOT get delcodes; |
| 917 |
% otherwise parameter grouping fails! |
| 918 |
% |
| 919 |
% |
| 920 |
% \subsection{Symbols accessed via control sequences} |
| 921 |
% |
| 922 |
% \subsubsection{Greek letters} |
| 923 |
% |
| 924 |
% \begin{macrocode} |
| 925 |
\DeclareMathSymbol{\alpha}{\mathord}{letters}{"0B} |
| 926 |
\DeclareMathSymbol{\beta}{\mathord}{letters}{"0C} |
| 927 |
\DeclareMathSymbol{\gamma}{\mathord}{letters}{"0D} |
| 928 |
\DeclareMathSymbol{\delta}{\mathord}{letters}{"0E} |
| 929 |
\DeclareMathSymbol{\epsilon}{\mathord}{letters}{"0F} |
| 930 |
\DeclareMathSymbol{\zeta}{\mathord}{letters}{"10} |
| 931 |
\DeclareMathSymbol{\eta}{\mathord}{letters}{"11} |
| 932 |
\DeclareMathSymbol{\theta}{\mathord}{letters}{"12} |
| 933 |
\DeclareMathSymbol{\iota}{\mathord}{letters}{"13} |
| 934 |
\DeclareMathSymbol{\kappa}{\mathord}{letters}{"14} |
| 935 |
\DeclareMathSymbol{\lambda}{\mathord}{letters}{"15} |
| 936 |
\DeclareMathSymbol{\mu}{\mathord}{letters}{"16} |
| 937 |
\DeclareMathSymbol{\nu}{\mathord}{letters}{"17} |
| 938 |
\DeclareMathSymbol{\xi}{\mathord}{letters}{"18} |
| 939 |
\DeclareMathSymbol{\pi}{\mathord}{letters}{"19} |
| 940 |
\DeclareMathSymbol{\rho}{\mathord}{letters}{"1A} |
| 941 |
\DeclareMathSymbol{\sigma}{\mathord}{letters}{"1B} |
| 942 |
\DeclareMathSymbol{\tau}{\mathord}{letters}{"1C} |
| 943 |
\DeclareMathSymbol{\upsilon}{\mathord}{letters}{"1D} |
| 944 |
\DeclareMathSymbol{\phi}{\mathord}{letters}{"1E} |
| 945 |
\DeclareMathSymbol{\chi}{\mathord}{letters}{"1F} |
| 946 |
\DeclareMathSymbol{\psi}{\mathord}{letters}{"20} |
| 947 |
\DeclareMathSymbol{\omega}{\mathord}{letters}{"21} |
| 948 |
\DeclareMathSymbol{\varepsilon}{\mathord}{letters}{"22} |
| 949 |
\DeclareMathSymbol{\vartheta}{\mathord}{letters}{"23} |
| 950 |
\DeclareMathSymbol{\varpi}{\mathord}{letters}{"24} |
| 951 |
\DeclareMathSymbol{\varrho}{\mathord}{letters}{"25} |
| 952 |
\DeclareMathSymbol{\varsigma}{\mathord}{letters}{"26} |
| 953 |
\DeclareMathSymbol{\varphi}{\mathord}{letters}{"27} |
| 954 |
\DeclareMathSymbol{\Gamma}{\mathalpha}{operators}{"00} |
| 955 |
\DeclareMathSymbol{\Delta}{\mathalpha}{operators}{"01} |
| 956 |
\DeclareMathSymbol{\Theta}{\mathalpha}{operators}{"02} |
| 957 |
\DeclareMathSymbol{\Lambda}{\mathalpha}{operators}{"03} |
| 958 |
\DeclareMathSymbol{\Xi}{\mathalpha}{operators}{"04} |
| 959 |
\DeclareMathSymbol{\Pi}{\mathalpha}{operators}{"05} |
| 960 |
\DeclareMathSymbol{\Sigma}{\mathalpha}{operators}{"06} |
| 961 |
\DeclareMathSymbol{\Upsilon}{\mathalpha}{operators}{"07} |
| 962 |
\DeclareMathSymbol{\Phi}{\mathalpha}{operators}{"08} |
| 963 |
\DeclareMathSymbol{\Psi}{\mathalpha}{operators}{"09} |
| 964 |
\DeclareMathSymbol{\Omega}{\mathalpha}{operators}{"0A} |
| 965 |
% \end{macrocode} |
| 966 |
% |
| 967 |
% |
| 968 |
% \subsubsection{Ordinary symbols} |
| 969 |
% |
| 970 |
% \begin{macrocode} |
| 971 |
\DeclareMathSymbol{\aleph}{\mathord}{symbols}{"40} |
| 972 |
\DeclareMathSymbol{\imath}{\mathord}{letters}{"7B} |
| 973 |
\DeclareMathSymbol{\jmath}{\mathord}{letters}{"7C} |
| 974 |
\DeclareMathSymbol{\ell}{\mathord}{letters}{"60} |
| 975 |
\DeclareMathSymbol{\wp}{\mathord}{letters}{"7D} |
| 976 |
\DeclareMathSymbol{\Re}{\mathord}{symbols}{"3C} |
| 977 |
\DeclareMathSymbol{\Im}{\mathord}{symbols}{"3D} |
| 978 |
\DeclareMathSymbol{\partial}{\mathord}{letters}{"40} |
| 979 |
\DeclareMathSymbol{\infty}{\mathord}{symbols}{"31} |
| 980 |
\DeclareMathSymbol{\prime}{\mathord}{symbols}{"30} |
| 981 |
\DeclareMathSymbol{\emptyset}{\mathord}{symbols}{"3B} |
| 982 |
\DeclareMathSymbol{\nabla}{\mathord}{symbols}{"72} |
| 983 |
\DeclareMathSymbol{\top}{\mathord}{symbols}{"3E} |
| 984 |
\DeclareMathSymbol{\bot}{\mathord}{symbols}{"3F} |
| 985 |
\DeclareMathSymbol{\triangle}{\mathord}{symbols}{"34} |
| 986 |
\DeclareMathSymbol{\forall}{\mathord}{symbols}{"38} |
| 987 |
\DeclareMathSymbol{\exists}{\mathord}{symbols}{"39} |
| 988 |
\DeclareMathSymbol{\neg}{\mathord}{symbols}{"3A} |
| 989 |
% \end{macrocode} |
| 990 |
% Alias: |
| 991 |
% \changes{v3.0e}{2019/12/21}{Distangle alias (gh/184)} |
| 992 |
% \begin{macrocode} |
| 993 |
% \let\lnot=\neg |
| 994 |
\DeclareMathSymbol{\lnot}{\mathord}{symbols}{"3A} |
| 995 |
% \end{macrocode} |
| 996 |
% |
| 997 |
% \begin{macrocode} |
| 998 |
\DeclareMathSymbol{\flat}{\mathord}{letters}{"5B} |
| 999 |
\DeclareMathSymbol{\natural}{\mathord}{letters}{"5C} |
| 1000 |
\DeclareMathSymbol{\sharp}{\mathord}{letters}{"5D} |
| 1001 |
\DeclareMathSymbol{\clubsuit}{\mathord}{symbols}{"7C} |
| 1002 |
\DeclareMathSymbol{\diamondsuit}{\mathord}{symbols}{"7D} |
| 1003 |
\DeclareMathSymbol{\heartsuit}{\mathord}{symbols}{"7E} |
| 1004 |
\DeclareMathSymbol{\spadesuit}{\mathord}{symbols}{"7F} |
| 1005 |
% \end{macrocode} |
| 1006 |
% |
| 1007 |
% \changes{v3.0c}{2019/08/27}{Various commands made robust throughout |
| 1008 |
% the file} |
| 1009 |
% \begin{macrocode} |
| 1010 |
\DeclareRobustCommand\hbar{{\mathchar'26\mkern-9muh}} |
| 1011 |
\DeclareRobustCommand\surd{{\mathchar"1270}} |
| 1012 |
\DeclareRobustCommand\angle{{\vbox{\ialign{$\m@th\scriptstyle##$\crcr |
| 1013 |
\not\mathrel{\mkern14mu}\crcr |
| 1014 |
\noalign{\nointerlineskip} |
| 1015 |
\mkern2.5mu\leaders\hrule \@height.34pt\hfill\mkern2.5mu\crcr}}}} |
| 1016 |
% \end{macrocode} |
| 1017 |
% |
| 1018 |
% |
| 1019 |
% \subsubsection{Large Operators} |
| 1020 |
% |
| 1021 |
% \begin{macrocode} |
| 1022 |
\DeclareMathSymbol{\coprod}{\mathop}{largesymbols}{"60} |
| 1023 |
\DeclareMathSymbol{\bigvee}{\mathop}{largesymbols}{"57} |
| 1024 |
\DeclareMathSymbol{\bigwedge}{\mathop}{largesymbols}{"56} |
| 1025 |
\DeclareMathSymbol{\biguplus}{\mathop}{largesymbols}{"55} |
| 1026 |
\DeclareMathSymbol{\bigcap}{\mathop}{largesymbols}{"54} |
| 1027 |
\DeclareMathSymbol{\bigcup}{\mathop}{largesymbols}{"53} |
| 1028 |
\DeclareMathSymbol{\intop}{\mathop}{largesymbols}{"52} |
| 1029 |
\DeclareRobustCommand\int{\intop\nolimits} |
| 1030 |
\DeclareMathSymbol{\prod}{\mathop}{largesymbols}{"51} |
| 1031 |
\DeclareMathSymbol{\sum}{\mathop}{largesymbols}{"50} |
| 1032 |
\DeclareMathSymbol{\bigotimes}{\mathop}{largesymbols}{"4E} |
| 1033 |
\DeclareMathSymbol{\bigoplus}{\mathop}{largesymbols}{"4C} |
| 1034 |
\DeclareMathSymbol{\bigodot}{\mathop}{largesymbols}{"4A} |
| 1035 |
\DeclareMathSymbol{\ointop}{\mathop}{largesymbols}{"48} |
| 1036 |
\DeclareRobustCommand\oint{\ointop\nolimits} |
| 1037 |
\DeclareMathSymbol{\bigsqcup}{\mathop}{largesymbols}{"46} |
| 1038 |
\DeclareMathSymbol{\smallint}{\mathop}{symbols}{"73} |
| 1039 |
% \end{macrocode} |
| 1040 |
% |
| 1041 |
% |
| 1042 |
% \subsubsection{Binary symbols} |
| 1043 |
% |
| 1044 |
% \changes{v2.3a}{2004/02/04} |
| 1045 |
% {Added bigtriangle synonyms for stmaryrd} |
| 1046 |
% \begin{macrocode} |
| 1047 |
\DeclareMathSymbol{\triangleleft}{\mathbin}{letters}{"2F} |
| 1048 |
\DeclareMathSymbol{\triangleright}{\mathbin}{letters}{"2E} |
| 1049 |
\DeclareMathSymbol{\bigtriangleup}{\mathbin}{symbols}{"34} |
| 1050 |
\DeclareMathSymbol{\bigtriangledown}{\mathbin}{symbols}{"35} |
| 1051 |
% \end{macrocode} |
| 1052 |
% Alias: |
| 1053 |
% \changes{v3.0e}{2019/12/21}{Distangle alias (gh/184)} |
| 1054 |
% \begin{macrocode} |
| 1055 |
% \let \varbigtriangledown \bigtriangledown |
| 1056 |
% \let \varbigtriangleup \bigtriangleup |
| 1057 |
\DeclareMathSymbol{\varbigtriangleup}{\mathbin}{symbols}{"34} |
| 1058 |
\DeclareMathSymbol{\varbigtriangledown}{\mathbin}{symbols}{"35} |
| 1059 |
% \end{macrocode} |
| 1060 |
% |
| 1061 |
% These last two synonyms are needed because the \textsf{stmaryrd} |
| 1062 |
% package redefines them as Operators. |
| 1063 |
% |
| 1064 |
% \begin{macrocode} |
| 1065 |
\DeclareMathSymbol{\wedge}{\mathbin}{symbols}{"5E} |
| 1066 |
\DeclareMathSymbol{\vee}{\mathbin}{symbols}{"5F} |
| 1067 |
% \end{macrocode} |
| 1068 |
% Alias: |
| 1069 |
% \changes{v3.0e}{2019/12/21}{Distangle alias (gh/184)} |
| 1070 |
% \begin{macrocode} |
| 1071 |
% \let\land=\wedge |
| 1072 |
% \let\lor=\vee |
| 1073 |
\DeclareMathSymbol{\land}{\mathbin}{symbols}{"5E} |
| 1074 |
\DeclareMathSymbol{\lor}{\mathbin}{symbols}{"5F} |
| 1075 |
% \end{macrocode} |
| 1076 |
% |
| 1077 |
% \begin{macrocode} |
| 1078 |
\DeclareMathSymbol{\cap}{\mathbin}{symbols}{"5C} |
| 1079 |
\DeclareMathSymbol{\cup}{\mathbin}{symbols}{"5B} |
| 1080 |
\DeclareMathSymbol{\ddagger}{\mathbin}{symbols}{"7A} |
| 1081 |
\DeclareMathSymbol{\dagger}{\mathbin}{symbols}{"79} |
| 1082 |
\DeclareMathSymbol{\sqcap}{\mathbin}{symbols}{"75} |
| 1083 |
\DeclareMathSymbol{\sqcup}{\mathbin}{symbols}{"74} |
| 1084 |
\DeclareMathSymbol{\uplus}{\mathbin}{symbols}{"5D} |
| 1085 |
\DeclareMathSymbol{\amalg}{\mathbin}{symbols}{"71} |
| 1086 |
\DeclareMathSymbol{\diamond}{\mathbin}{symbols}{"05} |
| 1087 |
\DeclareMathSymbol{\bullet}{\mathbin}{symbols}{"0F} |
| 1088 |
\DeclareMathSymbol{\wr}{\mathbin}{symbols}{"6F} |
| 1089 |
\DeclareMathSymbol{\div}{\mathbin}{symbols}{"04} |
| 1090 |
\DeclareMathSymbol{\odot}{\mathbin}{symbols}{"0C} |
| 1091 |
\DeclareMathSymbol{\oslash}{\mathbin}{symbols}{"0B} |
| 1092 |
\DeclareMathSymbol{\otimes}{\mathbin}{symbols}{"0A} |
| 1093 |
\DeclareMathSymbol{\ominus}{\mathbin}{symbols}{"09} |
| 1094 |
\DeclareMathSymbol{\oplus}{\mathbin}{symbols}{"08} |
| 1095 |
\DeclareMathSymbol{\mp}{\mathbin}{symbols}{"07} |
| 1096 |
\DeclareMathSymbol{\pm}{\mathbin}{symbols}{"06} |
| 1097 |
\DeclareMathSymbol{\circ}{\mathbin}{symbols}{"0E} |
| 1098 |
\DeclareMathSymbol{\bigcirc}{\mathbin}{symbols}{"0D} |
| 1099 |
\DeclareMathSymbol{\setminus}{\mathbin}{symbols}{"6E} |
| 1100 |
\DeclareMathSymbol{\cdot}{\mathbin}{symbols}{"01} |
| 1101 |
\DeclareMathSymbol{\ast}{\mathbin}{symbols}{"03} |
| 1102 |
\DeclareMathSymbol{\times}{\mathbin}{symbols}{"02} |
| 1103 |
\DeclareMathSymbol{\star}{\mathbin}{letters}{"3F} |
| 1104 |
% \end{macrocode} |
| 1105 |
% |
| 1106 |
% |
| 1107 |
% \subsubsection{Relations} |
| 1108 |
% |
| 1109 |
% \begin{macrocode} |
| 1110 |
\DeclareMathSymbol{\propto}{\mathrel}{symbols}{"2F} |
| 1111 |
\DeclareMathSymbol{\sqsubseteq}{\mathrel}{symbols}{"76} |
| 1112 |
\DeclareMathSymbol{\sqsupseteq}{\mathrel}{symbols}{"77} |
| 1113 |
\DeclareMathSymbol{\parallel}{\mathrel}{symbols}{"6B} |
| 1114 |
\DeclareMathSymbol{\mid}{\mathrel}{symbols}{"6A} |
| 1115 |
\DeclareMathSymbol{\dashv}{\mathrel}{symbols}{"61} |
| 1116 |
\DeclareMathSymbol{\vdash}{\mathrel}{symbols}{"60} |
| 1117 |
\DeclareMathSymbol{\nearrow}{\mathrel}{symbols}{"25} |
| 1118 |
\DeclareMathSymbol{\searrow}{\mathrel}{symbols}{"26} |
| 1119 |
\DeclareMathSymbol{\nwarrow}{\mathrel}{symbols}{"2D} |
| 1120 |
\DeclareMathSymbol{\swarrow}{\mathrel}{symbols}{"2E} |
| 1121 |
\DeclareMathSymbol{\Leftrightarrow}{\mathrel}{symbols}{"2C} |
| 1122 |
\DeclareMathSymbol{\Leftarrow}{\mathrel}{symbols}{"28} |
| 1123 |
\DeclareMathSymbol{\Rightarrow}{\mathrel}{symbols}{"29} |
| 1124 |
\DeclareRobustCommand\neq{\not=} |
| 1125 |
% \end{macrocode} |
| 1126 |
% As \cs{neq} is robust we should not use \cs{let} to define |
| 1127 |
% \cs{ne} as then it would change if \cs{neq} changes. |
| 1128 |
% \changes{v3.0d}{2019/09/21}{Distangle alias (gh/184)} |
| 1129 |
% \begin{macrocode} |
| 1130 |
\DeclareRobustCommand\ne{\not=} |
| 1131 |
% \end{macrocode} |
| 1132 |
% It would ok to use \cs{let} for those declared by |
| 1133 |
% \cs{DeclareMathSymbol} but for a cleaner interface we avoid it |
| 1134 |
% always (just in case the internals change). |
| 1135 |
% \begin{macrocode} |
| 1136 |
\DeclareMathSymbol{\leq}{\mathrel}{symbols}{"14} |
| 1137 |
\DeclareMathSymbol{\geq}{\mathrel}{symbols}{"15} |
| 1138 |
% \end{macrocode} |
| 1139 |
% Alias: |
| 1140 |
% \changes{v3.0e}{2019/12/21}{Distangle alias (gh/184)} |
| 1141 |
% \begin{macrocode} |
| 1142 |
% \let\le=\leq |
| 1143 |
% \let\ge=\geq |
| 1144 |
\DeclareMathSymbol{\le}{\mathrel}{symbols}{"14} |
| 1145 |
\DeclareMathSymbol{\ge}{\mathrel}{symbols}{"15} |
| 1146 |
% \end{macrocode} |
| 1147 |
% |
| 1148 |
% \begin{macrocode} |
| 1149 |
\DeclareMathSymbol{\succ}{\mathrel}{symbols}{"1F} |
| 1150 |
\DeclareMathSymbol{\prec}{\mathrel}{symbols}{"1E} |
| 1151 |
\DeclareMathSymbol{\approx}{\mathrel}{symbols}{"19} |
| 1152 |
\DeclareMathSymbol{\succeq}{\mathrel}{symbols}{"17} |
| 1153 |
\DeclareMathSymbol{\preceq}{\mathrel}{symbols}{"16} |
| 1154 |
\DeclareMathSymbol{\supset}{\mathrel}{symbols}{"1B} |
| 1155 |
\DeclareMathSymbol{\subset}{\mathrel}{symbols}{"1A} |
| 1156 |
\DeclareMathSymbol{\supseteq}{\mathrel}{symbols}{"13} |
| 1157 |
\DeclareMathSymbol{\subseteq}{\mathrel}{symbols}{"12} |
| 1158 |
\DeclareMathSymbol{\in}{\mathrel}{symbols}{"32} |
| 1159 |
\DeclareMathSymbol{\ni}{\mathrel}{symbols}{"33} |
| 1160 |
% \end{macrocode} |
| 1161 |
% Alias: |
| 1162 |
% \changes{v3.0e}{2019/12/21}{Distangle alias (gh/184)} |
| 1163 |
% \begin{macrocode} |
| 1164 |
% \let\owns=\ni |
| 1165 |
\DeclareMathSymbol{\owns}{\mathrel}{symbols}{"33} |
| 1166 |
% \end{macrocode} |
| 1167 |
% |
| 1168 |
% \begin{macrocode} |
| 1169 |
\DeclareMathSymbol{\gg}{\mathrel}{symbols}{"1D} |
| 1170 |
\DeclareMathSymbol{\ll}{\mathrel}{symbols}{"1C} |
| 1171 |
\DeclareMathSymbol{\not}{\mathrel}{symbols}{"36} |
| 1172 |
\DeclareMathSymbol{\leftrightarrow}{\mathrel}{symbols}{"24} |
| 1173 |
\DeclareMathSymbol{\leftarrow}{\mathrel}{symbols}{"20} |
| 1174 |
\DeclareMathSymbol{\rightarrow}{\mathrel}{symbols}{"21} |
| 1175 |
% \end{macrocode} |
| 1176 |
% Alias: |
| 1177 |
% \changes{v3.0e}{2019/12/21}{Distangle alias (gh/184)} |
| 1178 |
% \begin{macrocode} |
| 1179 |
% \let\gets=\leftarrow |
| 1180 |
% \let\to=\rightarrow |
| 1181 |
\DeclareMathSymbol{\gets}{\mathrel}{symbols}{"20} |
| 1182 |
\DeclareMathSymbol{\to}{\mathrel}{symbols}{"21} |
| 1183 |
% \end{macrocode} |
| 1184 |
% |
| 1185 |
% \begin{macrocode} |
| 1186 |
\DeclareMathSymbol{\mapstochar}{\mathrel}{symbols}{"37} |
| 1187 |
\DeclareRobustCommand\mapsto{\mapstochar\rightarrow} |
| 1188 |
\DeclareMathSymbol{\sim}{\mathrel}{symbols}{"18} |
| 1189 |
\DeclareMathSymbol{\simeq}{\mathrel}{symbols}{"27} |
| 1190 |
\DeclareMathSymbol{\perp}{\mathrel}{symbols}{"3F} |
| 1191 |
\DeclareMathSymbol{\equiv}{\mathrel}{symbols}{"11} |
| 1192 |
\DeclareMathSymbol{\asymp}{\mathrel}{symbols}{"10} |
| 1193 |
\DeclareMathSymbol{\smile}{\mathrel}{letters}{"5E} |
| 1194 |
\DeclareMathSymbol{\frown}{\mathrel}{letters}{"5F} |
| 1195 |
\DeclareMathSymbol{\leftharpoonup}{\mathrel}{letters}{"28} |
| 1196 |
\DeclareMathSymbol{\leftharpoondown}{\mathrel}{letters}{"29} |
| 1197 |
\DeclareMathSymbol{\rightharpoonup}{\mathrel}{letters}{"2A} |
| 1198 |
\DeclareMathSymbol{\rightharpoondown}{\mathrel}{letters}{"2B} |
| 1199 |
% \end{macrocode} |
| 1200 |
% |
| 1201 |
% Here cometh much profligate robustification of math constructs. |
| 1202 |
% Warning: some of these commands may become non-robust if an |
| 1203 |
% AMS package is loaded. |
| 1204 |
% |
| 1205 |
% Further potential problems: some math font packages may make |
| 1206 |
% unfortunate assumptions about some of these definitions that are |
| 1207 |
% not true of the robust versions we need. |
| 1208 |
% \changes{v2.3}{2004/02/02} |
| 1209 |
% {Many things from here on made robust} |
| 1210 |
% \begin{macrocode} |
| 1211 |
\DeclareRobustCommand |
| 1212 |
\cong{\mathrel{\mathpalette\@vereq\sim}} % congruence sign |
| 1213 |
\def\@vereq#1#2{\lower.5\p@\vbox{\lineskiplimit\maxdimen\lineskip-.5\p@ |
| 1214 |
\ialign{$\m@th#1\hfil##\hfil$\crcr#2\crcr=\crcr}}} |
| 1215 |
\DeclareRobustCommand |
| 1216 |
\notin{\mathrel{\m@th\mathpalette\c@ncel\in}} |
| 1217 |
\def\c@ncel#1#2{\m@th\ooalign{$\hfil#1\mkern1mu/\hfil$\crcr$#1#2$}} |
| 1218 |
\DeclareRobustCommand |
| 1219 |
\rightleftharpoons{\mathrel{\mathpalette\rlh@{}}} |
| 1220 |
\def\rlh@#1{\vcenter{\m@th\hbox{\ooalign{\raise2pt |
| 1221 |
\hbox{$#1\rightharpoonup$}\crcr |
| 1222 |
$#1\leftharpoondown$}}}} |
| 1223 |
\DeclareRobustCommand |
| 1224 |
\doteq{\buildrel\textstyle.\over=} |
| 1225 |
% \end{macrocode} |
| 1226 |
% |
| 1227 |
% \subsubsection{Arrows} |
| 1228 |
% |
| 1229 |
% \begin{macrocode} |
| 1230 |
\DeclareRobustCommand |
| 1231 |
\joinrel{\mathrel{\mkern-3mu}} |
| 1232 |
\DeclareRobustCommand |
| 1233 |
\relbar{\mathrel{\smash-}} % \smash, because - |
| 1234 |
% has the same height as + |
| 1235 |
% \end{macrocode} |
| 1236 |
% In contrast to \texttt{plain.tex} |\Relbar| got braces around the |
| 1237 |
% equal sign to guard against it being ``math active'' expanding to |
| 1238 |
% |\futurelet...|. This might be the case when packages are |
| 1239 |
% implementing shorthands for math, e.g. |=>| meaning |\Rightarrow| |
| 1240 |
% etc. It would actually be better not to use |=| in such |
| 1241 |
% definitions but instead define something like |\mathequalsign| |
| 1242 |
% and use this. However we can't do this now as it would break |
| 1243 |
% other math layouts where characters are in different places |
| 1244 |
% (since those wouldn't know about the need for a new command name). |
| 1245 |
% \changes{v2.2z}{2001/06/04}{Guard against math active equal sign in |
| 1246 |
% \cs{Relbar} (pr/3333)} |
| 1247 |
% \begin{macrocode} |
| 1248 |
\DeclareRobustCommand |
| 1249 |
\Relbar{\mathrel{=}} |
| 1250 |
\DeclareMathSymbol{\lhook}{\mathrel}{letters}{"2C} |
| 1251 |
\DeclareRobustCommand\hookrightarrow{\lhook\joinrel\rightarrow} |
| 1252 |
\DeclareMathSymbol{\rhook}{\mathrel}{letters}{"2D} |
| 1253 |
\DeclareRobustCommand\hookleftarrow{\leftarrow\joinrel\rhook} |
| 1254 |
\DeclareRobustCommand |
| 1255 |
\bowtie{\mathrel\triangleright\joinrel\mathrel\triangleleft} |
| 1256 |
% \end{macrocode} |
| 1257 |
% |
| 1258 |
% \changes{v2.2z}{2001/06/04}{Guard against math active equal and pipe |
| 1259 |
% sign in \cs{models} (pr/3333)} |
| 1260 |
% \begin{macrocode} |
| 1261 |
\DeclareRobustCommand |
| 1262 |
\models{\mathrel{|}\joinrel\Relbar} |
| 1263 |
\DeclareRobustCommand |
| 1264 |
\Longrightarrow{\Relbar\joinrel\Rightarrow} |
| 1265 |
% \end{macrocode} |
| 1266 |
% |
| 1267 |
% LaTeX Change: |\longrightarrow| and |\longleftarrow| redefined to make |
| 1268 |
% then robust. |
| 1269 |
% \begin{macrocode} |
| 1270 |
\DeclareRobustCommand\longrightarrow |
| 1271 |
{\relbar\joinrel\rightarrow} |
| 1272 |
\DeclareRobustCommand\longleftarrow |
| 1273 |
{\leftarrow\joinrel\relbar} |
| 1274 |
% \end{macrocode} |
| 1275 |
% |
| 1276 |
% \begin{macrocode} |
| 1277 |
\DeclareRobustCommand |
| 1278 |
\Longleftarrow{\Leftarrow\joinrel\Relbar} |
| 1279 |
\DeclareRobustCommand |
| 1280 |
\longmapsto{\mapstochar\longrightarrow} |
| 1281 |
\DeclareRobustCommand |
| 1282 |
\longleftrightarrow{\leftarrow\joinrel\rightarrow} |
| 1283 |
\DeclareRobustCommand |
| 1284 |
\Longleftrightarrow{\Leftarrow\joinrel\Rightarrow} |
| 1285 |
\DeclareRobustCommand |
| 1286 |
\iff{\;\Longleftrightarrow\;} |
| 1287 |
% \end{macrocode} |
| 1288 |
% |
| 1289 |
% |
| 1290 |
% \subsubsection{Punctuation symbols} |
| 1291 |
% |
| 1292 |
% \begin{macrocode} |
| 1293 |
\DeclareMathSymbol{\ldotp}{\mathpunct}{letters}{"3A} |
| 1294 |
\DeclareMathSymbol{\cdotp}{\mathpunct}{symbols}{"01} |
| 1295 |
\DeclareMathSymbol{\colon}{\mathpunct}{operators}{"3A} |
| 1296 |
% \end{macrocode} |
| 1297 |
% |
| 1298 |
% |
| 1299 |
% This is commented out, since |\ldots| is now defined in ltoutenc.dtx. |
| 1300 |
% \begin{macrocode} |
| 1301 |
%\def\@ldots{\mathinner{\ldotp\ldotp\ldotp}} |
| 1302 |
%\DeclareRobustCommand\ldots |
| 1303 |
% {\relax\ifmmode\@ldots\else\mbox{$\m@th\@ldots\,$}\fi} |
| 1304 |
% \end{macrocode} |
| 1305 |
% |
| 1306 |
% \begin{macrocode} |
| 1307 |
\DeclareRobustCommand |
| 1308 |
\cdots{\mathinner{\cdotp\cdotp\cdotp}} |
| 1309 |
\DeclareRobustCommand |
| 1310 |
\vdots{\vbox{\baselineskip4\p@ \lineskiplimit\z@ |
| 1311 |
\kern6\p@\hbox{.}\hbox{.}\hbox{.}}} |
| 1312 |
\DeclareRobustCommand |
| 1313 |
\ddots{\mathinner{\mkern1mu\raise7\p@ |
| 1314 |
\vbox{\kern7\p@\hbox{.}}\mkern2mu |
| 1315 |
\raise4\p@\hbox{.}\mkern2mu\raise\p@\hbox{.}\mkern1mu}} |
| 1316 |
% \end{macrocode} |
| 1317 |
% |
| 1318 |
% |
| 1319 |
% \subsubsection{Math accents} |
| 1320 |
% |
| 1321 |
% \begin{macrocode} |
| 1322 |
\DeclareMathAccent{\acute}{\mathalpha}{operators}{"13} |
| 1323 |
\DeclareMathAccent{\grave}{\mathalpha}{operators}{"12} |
| 1324 |
\DeclareMathAccent{\ddot}{\mathalpha}{operators}{"7F} |
| 1325 |
\DeclareMathAccent{\tilde}{\mathalpha}{operators}{"7E} |
| 1326 |
\DeclareMathAccent{\bar}{\mathalpha}{operators}{"16} |
| 1327 |
\DeclareMathAccent{\breve}{\mathalpha}{operators}{"15} |
| 1328 |
\DeclareMathAccent{\check}{\mathalpha}{operators}{"14} |
| 1329 |
\DeclareMathAccent{\hat}{\mathalpha}{operators}{"5E} |
| 1330 |
\DeclareMathAccent{\vec}{\mathord}{letters}{"7E} |
| 1331 |
\DeclareMathAccent{\dot}{\mathalpha}{operators}{"5F} |
| 1332 |
\DeclareMathAccent{\widetilde}{\mathord}{largesymbols}{"65} |
| 1333 |
\DeclareMathAccent{\widehat}{\mathord}{largesymbols}{"62} |
| 1334 |
% \end{macrocode} |
| 1335 |
% For some reason plain \TeX{} never bothered to provide |
| 1336 |
% a ring accent in math (although it is available in the fonts), |
| 1337 |
% but since we got a request for it here we go: |
| 1338 |
% \changes{v2.2t}{1998/04/11}{Added \cs{mathring} accent (pr2785)} |
| 1339 |
% \begin{macrocode} |
| 1340 |
\DeclareMathAccent{\mathring}{\mathalpha}{operators}{"17} |
| 1341 |
% \end{macrocode} |
| 1342 |
% |
| 1343 |
% |
| 1344 |
% \subsubsection{Radicals} |
| 1345 |
% |
| 1346 |
% \changes{v2.2o}{1996/05/17}{\cs{@@sqrt} removed, at last} |
| 1347 |
% \begin{macrocode} |
| 1348 |
\DeclareMathRadical{\sqrtsign}{symbols}{"70}{largesymbols}{"70} |
| 1349 |
% \end{macrocode} |
| 1350 |
% |
| 1351 |
% |
| 1352 |
% \subsubsection{Over and under something, etc} |
| 1353 |
% |
| 1354 |
% \begin{macrocode} |
| 1355 |
\DeclareRobustCommand\overrightarrow[1]{\vbox{\m@th\ialign{##\crcr |
| 1356 |
\rightarrowfill\crcr\noalign{\kern-\p@\nointerlineskip} |
| 1357 |
$\hfil\displaystyle{#1}\hfil$\crcr}}} |
| 1358 |
\DeclareRobustCommand\overleftarrow[1]{\vbox{\m@th\ialign{##\crcr |
| 1359 |
\leftarrowfill\crcr\noalign{\kern-\p@\nointerlineskip}% |
| 1360 |
$\hfil\displaystyle{#1}\hfil$\crcr}}} |
| 1361 |
\DeclareRobustCommand\overbrace[1] |
| 1362 |
{\mathop{\vbox{\m@th\ialign{##\crcr\noalign{\kern3\p@}% |
| 1363 |
\downbracefill\crcr\noalign{\kern3\p@\nointerlineskip}% |
| 1364 |
$\hfil\displaystyle{#1}\hfil$\crcr}}}\limits} |
| 1365 |
\DeclareRobustCommand\underbrace[1]{\mathop{\vtop{\m@th\ialign{##\crcr |
| 1366 |
$\hfil\displaystyle{#1}\hfil$\crcr |
| 1367 |
\noalign{\kern3\p@\nointerlineskip}% |
| 1368 |
\upbracefill\crcr\noalign{\kern3\p@}}}}\limits} |
| 1369 |
% \end{macrocode} |
| 1370 |
% (quite a waste of tokens, IMHO --- Frank) |
| 1371 |
% \begin{macrocode} |
| 1372 |
\DeclareRobustCommand\skew[3] |
| 1373 |
{{\muskip\z@#1mu\divide\muskip\z@\tw@ \mkern\muskip\z@ |
| 1374 |
#2{\mkern-\muskip\z@{#3}\mkern\muskip\z@}\mkern-\muskip\z@}{}} |
| 1375 |
% \end{macrocode} |
| 1376 |
% |
| 1377 |
% \changes{v2.2n}{1995/11/21}{Incorporate changed figures, |
| 1378 |
% as in plain.tex} |
| 1379 |
% \begin{macrocode} |
| 1380 |
\DeclareRobustCommand\rightarrowfill{$\m@th\smash-\mkern-7mu% |
| 1381 |
\cleaders\hbox{$\mkern-2mu\smash-\mkern-2mu$}\hfill |
| 1382 |
\mkern-7mu\mathord\rightarrow$} |
| 1383 |
\DeclareRobustCommand\leftarrowfill{$\m@th\mathord\leftarrow\mkern-7mu% |
| 1384 |
\cleaders\hbox{$\mkern-2mu\smash-\mkern-2mu$}\hfill |
| 1385 |
\mkern-7mu\smash-$} |
| 1386 |
\DeclareMathSymbol{\braceld}{\mathord}{largesymbols}{"7A} |
| 1387 |
\DeclareMathSymbol{\bracerd}{\mathord}{largesymbols}{"7B} |
| 1388 |
\DeclareMathSymbol{\bracelu}{\mathord}{largesymbols}{"7C} |
| 1389 |
\DeclareMathSymbol{\braceru}{\mathord}{largesymbols}{"7D} |
| 1390 |
\DeclareRobustCommand\downbracefill{$\m@th \setbox\z@\hbox{$\braceld$}% |
| 1391 |
\braceld\leaders\vrule \@height\ht\z@ \@depth\z@\hfill\braceru |
| 1392 |
\bracelu\leaders\vrule \@height\ht\z@ \@depth\z@\hfill\bracerd$} |
| 1393 |
\DeclareRobustCommand\upbracefill{$\m@th \setbox\z@\hbox{$\braceld$}% |
| 1394 |
\bracelu\leaders\vrule \@height\ht\z@ \@depth\z@\hfill\bracerd |
| 1395 |
\braceld\leaders\vrule \@height\ht\z@ \@depth\z@\hfill\braceru$} |
| 1396 |
% \end{macrocode} |
| 1397 |
% |
| 1398 |
% \subsubsection{Delimiters} |
| 1399 |
% |
| 1400 |
% \begin{macrocode} |
| 1401 |
\DeclareMathDelimiter{\lmoustache} % top from (, bottom from ) |
| 1402 |
{\mathopen}{largesymbols}{"7A}{largesymbols}{"40} |
| 1403 |
\DeclareMathDelimiter{\rmoustache} % top from ), bottom from ( |
| 1404 |
{\mathclose}{largesymbols}{"7B}{largesymbols}{"41} |
| 1405 |
\DeclareMathDelimiter{\arrowvert} % arrow without arrowheads |
| 1406 |
{\mathord}{symbols}{"6A}{largesymbols}{"3C} |
| 1407 |
\DeclareMathDelimiter{\Arrowvert} % double arrow without arrowheads |
| 1408 |
{\mathord}{symbols}{"6B}{largesymbols}{"3D} |
| 1409 |
\DeclareMathDelimiter{\Vert} |
| 1410 |
{\mathord}{symbols}{"6B}{largesymbols}{"0D} |
| 1411 |
% \end{macrocode} |
| 1412 |
% \cs{DeclareMathDelimiter} produces a command that is robust (with |
| 1413 |
% an internal macro containing the payload) so we should not use |
| 1414 |
% \cs{let} for making an alias |
| 1415 |
% \changes{v3.0d}{2019/09/21}{Distangle alias (gh/184)} |
| 1416 |
% \begin{macrocode} |
| 1417 |
%\let\|=\Vert |
| 1418 |
\DeclareMathDelimiter{\|} |
| 1419 |
{\mathord}{symbols}{"6B}{largesymbols}{"0D} |
| 1420 |
% \end{macrocode} |
| 1421 |
% |
| 1422 |
% \begin{macrocode} |
| 1423 |
\DeclareMathDelimiter{\vert} |
| 1424 |
{\mathord}{symbols}{"6A}{largesymbols}{"0C} |
| 1425 |
\DeclareMathDelimiter{\uparrow} |
| 1426 |
{\mathrel}{symbols}{"22}{largesymbols}{"78} |
| 1427 |
\DeclareMathDelimiter{\downarrow} |
| 1428 |
{\mathrel}{symbols}{"23}{largesymbols}{"79} |
| 1429 |
\DeclareMathDelimiter{\updownarrow} |
| 1430 |
{\mathrel}{symbols}{"6C}{largesymbols}{"3F} |
| 1431 |
\DeclareMathDelimiter{\Uparrow} |
| 1432 |
{\mathrel}{symbols}{"2A}{largesymbols}{"7E} |
| 1433 |
\DeclareMathDelimiter{\Downarrow} |
| 1434 |
{\mathrel}{symbols}{"2B}{largesymbols}{"7F} |
| 1435 |
\DeclareMathDelimiter{\Updownarrow} |
| 1436 |
{\mathrel}{symbols}{"6D}{largesymbols}{"77} |
| 1437 |
\DeclareMathDelimiter{\backslash} % for double coset G\backslash H |
| 1438 |
{\mathord}{symbols}{"6E}{largesymbols}{"0F} |
| 1439 |
\DeclareMathDelimiter{\rangle} |
| 1440 |
{\mathclose}{symbols}{"69}{largesymbols}{"0B} |
| 1441 |
\DeclareMathDelimiter{\langle} |
| 1442 |
{\mathopen}{symbols}{"68}{largesymbols}{"0A} |
| 1443 |
\DeclareMathDelimiter{\rbrace} |
| 1444 |
{\mathclose}{symbols}{"67}{largesymbols}{"09} |
| 1445 |
\DeclareMathDelimiter{\lbrace} |
| 1446 |
{\mathopen}{symbols}{"66}{largesymbols}{"08} |
| 1447 |
\DeclareMathDelimiter{\rceil} |
| 1448 |
{\mathclose}{symbols}{"65}{largesymbols}{"07} |
| 1449 |
\DeclareMathDelimiter{\lceil} |
| 1450 |
{\mathopen}{symbols}{"64}{largesymbols}{"06} |
| 1451 |
\DeclareMathDelimiter{\rfloor} |
| 1452 |
{\mathclose}{symbols}{"63}{largesymbols}{"05} |
| 1453 |
\DeclareMathDelimiter{\lfloor} |
| 1454 |
{\mathopen}{symbols}{"62}{largesymbols}{"04} |
| 1455 |
% \end{macrocode} |
| 1456 |
% |
| 1457 |
% \begin{macro}{\lgroup} |
| 1458 |
% \begin{macro}{\rgroup} |
| 1459 |
% \begin{macro}{\bracevert} |
| 1460 |
% There are three plain \TeX{} delimiters which are not fully |
| 1461 |
% supported by NFSS, since they partly point into a bold cmr font. |
| 1462 |
% Allocating a full symbol font, just to have three delimiters |
| 1463 |
% seems a bit too much given the limited space available. For this |
| 1464 |
% reason only the extensible sizes are supported. If this is not |
| 1465 |
% desired one can use, without losing portability, define |\mathbf| |
| 1466 |
% and |\mathtt| as font symbol alphabet (setting up |
| 1467 |
% \texttt{cmr/bx/n} and \texttt{cmtt/m/n} as symbol fonts first) |
| 1468 |
% and modify the delimiter declarations to point with their |
| 1469 |
% small variant to those symbol fonts. (This is done in |
| 1470 |
% \texttt{oldlfont.dtx} so look there for examples.) |
| 1471 |
% \begin{macrocode} |
| 1472 |
\DeclareMathDelimiter{\lgroup} % extensible ( with sharper tips |
| 1473 |
{\mathopen}{largesymbols}{"3A}{largesymbols}{"3A} |
| 1474 |
\DeclareMathDelimiter{\rgroup} % extensible ) with sharper tips |
| 1475 |
{\mathclose}{largesymbols}{"3B}{largesymbols}{"3B} |
| 1476 |
\DeclareMathDelimiter{\bracevert} % the vertical bar that extends braces |
| 1477 |
{\mathord}{largesymbols}{"3E}{largesymbols}{"3E} |
| 1478 |
% \end{macrocode} |
| 1479 |
% \end{macro} |
| 1480 |
% \end{macro} |
| 1481 |
% \end{macro} |
| 1482 |
% |
| 1483 |
% \subsection{Math versions of text commands} |
| 1484 |
% |
| 1485 |
% \changes{v2.2k}{1995/06/05}{Moved math commands from ltoutenc.dtx.} |
| 1486 |
% |
| 1487 |
% The |\mathunderscore| here is really a text definition, so it has |
| 1488 |
% been put back into |ltoutenc.dtx| (by Chris, 30/04/97) and should |
| 1489 |
% be removed from here. |
| 1490 |
% |
| 1491 |
% These symbols are the math versions of text commands such as |\P|, |
| 1492 |
% |\$|, etc. |
| 1493 |
% \begin{macro}{\mathparagraph} |
| 1494 |
% \changes{v2.2q}{1997/01/08} |
| 1495 |
% {Define using \cs{DeclareMathSymbol}} |
| 1496 |
% \begin{macro}{\mathsection} |
| 1497 |
% \begin{macro}{\mathdollar} |
| 1498 |
% \begin{macro}{\mathsterling} |
| 1499 |
% \begin{macro}{\mathunderscore} |
| 1500 |
% These math symbols are not in plain \TeX. |
| 1501 |
% \begin{macrocode} |
| 1502 |
\DeclareMathSymbol{\mathparagraph}{\mathord}{symbols}{"7B} |
| 1503 |
\DeclareMathSymbol{\mathsection}{\mathord}{symbols}{"78} |
| 1504 |
\DeclareMathSymbol{\mathdollar}{\mathord}{operators}{"24} |
| 1505 |
% \end{macrocode} |
| 1506 |
% |
| 1507 |
% \begin{macrocode} |
| 1508 |
\DeclareRobustCommand\mathsterling{\mathit{\mathchar"7024}} |
| 1509 |
\DeclareRobustCommand\mathunderscore{\kern.06em\vbox{\hrule\@width.3em}} |
| 1510 |
% \end{macrocode} |
| 1511 |
% \end{macro} |
| 1512 |
% \end{macro} |
| 1513 |
% \end{macro} |
| 1514 |
% \end{macro} |
| 1515 |
% \end{macro} |
| 1516 |
% |
| 1517 |
% \begin{macro}{\mathellipsis} |
| 1518 |
% This is plain \TeX's |\ldots|. |
| 1519 |
% \begin{macrocode} |
| 1520 |
\DeclareRobustCommand\mathellipsis{\mathinner{\ldotp\ldotp\ldotp}}% |
| 1521 |
% \end{macrocode} |
| 1522 |
% \end{macro} |
| 1523 |
% |
| 1524 |
% \subsection{Other special functions and parameters} |
| 1525 |
% |
| 1526 |
% \subsubsection{Biggggg} |
| 1527 |
% |
| 1528 |
% \changes{v3.0b}{2018/09/24}{Start LR-mode if necessary (gh/49)} |
| 1529 |
% \begin{macrocode} |
| 1530 |
%</math> |
| 1531 |
%<*math|latexrelease> |
| 1532 |
%<latexrelease>\IncludeInRelease{2018/12/01}% |
| 1533 |
%<latexrelease> {\Big}{Start LR-mode}% |
| 1534 |
\DeclareRobustCommand\big[1]{\leavevmode@ifvmode |
| 1535 |
{\hbox{$\left#1\vbox to8.5\p@{}\right.\n@space$}}} |
| 1536 |
\DeclareRobustCommand\Big[1]{\leavevmode@ifvmode |
| 1537 |
{\hbox{$\left#1\vbox to11.5\p@{}\right.\n@space$}}} |
| 1538 |
\DeclareRobustCommand\bigg[1]{\leavevmode@ifvmode |
| 1539 |
{\hbox{$\left#1\vbox to14.5\p@{}\right.\n@space$}}} |
| 1540 |
\DeclareRobustCommand\Bigg[1]{\leavevmode@ifvmode |
| 1541 |
{\hbox{$\left#1\vbox to17.5\p@{}\right.\n@space$}}} |
| 1542 |
%</math|latexrelease> |
| 1543 |
%<latexrelease>\EndIncludeInRelease |
| 1544 |
%<latexrelease>\IncludeInRelease{0000/00/00}% |
| 1545 |
%<latexrelease> {\Big}{Start LR-mode}% |
| 1546 |
%<latexrelease>\def\big#1{{\hbox{$\left#1\vbox to8.5\p@{}\right.\n@space$}}} |
| 1547 |
%<latexrelease>\def\Big#1{{\hbox{$\left#1\vbox to11.5\p@{}\right.\n@space$}}} |
| 1548 |
%<latexrelease>\def\bigg#1{{\hbox{$\left#1\vbox to14.5\p@{}\right.\n@space$}}} |
| 1549 |
%<latexrelease>\def\Bigg#1{{\hbox{$\left#1\vbox to17.5\p@{}\right.\n@space$}}} |
| 1550 |
%<latexrelease>\EndIncludeInRelease |
| 1551 |
%<*math> |
| 1552 |
% \end{macrocode} |
| 1553 |
% |
| 1554 |
% \begin{macrocode} |
| 1555 |
\def\n@space{\nulldelimiterspace\z@ \m@th} |
| 1556 |
% \end{macrocode} |
| 1557 |
% |
| 1558 |
% |
| 1559 |
% |
| 1560 |
% \subsubsection{The log-like functions} |
| 1561 |
% |
| 1562 |
% \begin{macro}{\operator@font} |
| 1563 |
% The |\operator@font| determines the symbol font used for log-like |
| 1564 |
% functions. |
| 1565 |
% \begin{macrocode} |
| 1566 |
\def\operator@font{\mathgroup\symoperators} |
| 1567 |
% \end{macrocode} |
| 1568 |
% \end{macro} |
| 1569 |
% |
| 1570 |
% |
| 1571 |
% \subsubsection{Parameters} |
| 1572 |
% |
| 1573 |
% \begin{macrocode} |
| 1574 |
\thinmuskip=3mu |
| 1575 |
\medmuskip=4mu plus 2mu minus 4mu |
| 1576 |
\thickmuskip=5mu plus 5mu |
| 1577 |
% \end{macrocode} |
| 1578 |
% |
| 1579 |
% |
| 1580 |
% This finishes the low-level setup in \texttt{fontmath.ltx}. |
| 1581 |
% \begin{macrocode} |
| 1582 |
%</math> |
| 1583 |
% \end{macrocode} |
| 1584 |
% |
| 1585 |
% |
| 1586 |
% \section{Default cfg files} |
| 1587 |
% |
| 1588 |
% We provide default \texttt{cfg} files here to ensure that |
| 1589 |
% on installations that search large file trees we do not pick up |
| 1590 |
% some strange customisation files from somewhere. |
| 1591 |
% \changes{v2.2y}{2001/06/02}{Provide default cfg files (pr/3264)} |
| 1592 |
% \begin{macrocode} |
| 1593 |
%<*cfgtext|cfgmath|cfgprel> |
| 1594 |
%% |
| 1595 |
%% |
| 1596 |
%% |
| 1597 |
%% Load the standard setup: |
| 1598 |
%% |
| 1599 |
%<+cfgtext>\input{fonttext.ltx} |
| 1600 |
%<+cfgmath>\input{fontmath.ltx} |
| 1601 |
%<+cfgprel>\input{preload.ltx} |
| 1602 |
%% |
| 1603 |
%% Small changes could go here; see documentation in cfgguide.tex for |
| 1604 |
%% allowed modifications. |
| 1605 |
%% |
| 1606 |
%% In particular it is not allowed to misuse this configuration file |
| 1607 |
%% to modify internal LaTeX commands! |
| 1608 |
%% |
| 1609 |
%% If you use this file as the basis for configuration please change |
| 1610 |
%% the \ProvidesFile lines to clearly identify your modification, e.g., |
| 1611 |
%% |
| 1612 |
%<+cfgtext>%% \ProvidesFile{fonttext.cfg}[2001/06/01 |
| 1613 |
%<+cfgmath>%% \ProvidesFile{fonttext.cfg}[2001/06/01 |
| 1614 |
%<+cfgprel>%% \ProvidesFile{preload.cfg}[2001/06/01 |
| 1615 |
%% Customised local font setup] |
| 1616 |
%% |
| 1617 |
%% |
| 1618 |
%</cfgtext|cfgmath|cfgprel> |
| 1619 |
% \end{macrocode} |
| 1620 |
% |
| 1621 |
% \Finale |
| 1622 |
% |
| 1623 |
\endinput |