| 1 |
%% |
| 2 |
%% This is file `ltxdoc.cls', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% ltxdoc.dtx (with options: `class') |
| 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-2025 |
| 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} |
| 45 |
\ProvidesClass{ltxdoc} |
| 46 |
[2024/02/08 v2.1j Standard LaTeX documentation class] |
| 47 |
\DeclareOption{a5paper}{\@latexerr{Option not supported}% |
| 48 |
{}} |
| 49 |
\newif\ifltxdoc@load@cfg@ \ltxdoc@load@cfg@true |
| 50 |
\DeclareOption{nocfg}{\ltxdoc@load@cfg@false} |
| 51 |
\let\ltxdoc@doc@version\@empty % use current version by default |
| 52 |
\DeclareOption{doc2}{% |
| 53 |
\def\ltxdoc@doc@version{=v2}% |
| 54 |
\DeclareRobustCommand\cs[1]{\texttt{\bslash #1}}% |
| 55 |
} |
| 56 |
\DeclareOption*{% |
| 57 |
\PassOptionsToClass {\CurrentOption}{article}} |
| 58 |
\ProcessOptions |
| 59 |
\ifltxdoc@load@cfg@ |
| 60 |
\InputIfFileExists{ltxdoc.cfg} |
| 61 |
{\typeout{*************************************^^J% |
| 62 |
* Local config file ltxdoc.cfg used^^J% |
| 63 |
*************************************}} |
| 64 |
{} |
| 65 |
\else |
| 66 |
\typeout{*************************************^^J% |
| 67 |
* Local config file ignored^^J% |
| 68 |
*************************************} |
| 69 |
\fi |
| 70 |
\LoadClass{article} |
| 71 |
\RequirePackage{doc}[\ltxdoc@doc@version] |
| 72 |
\AtBeginDocument{\MakeShortVerb{\|}} |
| 73 |
\DeclareFontShape{OT1}{cmtt}{bx}{n}{<-> ssub * cmtt/m/n}{} |
| 74 |
\DeclareFontFamily{OMS}{cmtt}{\skewchar\font 48} % '60 |
| 75 |
\DeclareFontShape{OMS}{cmtt}{m}{n}{<-> ssub * cmsy/m/n}{} |
| 76 |
\DeclareFontShape{OMS}{cmtt}{bx}{n}{<-> ssub * cmsy/b/n}{} |
| 77 |
\DeclareFontShape{OT1}{cmss}{m}{it}{<->ssub*cmss/m/sl}{} |
| 78 |
\CodelineNumbered |
| 79 |
\DisableCrossrefs |
| 80 |
\setlength{\textwidth}{355pt} |
| 81 |
\addtolength\marginparwidth{30pt} |
| 82 |
\addtolength\oddsidemargin{20pt} |
| 83 |
\addtolength\evensidemargin{20pt} |
| 84 |
\setcounter{StandardModuleDepth}{1} |
| 85 |
\def\cmd#1{\texttt{\char`\\\expandafter\cmd@to@cs\string#1}} |
| 86 |
\def\cmd@to@cs#1#2{\char\number`#2\relax} |
| 87 |
\providecommand\marg[1]{% |
| 88 |
{\ttfamily\char`\{}\meta{#1}{\ttfamily\char`\}}} |
| 89 |
\providecommand\oarg[1]{% |
| 90 |
{\ttfamily[}\meta{#1}{\ttfamily]}} |
| 91 |
\providecommand\parg[1]{% |
| 92 |
{\ttfamily(}\meta{#1}{\ttfamily)}} |
| 93 |
\def\oc@scan#1{% |
| 94 |
\ifx\oc@bslash#1% |
| 95 |
\egroup\let\next\oc@bslash\else |
| 96 |
\ifcat a\noexpand#1% |
| 97 |
#1\let\next\oc@scan\else |
| 98 |
\ifx\oc@percent#1% |
| 99 |
\def\next{\char`\%\egroup}% |
| 100 |
\else |
| 101 |
#1\let\next\egroup |
| 102 |
\fi\fi\fi\next} |
| 103 |
\def\oc@bslash{\bgroup\oc@ttf\char`\\\oc@scan}% |
| 104 |
\def\oc@verb#1{% |
| 105 |
\catcode`#1\active |
| 106 |
\uccode`\~`#1% |
| 107 |
\uppercase{\def~{{\oc@ttf\char`#1}}}} |
| 108 |
\begingroup |
| 109 |
\obeyspaces% |
| 110 |
\catcode`\/=\catcode`\\ |
| 111 |
/catcode`/\/active |
| 112 |
/catcode`<=/catcode`{% |
| 113 |
/catcode`>=/catcode`}% |
| 114 |
/catcode`/{/active% |
| 115 |
/catcode`/}/active% |
| 116 |
/gdef/oldc< \end{oldcomments}>% |
| 117 |
/gdef/begmac< \begin{macrocode}>% |
| 118 |
/gdef/obs</def <</oc@ttf/ >>>% |
| 119 |
/endgroup% |
| 120 |
\begingroup |
| 121 |
\catcode`\/=\catcode`\\ |
| 122 |
\catcode`\\=13 |
| 123 |
/catcode`/|=/catcode`/% |
| 124 |
/catcode`/%=13 |
| 125 |
/gdef/oldcomments{| |
| 126 |
/makeatletter |
| 127 |
/let/do/oc@verb/dospecials |
| 128 |
/frenchspacing/@vobeyspaces/obs |
| 129 |
/raggedright |
| 130 |
/oc@verb/>| |
| 131 |
/oc@verb/<| |
| 132 |
/let\/oc@bslash |
| 133 |
/let%/oc@percent |
| 134 |
/obeylines |
| 135 |
/parindent/z@ |
| 136 |
/ttfamily/expandafter/let/expandafter/oc@ttf/the/font |
| 137 |
/rmfamily |
| 138 |
/textit{Historical /LaTeX/,2.09 comments (not necessarily accurate any more):} |
| 139 |
/hfuzz/maxdimen |
| 140 |
} |
| 141 |
/endgroup |
| 142 |
\begingroup |
| 143 |
\sloppy% |
| 144 |
\obeylines% |
| 145 |
\gdef\oc@percent#1^^M{% |
| 146 |
\ifvmode% |
| 147 |
\def\commentline{#1}% |
| 148 |
\ifx\commentline\oldc% |
| 149 |
\textit{End of historical \LaTeX\,2.09 comments.} |
| 150 |
\end{oldcomments}% |
| 151 |
\else% |
| 152 |
\ifx\commentline\begmac% |
| 153 |
\begin{macrocode}% |
| 154 |
\else% |
| 155 |
\leavevmode% |
| 156 |
#1^^M% |
| 157 |
\fi\fi% |
| 158 |
\else% |
| 159 |
{\oc@ttf\char`\%}#1^^M% |
| 160 |
\fi}% |
| 161 |
\endgroup% |
| 162 |
\@addtoreset{CodelineNo}{part} |
| 163 |
\def\partname{File} |
| 164 |
\newcommand*{\DocInclude}[1]{% |
| 165 |
\relax |
| 166 |
\clearpage |
| 167 |
\docincludeaux |
| 168 |
\IfFileExists{#1.fdd}% |
| 169 |
{\def\currentfile{#1.fdd}}% |
| 170 |
{\def\currentfile{#1.dtx}}% |
| 171 |
\ifnum\@auxout=\@partaux |
| 172 |
\@latexerr{\string\include\space cannot be nested}\@eha |
| 173 |
\else |
| 174 |
\set@curr@file{#1}% |
| 175 |
\edef\@curr@file{\@strip@tex@ext\@curr@file}% |
| 176 |
\expandafter\@docinclude\expandafter{\@curr@file} |
| 177 |
\fi} |
| 178 |
\def\@docinclude#1 {\clearpage |
| 179 |
\if@filesw \immediate\write\@mainaux{\string\@input{#1.aux}}\fi |
| 180 |
\@tempswatrue\if@partsw \@tempswafalse\edef\@tempb{#1}\@for |
| 181 |
\@tempa:=\@partlist\do{\ifx\@tempa\@tempb\@tempswatrue\fi}\fi |
| 182 |
\if@tempswa \let\@auxout\@partaux \if@filesw |
| 183 |
\immediate\openout\@partaux "#1.aux" |
| 184 |
\immediate\write\@partaux{\relax}\fi |
| 185 |
\@filehook@set@CurrentFile |
| 186 |
\let\@ltxdoc@PrintIndex\PrintIndex |
| 187 |
\let\PrintIndex\relax |
| 188 |
\let\@ltxdoc@PrintChanges\PrintChanges |
| 189 |
\let\PrintChanges\relax |
| 190 |
\let\@ltxdoc@theglossary\theglossary |
| 191 |
\let\@ltxdoc@endtheglossary\endtheglossary |
| 192 |
\part{\currentfile}% |
| 193 |
{\let\ttfamily\relax |
| 194 |
\xdef\filekey{\filekey, \thepart={\ttfamily\currentfile}}}% |
| 195 |
\DocInput{\currentfile}% |
| 196 |
\let\PrintIndex\@ltxdoc@PrintIndex |
| 197 |
\let\PrintChanges\@ltxdoc@PrintChanges |
| 198 |
\let\theglossary\@ltxdoc@theglossary |
| 199 |
\let\endtheglossary\@ltxdoc@endtheglossary |
| 200 |
\clearpage |
| 201 |
\@writeckpt{#1}\if@filesw \immediate\closeout\@partaux \fi |
| 202 |
\else\@nameuse{cp@#1}\fi\let\@auxout\@mainaux} |
| 203 |
\gdef\codeline@wrindex#1{\if@filesw |
| 204 |
\begingroup |
| 205 |
\let\protect\noexpand |
| 206 |
\immediate\write\@indexfile |
| 207 |
{\string\indexentry{#1}% |
| 208 |
{\filesep\number\c@CodelineNo}}% |
| 209 |
\endgroup\fi} |
| 210 |
\let\filesep\@empty |
| 211 |
\def\aalph#1{\@aalph{\csname c@#1\endcsname}} |
| 212 |
\def\@aalph#1{% |
| 213 |
\ifcase#1\or a\or b\or c\or d\or e\or f\or g\or h\or i\or |
| 214 |
j\or k\or l\or m\or n\or o\or p\or q\or r\or s\or |
| 215 |
t\or u\or v\or w\or x\or y\or z\or A\or B\or C\or |
| 216 |
D\or E\or F\or G\or H\or I\or J\or K\or L\or M\or |
| 217 |
N\or O\or P\or Q\or R\or S\or T\or U\or V\or W\or |
| 218 |
X\or Y\or Z\else\@ctrerr\fi} |
| 219 |
\def\docincludeaux{% |
| 220 |
\def\thepart{\aalph{part}}\def\filesep{\thepart-}% |
| 221 |
\let\filekey\@gobble |
| 222 |
\g@addto@macro\index@prologue{% |
| 223 |
\gdef\@oddfoot{\parbox[t]{\textwidth}{\strut\footnotesize |
| 224 |
\raggedright{\bfseries File Key:} \filekey}}% |
| 225 |
\let\@evenfoot\@oddfoot}% |
| 226 |
\global\let\docincludeaux\relax |
| 227 |
\gdef\@oddfoot{% |
| 228 |
\expandafter\ifx\csname ver@\currentfile\endcsname\relax |
| 229 |
File \thepart: {\ttfamily\currentfile} % |
| 230 |
\else |
| 231 |
\GetFileInfo{\currentfile}% |
| 232 |
File \thepart: {\ttfamily\filename} % |
| 233 |
Date: \filedate\ % |
| 234 |
Version \fileversion |
| 235 |
\fi |
| 236 |
\hfill\thepage}% |
| 237 |
\let\@evenfoot\@oddfoot}% |
| 238 |
\def\MaintainedBy#1{\gdef\@maintainedby{#1}} |
| 239 |
\let\@maintainedby\@empty |
| 240 |
\def\MaintainedByLaTeXTeam#1{% |
| 241 |
{\gdef\@maintainedby{% |
| 242 |
This file is maintained by the \LaTeX{} Project team.\\% |
| 243 |
Bug reports can be opened (category \texttt{#1}) at\\% |
| 244 |
\url{https://latex-project.org/bugs.html}.}}} |
| 245 |
\def\@maketitle{% |
| 246 |
\newpage |
| 247 |
\null |
| 248 |
\vskip 2em% |
| 249 |
\begin{center}% |
| 250 |
\let \footnote \thanks |
| 251 |
{\LARGE \@title \par}% |
| 252 |
\vskip 1.5em% |
| 253 |
{\large |
| 254 |
\lineskip .5em% |
| 255 |
\begin{tabular}[t]{c}% |
| 256 |
\@author |
| 257 |
\end{tabular}\par}% |
| 258 |
\vskip 1em% |
| 259 |
{\large \@date}% |
| 260 |
\ifx\@maintainedby\@empty |
| 261 |
\else |
| 262 |
\vskip 1em% |
| 263 |
\fbox{\fbox{\begin{tabular}{@{}l@{}}\@maintainedby\end{tabular}}}% |
| 264 |
\fi |
| 265 |
\end{center}% |
| 266 |
\par |
| 267 |
\vskip 1.5em} |
| 268 |
\def\task#1#2{} |
| 269 |
\AtBeginDocument{% |
| 270 |
\providecommand\LuaTeX{Lua\TeX} |
| 271 |
\providecommand\cls{\textsf} |
| 272 |
\providecommand\pkg{\textsf} |
| 273 |
\providecommand\enquote[1]{``#1''} |
| 274 |
\providecommand\url{\texttt} |
| 275 |
} |
| 276 |
\endinput |
| 277 |
%% |
| 278 |
%% End of file `ltxdoc.cls'. |