| 1 |
%% |
| 2 |
%% This is file `doc.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% doc.dtx (with options: `package') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% The source is maintained by the LaTeX Project team and bug |
| 12 |
%% reports for it can be opened at https://latex-project.org/bugs.html |
| 13 |
%% (but please observe conditions on bug reports sent to that address!) |
| 14 |
%% |
| 15 |
%% |
| 16 |
%% Copyright (C) 1993-2021 |
| 17 |
%% The LaTeX Project and any individual authors listed elsewhere |
| 18 |
%% in this file. |
| 19 |
%% |
| 20 |
%% This file was generated from file(s) of the LaTeX base system. |
| 21 |
%% -------------------------------------------------------------- |
| 22 |
%% |
| 23 |
%% It may be distributed and/or modified under the |
| 24 |
%% conditions of the LaTeX Project Public License, either version 1.3c |
| 25 |
%% of this license or (at your option) any later version. |
| 26 |
%% The latest version of this license is in |
| 27 |
%% https://www.latex-project.org/lppl.txt |
| 28 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 29 |
%% version 2008 or later. |
| 30 |
%% |
| 31 |
%% This file has the LPPL maintenance status "maintained". |
| 32 |
%% |
| 33 |
%% This file may only be distributed together with a copy of the LaTeX |
| 34 |
%% base system. You may however distribute the LaTeX base system without |
| 35 |
%% such generated files. |
| 36 |
%% |
| 37 |
%% The list of all files belonging to the LaTeX base distribution is |
| 38 |
%% given in the file `manifest.txt'. See also `legal.txt' for additional |
| 39 |
%% information. |
| 40 |
%% |
| 41 |
%% The list of derived (unpacked) files belonging to the distribution |
| 42 |
%% and covered by LPPL is defined by the unpacking scripts (with |
| 43 |
%% extension .ins) which are part of the distribution. |
| 44 |
\NeedsTeXFormat{LaTeX2e}[1994/12/01] |
| 45 |
\ProvidesPackage{doc} |
| 46 |
[2021/05/28 v2.1n |
| 47 |
Standard LaTeX documentation package (FMi)] |
| 48 |
%% |
| 49 |
%% Package `doc' to use with LaTeX 2e |
| 50 |
%% Copyright (C) 1989-2020 Frank Mittelbach, all rights reserved. |
| 51 |
\@ifundefined{macro@cnt}{}{\endinput} |
| 52 |
\catcode`\^^A=14 |
| 53 |
\AtBeginDocument{\catcode`\^^A=14\relax} |
| 54 |
\def\macrocode{\macro@code |
| 55 |
\frenchspacing \@vobeyspaces |
| 56 |
\xmacro@code} |
| 57 |
\def\macro@code{% |
| 58 |
\topsep \MacrocodeTopsep |
| 59 |
\@beginparpenalty \predisplaypenalty |
| 60 |
\if@inlabel\leavevmode\fi |
| 61 |
\trivlist \parskip \z@ \item[]% |
| 62 |
\global\setbox\@labels\box\voidb@x |
| 63 |
\macro@font |
| 64 |
\leftskip\@totalleftmargin \advance\leftskip\MacroIndent |
| 65 |
\rightskip\z@ \parindent\z@ \parfillskip\@flushglue |
| 66 |
\blank@linefalse \def\par{\ifblank@line |
| 67 |
\leavevmode\fi |
| 68 |
\blank@linetrue\@@par |
| 69 |
\penalty\interlinepenalty} |
| 70 |
\obeylines |
| 71 |
\let\do\do@noligs \verbatim@nolig@list |
| 72 |
\let\do\@makeother \dospecials |
| 73 |
\global\@newlistfalse |
| 74 |
\global\@minipagefalse |
| 75 |
\ifcodeline@index |
| 76 |
\everypar{\global\advance\c@CodelineNo\@ne |
| 77 |
\llap{\theCodelineNo\ \hskip\@totalleftmargin}% |
| 78 |
\check@module}% |
| 79 |
\else \everypar{\check@module}% |
| 80 |
\fi |
| 81 |
\init@crossref} |
| 82 |
\newif\ifblank@line |
| 83 |
\def\endmacrocode{% |
| 84 |
\ifpm@module \endgroup \pm@modulefalse \fi |
| 85 |
\everypar{}% |
| 86 |
\global\@inlabelfalse |
| 87 |
\endtrivlist |
| 88 |
\close@crossref} |
| 89 |
\@ifundefined{MacroFont}{% |
| 90 |
\if@compatibility |
| 91 |
\def\MacroFont{\small |
| 92 |
\usefont\encodingdefault |
| 93 |
\ttdefault |
| 94 |
\mddefault |
| 95 |
\shapedefault |
| 96 |
}% |
| 97 |
\else |
| 98 |
\def\MacroFont{\fontencoding\encodingdefault |
| 99 |
\fontfamily\ttdefault |
| 100 |
\fontseries\mddefault |
| 101 |
\fontshape\shapedefault |
| 102 |
\small}% |
| 103 |
\fi |
| 104 |
}{} |
| 105 |
\@ifundefined{AltMacroFont}{% |
| 106 |
\if@compatibility |
| 107 |
\def\AltMacroFont{\small |
| 108 |
\usefont\encodingdefault |
| 109 |
\ttdefault |
| 110 |
\mddefault |
| 111 |
\sldefault |
| 112 |
}% |
| 113 |
\else |
| 114 |
\def\AltMacroFont{\fontencoding\encodingdefault |
| 115 |
\fontfamily\ttdefault |
| 116 |
\fontseries\mddefault |
| 117 |
\fontshape\sldefault |
| 118 |
\small |
| 119 |
}% |
| 120 |
\fi |
| 121 |
}{} |
| 122 |
\AtBeginDocument{\let\macro@font\MacroFont} |
| 123 |
\def\check@module{% |
| 124 |
\ifcheck@modules |
| 125 |
\ifpm@module \endgroup \pm@modulefalse \fi |
| 126 |
\expandafter\futurelet\expandafter\next\expandafter\ch@percent |
| 127 |
\fi} |
| 128 |
\newif\ifpm@module |
| 129 |
\def\DontCheckModules{\check@modulesfalse} |
| 130 |
\def\CheckModules{\check@modulestrue} |
| 131 |
\newif\ifcheck@modules \check@modulestrue |
| 132 |
\def\ch@percent{% |
| 133 |
\if \percentchar\next |
| 134 |
\expandafter\check@angle |
| 135 |
\fi} |
| 136 |
\def\check@angle#1{\futurelet\next\ch@angle} |
| 137 |
\begingroup |
| 138 |
\catcode`\<\active |
| 139 |
\gdef\ch@angle{\ifx<\next |
| 140 |
\expandafter\ch@plus@etc |
| 141 |
\else \percentchar \fi} |
| 142 |
\gdef\ch@plus@etc<{\futurelet\next\check@plus@etc} |
| 143 |
\gdef\check@plus@etc{% |
| 144 |
\if +\next |
| 145 |
\let\next\pm@module |
| 146 |
\else\if -\next |
| 147 |
\let\next\pm@module |
| 148 |
\else\if *\next |
| 149 |
\let\next\star@module |
| 150 |
\else\if /\next |
| 151 |
\let\next\slash@module |
| 152 |
\else\ifx <\next |
| 153 |
\percentchar |
| 154 |
\else |
| 155 |
\let\next\pm@module |
| 156 |
\fi\fi\fi\fi\fi |
| 157 |
\next} |
| 158 |
\endgroup |
| 159 |
\begingroup |
| 160 |
\catcode`\~=\active |
| 161 |
\lccode`\~=`\> |
| 162 |
\lowercase{\gdef\pm@module#1~}{\pm@moduletrue |
| 163 |
\Module{#1}\begingroup |
| 164 |
\advance\guard@level\@ne |
| 165 |
\ifnum\guard@level>\c@StandardModuleDepth\AltMacroFont\fi |
| 166 |
} |
| 167 |
\lowercase{\gdef\star@module#1~}{% |
| 168 |
\Module{#1}% |
| 169 |
\global \advance \guard@level\@ne |
| 170 |
\ifnum \guard@level>\c@StandardModuleDepth |
| 171 |
\global\let\macro@font=\AltMacroFont \macro@font |
| 172 |
\fi} |
| 173 |
\catcode`\>=\active |
| 174 |
\gdef\slash@module#1>{% |
| 175 |
\Module{#1}% |
| 176 |
\global \advance \guard@level\m@ne |
| 177 |
\ifnum \guard@level=\c@StandardModuleDepth |
| 178 |
\global\let\macro@font\MacroFont \macro@font |
| 179 |
\fi |
| 180 |
} |
| 181 |
\endgroup |
| 182 |
\newcounter{StandardModuleDepth} |
| 183 |
\newcount \guard@level |
| 184 |
\@ifundefined{Module}{% |
| 185 |
\def\Module#1{\mod@math@codes$\langle\mathsf{#1}\rangle$} |
| 186 |
}{} |
| 187 |
\def\mod@math@codes{\mathcode`\|="226A \mathcode`\&="2026 |
| 188 |
\mathcode`\-="702D \mathcode`\+="702B |
| 189 |
\mathcode`\:="703A \mathcode`\=="703D } |
| 190 |
\newskip\MacrocodeTopsep \MacrocodeTopsep = 3pt plus 1.2pt minus 1pt |
| 191 |
\newdimen\MacroIndent |
| 192 |
\settowidth\MacroIndent{\rmfamily\scriptsize 00\ } |
| 193 |
\@namedef{macrocode*}{\macro@code\sxmacro@code} |
| 194 |
\expandafter\let\csname endmacrocode*\endcsname = \endmacrocode |
| 195 |
\catcode`\!=\catcode`\% ^^A In this section there must not be |
| 196 |
^^A any exclamation marks. |
| 197 |
^^A |
| 198 |
\begingroup |
| 199 |
\catcode`\|=\z@ \catcode`\[=\@ne \catcode`\]=\tw@ |
| 200 |
\catcode`\{=12 \catcode`\}=12 |
| 201 |
\catcode`\%=12 \catcode`\ =\active \catcode`\\=\active |
| 202 |
!% \end{macrocode*} |
| 203 |
! Next follows the actual definition of |\macro@code|; |
| 204 |
! notice the |
| 205 |
! use of the new escape character. We manage to get the argument |
| 206 |
! surrounded by the string |\end{macrocode}|, but at the end |
| 207 |
! however, in spite of the actual characters used during the |
| 208 |
! definition of |
| 209 |
! this macro, |\end| with the argument |{macrocode}| |
| 210 |
! will be executed, to ensure a balanced environment. |
| 211 |
! \begin{macrocode*} |
| 212 |
|gdef|xmacro@code#1% \end{macrocode}[#1|end[macrocode]] |
| 213 |
!% \end{macrocode*} |
| 214 |
! \begin{macro}{\sxmacro@code} |
| 215 |
! The definition of |\sxmacro@code| is completely analogous, |
| 216 |
! only |
| 217 |
! here a slightly different terminating string will be used. |
| 218 |
! Note that the space is not active in this environment. |
| 219 |
! \begin{macrocode} |
| 220 |
|catcode`| =12 |
| 221 |
|gdef|sxmacro@code#1% \end{macrocode*}[#1|end[macrocode*]] |
| 222 |
!% \end{macrocode} |
| 223 |
! because the |\catcode| changes have been made local by |
| 224 |
! commencing a |
| 225 |
! new group, there now follows the matching |\endgroup| |
| 226 |
! in a rather |
| 227 |
! unusual style of writing. |
| 228 |
! \begin{macrocode} |
| 229 |
|endgroup |
| 230 |
!% \end{macrocode} |
| 231 |
\catcode`\!=12 |
| 232 |
\def\DescribeMacro{\leavevmode\@bsphack |
| 233 |
\begingroup\MakePrivateLetters\Describe@Macro} |
| 234 |
\def\Describe@Macro#1{\endgroup |
| 235 |
\marginpar{\raggedleft\PrintDescribeMacro{#1}}% |
| 236 |
\SpecialUsageIndex{#1}\@esphack\ignorespaces} |
| 237 |
\def\DescribeEnv{\leavevmode\@bsphack\begingroup\MakePrivateLetters |
| 238 |
\Describe@Env} |
| 239 |
\def\Describe@Env#1{\endgroup |
| 240 |
\marginpar{\raggedleft\PrintDescribeEnv{#1}}% |
| 241 |
\SpecialEnvIndex{#1}\@esphack\ignorespaces} |
| 242 |
\reversemarginpar |
| 243 |
\setlength\marginparpush{0pt} \setlength\marginparwidth{8pc} |
| 244 |
{\catcode`\|=\z@ \catcode`\\=12 |
| 245 |
|gdef|bslash{\}} |
| 246 |
\def\verbatim{\@beginparpenalty \predisplaypenalty \@verbatim |
| 247 |
\MacroFont \frenchspacing \@vobeyspaces \@xverbatim} |
| 248 |
\@namedef{verbatim*}{\@beginparpenalty \predisplaypenalty \@verbatim |
| 249 |
\@setupverbvisiblespace |
| 250 |
\MacroFont \@vobeyspaces \@sxverbatim} |
| 251 |
\def\@verbatim{\trivlist \item[]\if@minipage\else\vskip\parskip\fi |
| 252 |
\leftskip\@totalleftmargin\rightskip\z@ |
| 253 |
\parindent\z@\parfillskip\@flushglue\parskip\z@ |
| 254 |
\@@par |
| 255 |
\@tempswafalse |
| 256 |
\def\par{\if@tempswa\hbox{}\fi\@tempswatrue\@@par |
| 257 |
\penalty\interlinepenalty |
| 258 |
\check@percent}% |
| 259 |
\obeylines |
| 260 |
\let\do\do@noligs \verbatim@nolig@list |
| 261 |
\let\do\@makeother \dospecials} |
| 262 |
{\catcode`\%=12 |
| 263 |
\long\gdef\check@percent#1{\ifx #1%\let\next\@empty \else |
| 264 |
\let\next=#1\fi \next}} |
| 265 |
\def\verb{\relax\ifmmode\hbox\else\leavevmode\null\fi |
| 266 |
\bgroup \let\do\do@noligs \verbatim@nolig@list |
| 267 |
\ttfamily \verb@eol@error \let\do\@makeother \dospecials |
| 268 |
\@ifstar{\@sverb}{\@vobeyspaces \frenchspacing \@sverb}} |
| 269 |
\let\verb@balance@group\@empty |
| 270 |
|
| 271 |
\def\verb@egroup{\global\let\verb@balance@group\@empty\egroup} |
| 272 |
|
| 273 |
\begingroup |
| 274 |
\obeylines% |
| 275 |
\gdef\verb@eol@error{\obeylines% |
| 276 |
\def^^M{\verb@egroup\@latex@error{% |
| 277 |
\noexpand\verb ended by end of line}\@ehc}}% |
| 278 |
\endgroup |
| 279 |
\def\verbatim@nolig@list{\do\`\do\<\do\>\do\,\do\'\do\-} |
| 280 |
\def\do@noligs#1{% |
| 281 |
\catcode`#1\active |
| 282 |
\begingroup |
| 283 |
\lccode`\~=`#1\relax |
| 284 |
\lowercase{\endgroup\def~{\leavevmode\kern\z@\char`#1}}} |
| 285 |
\newcount\macro@cnt \macro@cnt=0 |
| 286 |
\def\macro{\begingroup |
| 287 |
\catcode`\\12 |
| 288 |
\MakePrivateLetters \m@cro@ \iftrue} |
| 289 |
\def\environment{\begingroup |
| 290 |
\catcode`\\12 |
| 291 |
\MakePrivateLetters \m@cro@ \iffalse} |
| 292 |
\long\def\m@cro@#1#2{\endgroup \topsep\MacroTopsep \trivlist |
| 293 |
\edef\saved@macroname{\string#2}% |
| 294 |
#1 |
| 295 |
\let\saved@indexname\saved@macroname |
| 296 |
\else |
| 297 |
\edef\saved@indexname{\expandafter\@gobble\string#2}% |
| 298 |
\fi |
| 299 |
\def\makelabel##1{\llap{##1}}% |
| 300 |
\if@inlabel |
| 301 |
\let\@tempa\@empty \count@\macro@cnt |
| 302 |
\loop \ifnum\count@>\z@ |
| 303 |
\edef\@tempa{\@tempa\hbox{\strut}}\advance\count@\m@ne \repeat |
| 304 |
\edef\makelabel##1{\llap{\vtop to\baselineskip |
| 305 |
{\@tempa\hbox{##1}\vss}}}% |
| 306 |
\advance \macro@cnt \@ne |
| 307 |
\else \macro@cnt\@ne \fi |
| 308 |
\edef\@tempa{\noexpand\item[% |
| 309 |
#1% |
| 310 |
\noexpand\PrintMacroName |
| 311 |
\else |
| 312 |
\noexpand\PrintEnvName |
| 313 |
\fi |
| 314 |
{\string#2}]}% |
| 315 |
\@tempa |
| 316 |
\global\advance\c@CodelineNo\@ne |
| 317 |
#1% |
| 318 |
\SpecialMainIndex{#2}\nobreak |
| 319 |
\DoNotIndex{#2}% |
| 320 |
\else |
| 321 |
\SpecialMainEnvIndex{#2}\nobreak |
| 322 |
\fi |
| 323 |
\global\advance\c@CodelineNo\m@ne |
| 324 |
\ignorespaces} |
| 325 |
\let\endmacro \endtrivlist |
| 326 |
\let\endenvironment\endmacro |
| 327 |
\newskip\MacroTopsep \MacroTopsep = 7pt plus 2pt minus 2pt |
| 328 |
\@ifundefined{PrintMacroName} |
| 329 |
{\def\PrintMacroName#1{\strut \MacroFont \string #1\ }}{} |
| 330 |
\@ifundefined{PrintDescribeMacro} |
| 331 |
{\def\PrintDescribeMacro#1{\strut \MacroFont \string #1\ }}{} |
| 332 |
\@ifundefined{PrintDescribeEnv} |
| 333 |
{\def\PrintDescribeEnv#1{\strut \MacroFont #1\ }}{} |
| 334 |
\@ifundefined{PrintEnvName} |
| 335 |
{\def\PrintEnvName#1{\strut \MacroFont #1\ }}{} |
| 336 |
\begingroup |
| 337 |
\catcode`\~\active |
| 338 |
\gdef\SpecialEscapechar#1{% |
| 339 |
\begingroup |
| 340 |
\uccode`\~`#1% |
| 341 |
\uppercase{\gdef\active@escape@char{~}}% |
| 342 |
\escapechar\m@ne \xdef\special@escape@char{\string#1}% |
| 343 |
\endgroup} |
| 344 |
\endgroup |
| 345 |
\begingroup \catcode`\|=\z@ \catcode`\\=\active |
| 346 |
|gdef|init@crossref{|catcode`|\|active |let\|bslash |
| 347 |
|MakePrivateLetters |
| 348 |
|catcode|expandafter`|special@escape@char|active |
| 349 |
|expandafter|let|active@escape@char|scan@macro} |
| 350 |
|endgroup |
| 351 |
\SpecialEscapechar{\\} |
| 352 |
\@ifundefined{MakePrivateLetters} |
| 353 |
{\let\MakePrivateLetters\makeatletter}{} |
| 354 |
\def\close@crossref{\SpecialEscapechar\\} |
| 355 |
\def\scan@macro{% |
| 356 |
\special@escape@char |
| 357 |
\step@checksum |
| 358 |
\ifscan@allowed |
| 359 |
\let\macro@namepart\@empty |
| 360 |
\def\next{\futurelet\next\macro@switch}% |
| 361 |
\else \let\next\@empty \fi |
| 362 |
\next} |
| 363 |
\newif\ifscan@allowed \scan@allowedtrue |
| 364 |
\def\DisableCrossrefs{\@bsphack\scan@allowedfalse\@esphack} |
| 365 |
\def\EnableCrossrefs{\@bsphack\scan@allowedtrue |
| 366 |
\def\DisableCrossrefs{\@bsphack\@esphack}\@esphack} |
| 367 |
\def\macro@switch{\ifcat\noexpand\next a% |
| 368 |
\let\next\macro@name |
| 369 |
\else \let\next\short@macro \fi |
| 370 |
\next} |
| 371 |
\begingroup |
| 372 |
\catcode`\&=12 |
| 373 |
\gdef\short@macro#1{\begingroup |
| 374 |
\uccode`\&=\expandafter`\string#1% |
| 375 |
\uppercase{\def\x{\def\macro@namepart{&}}}% |
| 376 |
\expandafter\endgroup\x |
| 377 |
\ifnot@excluded |
| 378 |
\produce@index{#1}\fi |
| 379 |
\scan@allowedfalse#1% |
| 380 |
\scan@allowedtrue } |
| 381 |
\endgroup |
| 382 |
\def\produce@index#1{% |
| 383 |
\if\noexpand#1\special@escape@char |
| 384 |
\scan@allowedfalse \it@is@a\special@escape@char \else |
| 385 |
\if\noexpand#1\bslash \it@is@a\bslash \else |
| 386 |
\if\noexpand#1\space \it@is@a\space \else |
| 387 |
\ifx#1\par |
| 388 |
\it@is@a\space \else |
| 389 |
\ifx#1\relax \else |
| 390 |
\if\noexpand#1\bgroup \LeftBraceIndex \else |
| 391 |
\if\noexpand#1\egroup \RightBraceIndex \else |
| 392 |
\if\noexpand#1\percentchar \PercentIndex \else |
| 393 |
\it@is@a{\string#1}% |
| 394 |
\fi \fi \fi \fi \fi \fi \fi \fi} |
| 395 |
\def\macro@name#1{\edef\macro@namepart{\macro@namepart#1}% |
| 396 |
\futurelet\next\more@macroname} |
| 397 |
\def\more@macroname{\ifcat\noexpand\next a% |
| 398 |
\let\next\macro@name |
| 399 |
\else \let\next\macro@finish \fi |
| 400 |
\next} |
| 401 |
\def\macro@finish{% |
| 402 |
\macro@namepart |
| 403 |
\ifnot@excluded |
| 404 |
\edef\@tempa{\noexpand\SpecialIndex{\bslash\macro@namepart}}% |
| 405 |
\@tempa \fi} |
| 406 |
\def\DoNotIndex{\begingroup \MakePrivateLetters |
| 407 |
\catcode`\\12 |
| 408 |
\do@not@index} |
| 409 |
\long\def\do@not@index#1{% |
| 410 |
\endgroup |
| 411 |
\addto@hook\index@excludelist{#1,}} |
| 412 |
\long\def\addto@hook#1#2{#1\expandafter{\the#1#2}} |
| 413 |
\newtoks\index@excludelist |
| 414 |
\index@excludelist{} |
| 415 |
\begingroup |
| 416 |
\catcode`\|=0% |
| 417 |
\catcode`\\=12 |
| 418 |
|gdef|ifnot@excluded{|expandafter |
| 419 |
|expanded@notin|expandafter{|expandafter |
| 420 |
\|macro@namepart,}{|the|index@excludelist}} |
| 421 |
|endgroup |
| 422 |
\def\expanded@notin#1#2{% |
| 423 |
\def\in@@##1#1##2##3\in@@{% |
| 424 |
\ifx\expanded@notin##2}% |
| 425 |
\expandafter\in@@#2#1\expanded@notin\in@@} |
| 426 |
\@ifundefined{actualchar}{\def\actualchar{=}}{} |
| 427 |
\@ifundefined{quotechar}{\def\quotechar{!}}{} |
| 428 |
\@ifundefined{levelchar}{\def\levelchar{>}}{} |
| 429 |
\@ifundefined{encapchar}{\def\encapchar{|}}{} |
| 430 |
\@ifundefined{verbatimchar}{\def\verbatimchar{+}}{} |
| 431 |
\def\SpecialIndex#1{\@bsphack\special@index{\expandafter\@gobble |
| 432 |
\string#1\actualchar |
| 433 |
\string\verb\quotechar*\verbatimchar\string#1\verbatimchar}% |
| 434 |
\@esphack} |
| 435 |
|
| 436 |
\def\SpecialMainIndex#1{\@bsphack\SpecialIndex@{#1}{\encapchar main}% |
| 437 |
\@esphack} |
| 438 |
\begingroup |
| 439 |
\catcode`\|=0 |
| 440 |
\catcode`\\=12 |
| 441 |
|gdef|@SpecialIndexHelper@#1#2|@nil{% |
| 442 |
|if |noexpand#1\% |
| 443 |
|gdef|@gtempa{#2}% |
| 444 |
|else |
| 445 |
|begingroup |
| 446 |
|escapechar|m@ne |
| 447 |
|expandafter|gdef|expandafter|@gtempa|expandafter{|string#1#2}% |
| 448 |
|endgroup |
| 449 |
|fi} |
| 450 |
|endgroup |
| 451 |
\def\SpecialIndex@#1#2{% |
| 452 |
\@SpecialIndexHelper@#1\@nil |
| 453 |
\def\@tempb{ }% |
| 454 |
\ifcat \@tempb\@gtempa |
| 455 |
\special@index{\quotechar\space\actualchar |
| 456 |
\string\verb\quotechar*\verbatimchar |
| 457 |
\quotechar\bslash\quotechar\space\verbatimchar#2}% |
| 458 |
\else |
| 459 |
\def\@tempb##1##2\relax{\ifx\relax##2\relax |
| 460 |
\def\@tempc{\special@index{\quotechar##1\actualchar |
| 461 |
\string\verb\quotechar*\verbatimchar |
| 462 |
\quotechar\bslash\quotechar##1\verbatimchar#2}}% |
| 463 |
\else |
| 464 |
\def\@tempc{\special@index{##1##2\actualchar |
| 465 |
\string\verb\quotechar*\verbatimchar |
| 466 |
\bslash##1##2\verbatimchar#2}}% |
| 467 |
\fi}% |
| 468 |
\expandafter\@tempb\@gtempa\relax |
| 469 |
\@tempc |
| 470 |
\fi} |
| 471 |
\def\SpecialMainEnvIndex#1{\@bsphack\special@index{% |
| 472 |
#1\actualchar |
| 473 |
{\string\ttfamily\space#1} |
| 474 |
(environment)% |
| 475 |
\encapchar main}% |
| 476 |
\special@index{environments:\levelchar#1\actualchar{% |
| 477 |
\string\ttfamily\space#1}\encapchar |
| 478 |
main}\@esphack} |
| 479 |
\def\SpecialUsageIndex#1{\@bsphack |
| 480 |
{\let\special@index\index\SpecialIndex@{#1}{\encapchar usage}}% |
| 481 |
\@esphack} |
| 482 |
\def\SpecialEnvIndex#1{\@bsphack |
| 483 |
\index{#1\actualchar{\protect\ttfamily#1} |
| 484 |
(environment)\encapchar usage}% |
| 485 |
\index{environments:\levelchar#1\actualchar |
| 486 |
{\protect\ttfamily#1}\encapchar usage}\@esphack} |
| 487 |
\def\SortIndex#1#2{\index{#1\actualchar#2}} |
| 488 |
\def\it@is@a#1{\special@index{\quotechar #1\actualchar |
| 489 |
\string\verb\quotechar*\verbatimchar |
| 490 |
\quotechar\bslash\quotechar#1\verbatimchar}} |
| 491 |
\@ifundefined{LeftBraceIndex}{\def\LeftBraceIndex{% |
| 492 |
\special@index{\bgroup\actualchar\string\verb\quotechar*\verbatimchar |
| 493 |
\quotechar\bslash{\verbatimchar\string\iffalse}\string\fi}}}{} |
| 494 |
|
| 495 |
\@ifundefined{RightBraceIndex}{\def\RightBraceIndex{% |
| 496 |
\special@index{\egroup\actualchar\string\iffalse{\string\fi\string\verb |
| 497 |
\quotechar*\verbatimchar\quotechar\bslash}\verbatimchar}}}{} |
| 498 |
\@ifundefined{PercentIndex} |
| 499 |
{\def\PercentIndex{\it@is@a\percentchar}}{} |
| 500 |
\def\OldMakeindex{\def\PercentIndex{% |
| 501 |
\special@index{\quotechar\percentchar\actualchar\string\verb |
| 502 |
\quotechar*\verbatimchar\quotechar\bslash |
| 503 |
\percentchar\percentchar\verbatimchar}}} |
| 504 |
{\catcode`\%=12 \gdef\percentchar{%}} |
| 505 |
\newif\ifhave@multicol |
| 506 |
\IfFileExists{multicol.sty}{\have@multicoltrue |
| 507 |
\RequirePackage{multicol}% |
| 508 |
}{} |
| 509 |
|
| 510 |
\newdimen\IndexMin \IndexMin = 80pt |
| 511 |
\newcount\c@IndexColumns \c@IndexColumns = 3 |
| 512 |
\ifhave@multicol |
| 513 |
\renewenvironment{theindex} |
| 514 |
{\begin{multicols}\c@IndexColumns[\index@prologue][\IndexMin]% |
| 515 |
\IndexParms \let\item\@idxitem \ignorespaces}% |
| 516 |
{\end{multicols}} |
| 517 |
\else |
| 518 |
\typeout{Can't find multicol.sty -- will use normal index layout if |
| 519 |
necessary.} |
| 520 |
\def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi |
| 521 |
\columnseprule \z@ \columnsep 35\p@ |
| 522 |
\twocolumn[\index@prologue]% |
| 523 |
\IndexParms \let\item\@idxitem \ignorespaces} |
| 524 |
\def\endtheindex{\if@restonecol\onecolumn\else\clearpage\fi} |
| 525 |
\fi |
| 526 |
\long\def\IndexPrologue#1{\@bsphack\def\index@prologue{#1}\@esphack} |
| 527 |
\@ifundefined{index@prologue} |
| 528 |
{\def\index@prologue{\section*{Index}% |
| 529 |
\markboth{Index}{Index}% |
| 530 |
Numbers written in italic refer to the page |
| 531 |
where the corresponding entry is described; |
| 532 |
numbers underlined refer to the |
| 533 |
\ifcodeline@index |
| 534 |
code line of the |
| 535 |
\fi |
| 536 |
definition; numbers in roman refer to the |
| 537 |
\ifcodeline@index |
| 538 |
code lines |
| 539 |
\else |
| 540 |
pages |
| 541 |
\fi |
| 542 |
where the entry is used. |
| 543 |
}}{} |
| 544 |
\@ifundefined{IndexParms} |
| 545 |
{\def\IndexParms{% |
| 546 |
\parindent \z@ |
| 547 |
\columnsep 15pt |
| 548 |
\parskip 0pt plus 1pt |
| 549 |
\rightskip 15pt |
| 550 |
\mathsurround \z@ |
| 551 |
\parfillskip=-15pt |
| 552 |
\small |
| 553 |
\def\@idxitem{\par\hangindent 30pt}% |
| 554 |
\def\subitem{\@idxitem\hspace*{15pt}}% |
| 555 |
\def\subsubitem{\@idxitem\hspace*{25pt}}% |
| 556 |
\def\indexspace{\par\vspace{10pt plus 2pt minus 3pt}}% |
| 557 |
}}{} |
| 558 |
\def\efill{\hfill\nopagebreak}% |
| 559 |
\def\dotfill{\leaders\hbox to.6em{\hss .\hss}\hskip\z@ plus 1fill\kern\z@}% |
| 560 |
\def\dotfil{\leaders\hbox to.6em{\hss .\hss}\hfil\kern\z@}% |
| 561 |
\def\pfill{\unskip~\dotfill\penalty500\strut\nobreak |
| 562 |
\dotfil~\ignorespaces}% |
| 563 |
\def\*{\leavevmode\lower.8ex\hbox{$\,\widetilde{\ }\,$}} |
| 564 |
\@ifundefined{main}{\def\main#1{\underline{#1}}}{} |
| 565 |
\@ifundefined{usage}{\def\usage#1{\textit{#1}}}{} |
| 566 |
\def\PrintIndex{\@input@{\jobname.ind}% |
| 567 |
\global\let\PrintIndex\@empty} |
| 568 |
\def\changes{\@bsphack\begingroup\@sanitize |
| 569 |
\catcode`\\\z@ \catcode`\ 10 \MakePercentIgnore |
| 570 |
\changes@} |
| 571 |
\def\changes@#1#2#3{% |
| 572 |
\protected@edef\@tempa{\noexpand\glossary{#1\levelchar |
| 573 |
\ifx\saved@macroname\@empty |
| 574 |
\space |
| 575 |
\actualchar |
| 576 |
\generalname |
| 577 |
\else |
| 578 |
\saved@indexname |
| 579 |
\actualchar |
| 580 |
\string\verb\quotechar*% |
| 581 |
\verbatimchar\saved@macroname |
| 582 |
\verbatimchar |
| 583 |
\fi |
| 584 |
:\levelchar #3}}% |
| 585 |
\@tempa\endgroup\@esphack} |
| 586 |
\def\saved@macroname{} |
| 587 |
\def\saved@indexname{} |
| 588 |
\def\generalname{General} |
| 589 |
\let\RecordChanges\makeglossary |
| 590 |
\newdimen\GlossaryMin \GlossaryMin = 80pt |
| 591 |
\newcount\c@GlossaryColumns \c@GlossaryColumns = 2 |
| 592 |
\ifhave@multicol |
| 593 |
\newenvironment{theglossary}{% |
| 594 |
\begin{multicols}\c@GlossaryColumns |
| 595 |
[\glossary@prologue][\GlossaryMin]% |
| 596 |
\GlossaryParms \let\item\@idxitem \ignorespaces}% |
| 597 |
{\end{multicols}} |
| 598 |
\else |
| 599 |
\newenvironment{theglossary}{% |
| 600 |
\@restonecoltrue\if@twocolumn\@restonecolfalse\fi |
| 601 |
\columnseprule \z@ \columnsep 35\p@ |
| 602 |
\twocolumn[\glossary@prologue]% |
| 603 |
\GlossaryParms \let\item\@idxitem \ignorespaces} |
| 604 |
{\if@restonecol\onecolumn\else\clearpage\fi} |
| 605 |
\fi |
| 606 |
\long\def\GlossaryPrologue#1{\@bsphack |
| 607 |
\def\glossary@prologue{#1}% |
| 608 |
\@esphack} |
| 609 |
\@ifundefined{glossary@prologue} |
| 610 |
{\def\glossary@prologue{\section*{{Change History}}% |
| 611 |
\markboth{{Change History}}{{Change History}}% |
| 612 |
}}{} |
| 613 |
\@ifundefined{GlossaryParms}{\let\GlossaryParms\IndexParms |
| 614 |
\expandafter\def\expandafter\GlossaryParms\expandafter{\GlossaryParms |
| 615 |
\rightskip 15pt plus 1fil |
| 616 |
\parfillskip -15pt plus -1fil\relax} |
| 617 |
}{} |
| 618 |
\def\PrintChanges{\@input@{\jobname.gls}% |
| 619 |
\global\let\PrintChanges\@empty} |
| 620 |
\newcommand\AlsoImplementation{% |
| 621 |
\long\def\StopEventually##1{\@bsphack\gdef\Finale{##1% |
| 622 |
\check@checksum}% |
| 623 |
\init@checksum |
| 624 |
\@esphack}% |
| 625 |
} |
| 626 |
\AlsoImplementation |
| 627 |
\def\OnlyDescription{\@bsphack\long\def\StopEventually##1{% |
| 628 |
##1\endinput}\@esphack} |
| 629 |
\let\Finale\relax |
| 630 |
\ifx\l@nohyphenation\undefined |
| 631 |
\newlanguage\l@nohyphenation |
| 632 |
\fi |
| 633 |
\DeclareRobustCommand\meta[1]{% |
| 634 |
\ensuremath\langle |
| 635 |
\ifmmode \expandafter \nfss@text \fi |
| 636 |
{% |
| 637 |
\meta@font@select |
| 638 |
\edef\meta@hyphen@restore |
| 639 |
{\hyphenchar\the\font\the\hyphenchar\font}% |
| 640 |
\hyphenchar\font\m@ne |
| 641 |
\language\l@nohyphenation |
| 642 |
#1\/% |
| 643 |
\meta@hyphen@restore |
| 644 |
}\ensuremath\rangle |
| 645 |
} |
| 646 |
\def\meta@font@select{\itshape} |
| 647 |
\def\IndexInput#1{% |
| 648 |
\begingroup \macro@code |
| 649 |
\frenchspacing \@vobeyspaces |
| 650 |
\input{#1}\endmacrocode |
| 651 |
\endgroup} |
| 652 |
\def\maketitle{\par |
| 653 |
\begingroup \def \thefootnote {\fnsymbol {footnote}}% |
| 654 |
\setcounter {footnote}\z@ |
| 655 |
\def\@makefnmark{\hbox to\z@{$\m@th^{\@thefnmark}$\hss}}% |
| 656 |
\long\def\@makefntext##1{\parindent 1em\noindent |
| 657 |
\hbox to1.8em{\hss$\m@th^{\@thefnmark}$}##1}% |
| 658 |
\if@twocolumn \twocolumn [\@maketitle ]% |
| 659 |
\else \newpage \global \@topnum \z@ \@maketitle \fi |
| 660 |
\thispagestyle{titlepage}\@thanks \endgroup |
| 661 |
\setcounter {footnote}\z@ |
| 662 |
\gdef\@date{\today}\gdef\@thanks{}% |
| 663 |
\gdef\@author{}\gdef\@title{}} |
| 664 |
\@ifundefined{ps@titlepage} |
| 665 |
{\let\ps@titlepage=\ps@plain}{} |
| 666 |
\def\MakeShortVerb{% |
| 667 |
\@ifstar |
| 668 |
{\def\@shortvrbdef{\verb*}\@MakeShortVerb}% |
| 669 |
{\def\@shortvrbdef{\verb}\@MakeShortVerb}} |
| 670 |
\def\@MakeShortVerb#1{% |
| 671 |
\expandafter\ifx\csname cc\string#1\endcsname\relax |
| 672 |
\@shortvrbinfo{Made }{#1}\@shortvrbdef |
| 673 |
\add@special{#1}% |
| 674 |
\expandafter |
| 675 |
\xdef\csname cc\string#1\endcsname{\the\catcode`#1}% |
| 676 |
\begingroup |
| 677 |
\catcode`\~\active \lccode`\~`#1% |
| 678 |
\lowercase{% |
| 679 |
\global\expandafter\let |
| 680 |
\csname ac\string#1\endcsname~% |
| 681 |
\expandafter\gdef\expandafter~\expandafter{\@shortvrbdef~}}% |
| 682 |
\endgroup |
| 683 |
\global\catcode`#1\active |
| 684 |
\else |
| 685 |
\@shortvrbinfo\@empty{#1 already}{\@empty\verb(*)}% |
| 686 |
\fi} |
| 687 |
\def\DeleteShortVerb#1{% |
| 688 |
\expandafter\ifx\csname cc\string#1\endcsname\relax |
| 689 |
\@shortvrbinfo\@empty{#1 not}{\@empty\verb(*)}% |
| 690 |
\else |
| 691 |
\@shortvrbinfo{Deleted }{#1 as}{\@empty\verb(*)}% |
| 692 |
\rem@special{#1}% |
| 693 |
\global\catcode`#1\csname cc\string#1\endcsname |
| 694 |
\global \expandafter\let \csname cc\string#1\endcsname \relax |
| 695 |
\ifnum\catcode`#1=\active |
| 696 |
\begingroup |
| 697 |
\catcode`\~\active \lccode`\~`#1% |
| 698 |
\lowercase{% |
| 699 |
\global\expandafter\let\expandafter~% |
| 700 |
\csname ac\string#1\endcsname}% |
| 701 |
\endgroup \fi \fi} |
| 702 |
\def\@shortvrbinfo#1#2#3{% |
| 703 |
\PackageInfo{doc}{% |
| 704 |
#1\expandafter\@gobble\string#2 a short reference |
| 705 |
for \expandafter\string#3}} |
| 706 |
\def\add@special#1{% |
| 707 |
\rem@special{#1}% |
| 708 |
\expandafter\gdef\expandafter\dospecials\expandafter |
| 709 |
{\dospecials \do #1}% |
| 710 |
\expandafter\gdef\expandafter\@sanitize\expandafter |
| 711 |
{\@sanitize \@makeother #1}} |
| 712 |
\def\rem@special#1{% |
| 713 |
\def\do##1{% |
| 714 |
\ifnum`#1=`##1 \else \noexpand\do\noexpand##1\fi}% |
| 715 |
\xdef\dospecials{\dospecials}% |
| 716 |
\begingroup |
| 717 |
\def\@makeother##1{% |
| 718 |
\ifnum`#1=`##1 \else \noexpand\@makeother\noexpand##1\fi}% |
| 719 |
\xdef\@sanitize{\@sanitize}% |
| 720 |
\endgroup} |
| 721 |
\def\MakeShortverb{\typeout{*** Switch to \noexpand\MakeShortVerb |
| 722 |
syntax, this is obsolete ***}\MakeShortVerb} |
| 723 |
\def\DeleteShortverb{\typeout{*** Switch to \noexpand\DeleteShortVerb |
| 724 |
syntax, this is obsolete ***}\DeleteShortVerb} |
| 725 |
\def\init@checksum{\relax |
| 726 |
\global\bslash@cnt\z@} |
| 727 |
\def\check@checksum{\relax |
| 728 |
\ifnum\check@sum>\m@ne |
| 729 |
\ifnum\check@sum=\z@ |
| 730 |
\typeout{**********************************}% |
| 731 |
\typeout{* This macro file has no checksum!}% |
| 732 |
\typeout{* The checksum should be \the\bslash@cnt!}% |
| 733 |
\typeout{**********************************}% |
| 734 |
\else |
| 735 |
\ifnum\check@sum=\bslash@cnt |
| 736 |
\typeout{*******************}% |
| 737 |
\typeout{* Checksum passed *}% |
| 738 |
\typeout{*******************}% |
| 739 |
\else |
| 740 |
\PackageError{doc}{Checksum not passed |
| 741 |
(\the\check@sum<>\the\bslash@cnt)}% |
| 742 |
{The file currently documented seems to be wrong.^^J% |
| 743 |
Try to get a correct version.}% |
| 744 |
\fi |
| 745 |
\fi |
| 746 |
\fi |
| 747 |
\global\check@sum\m@ne} |
| 748 |
\newcount\check@sum \check@sum = \m@ne |
| 749 |
\newcount\bslash@cnt \bslash@cnt = \z@ |
| 750 |
\def\CheckSum#1{\@bsphack\global\check@sum#1\relax\@esphack} |
| 751 |
\def\step@checksum{\global\advance\bslash@cnt\@ne} |
| 752 |
\def\CharacterTable{\begingroup \CharTableChanges \character@table} |
| 753 |
\begingroup |
| 754 |
\catcode`\~=11 |
| 755 |
\gdef\character@table#1{\def\used~table{#1}% |
| 756 |
\ifx\used~table\default~table |
| 757 |
\typeout{***************************}% |
| 758 |
\typeout{* Character table correct *}% |
| 759 |
\typeout{***************************}% |
| 760 |
\else |
| 761 |
\PackageError{doc}{Character table corrupted} |
| 762 |
{\the\wrong@table} |
| 763 |
\show\default~table |
| 764 |
\show\used~table |
| 765 |
\fi |
| 766 |
\endgroup} |
| 767 |
\global\let\CharTableChanges\@empty |
| 768 |
\makeatother |
| 769 |
\gdef\default~table |
| 770 |
{Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z |
| 771 |
Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z |
| 772 |
Digits \0\1\2\3\4\5\6\7\8\9 |
| 773 |
Exclamation \! Double quote \" Hash (number) \# |
| 774 |
Dollar \$ Percent \% Ampersand \& |
| 775 |
Acute accent \' Left paren \( Right paren \) |
| 776 |
Asterisk \* Plus \+ Comma \, |
| 777 |
Minus \- Point \. Solidus \/ |
| 778 |
Colon \: Semicolon \; Less than \< |
| 779 |
Equals \= Greater than \> Question mark \? |
| 780 |
Commercial at \@ Left bracket \[ Backslash \\ |
| 781 |
Right bracket \] Circumflex \^ Underscore \_ |
| 782 |
Grave accent \` Left brace \{ Vertical bar \| |
| 783 |
Right brace \} Tilde \~} |
| 784 |
\endgroup |
| 785 |
\newhelp\wrong@table{Some of the ASCII characters are corrupted.^^J |
| 786 |
I now \string\show\space you both tables for comparison.} |
| 787 |
\newif\ifcodeline@index \codeline@indexfalse |
| 788 |
\let\CodelineNumbered\codeline@indextrue |
| 789 |
\def\codeline@wrindex#1{\if@filesw |
| 790 |
\immediate\write\@indexfile |
| 791 |
{\string\indexentry{#1}% |
| 792 |
{\number\c@CodelineNo}}\fi} |
| 793 |
\let\special@index = \@gobble |
| 794 |
\def\CodelineIndex{\makeindex |
| 795 |
\codeline@indextrue |
| 796 |
\let\special@index\codeline@wrindex} |
| 797 |
\def\PageIndex{\makeindex |
| 798 |
\codeline@indexfalse |
| 799 |
\let\special@index\index} |
| 800 |
\newcount\c@CodelineNo \c@CodelineNo\z@ |
| 801 |
\@ifundefined{theCodelineNo} |
| 802 |
{\ifx\selectfont\undefined |
| 803 |
\def\theCodelineNo{\rmfamily\scriptsize\arabic{CodelineNo}}% |
| 804 |
\else |
| 805 |
\def\theCodelineNo{\reset@font\scriptsize\arabic{CodelineNo}}% |
| 806 |
\fi} |
| 807 |
{} |
| 808 |
\tolerance=1000\relax |
| 809 |
{ \catcode`\"=12 |
| 810 |
\global\mathcode`\\="705C \global\mathcode`\@="7040 } |
| 811 |
\@ifundefined{DocstyleParms}{}{\DocstyleParms} |
| 812 |
\let\DocstyleParms\relax |
| 813 |
\@ifundefined{AmSTeX} |
| 814 |
{\def\AmSTeX{\leavevmode\hbox{$\mathcal A\kern-.2em\lower.376ex% |
| 815 |
\hbox{$\mathcal M$}\kern-.2em\mathcal S$-\TeX}}}{} |
| 816 |
\@ifundefined{BibTeX} |
| 817 |
{\def\BibTeX{{\rmfamily B\kern-.05em% |
| 818 |
\textsc{i\kern-.025em b}\kern-.08em% |
| 819 |
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}}{} |
| 820 |
\@ifundefined{SliTeX} |
| 821 |
{\def\SliTeX{{\rmfamily S\kern-.06emL\kern-.18em\raise.32ex\hbox |
| 822 |
{\scshape i}\kern -.03em\TeX}}}{} |
| 823 |
\@ifundefined{PlainTeX}{\def\PlainTeX{\textsc{Plain}\kern2pt\TeX}}{} |
| 824 |
\@ifundefined{Web}{\def\Web{\textsc{Web}}}{} |
| 825 |
\def\MakePercentIgnore{\catcode`\%9\relax} |
| 826 |
\def\MakePercentComment{\catcode`\%14\relax} |
| 827 |
\def\DocInput#1{\MakePercentIgnore\input{#1}\MakePercentComment} |
| 828 |
\def\GetFileInfo#1{% |
| 829 |
\def\filename{#1}% |
| 830 |
\def\@tempb##1 ##2 ##3\relax##4\relax{% |
| 831 |
\def\filedate{##1}% |
| 832 |
\def\fileversion{##2}% |
| 833 |
\def\fileinfo{##3}}% |
| 834 |
\edef\@tempa{\csname ver@#1\endcsname}% |
| 835 |
\expandafter\@tempb\@tempa\relax? ? \relax\relax} |
| 836 |
\endinput |
| 837 |
%% |
| 838 |
%% End of file `doc.sty'. |