| 1 |
%% |
| 2 |
%% This is file `verbatim.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% verbatim.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/ |
| 13 |
%% (but please observe conditions on bug reports sent to that address!) |
| 14 |
%% |
| 15 |
%% |
| 16 |
%% Copyright (C) 1993-2026 |
| 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 Standard LaTeX `Tools Bundle'. |
| 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 2005/12/01 or later. |
| 30 |
%% |
| 31 |
%% This file may only be distributed together with a copy of the LaTeX |
| 32 |
%% `Tools Bundle'. You may however distribute the LaTeX `Tools Bundle' |
| 33 |
%% without such generated files. |
| 34 |
%% |
| 35 |
%% The list of all files belonging to the LaTeX `Tools Bundle' is |
| 36 |
%% given in the file `manifest.txt'. |
| 37 |
%% |
| 38 |
%% Package `verbatim' to use with LaTeX2e |
| 39 |
%% Copyright (C) 1989--2003 by Rainer Sch\"opf. All rights reserved. |
| 40 |
\NeedsTeXFormat{LaTeX2e} |
| 41 |
\ProvidesPackage{verbatim} |
| 42 |
[2024-01-22 v1.5x LaTeX2e package for verbatim enhancements] |
| 43 |
\@ifundefined{verbatim@@@}{}{\endinput} |
| 44 |
\newtoks\every@verbatim |
| 45 |
\every@verbatim={} |
| 46 |
\def\@makeother#1{\catcode`#112\relax} |
| 47 |
\begingroup |
| 48 |
\catcode`\ =\active% |
| 49 |
\@ifl@t@r\fmtversion{2023-11-01}% |
| 50 |
{\def\x{\def\@vobeyspaces{\catcode`\ \active\let \@xobeysp\@vobeytabs}}}% |
| 51 |
{\def\x{\def\@vobeyspaces{\catcode`\ \active\let \@xobeysp}}}% |
| 52 |
\expandafter\endgroup\x |
| 53 |
\def\@xobeysp{\leavevmode\penalty\@M\ } |
| 54 |
\newtoks\verbatim@line |
| 55 |
\def\verbatim@startline{\verbatim@line{}} |
| 56 |
\def\verbatim@addtoline#1{% |
| 57 |
\verbatim@line\expandafter{\the\verbatim@line#1}} |
| 58 |
\def\verbatim@processline{\the\verbatim@line\par} |
| 59 |
\def\verbatim@finish{\ifcat$\the\verbatim@line$\else |
| 60 |
\verbatim@processline\fi} |
| 61 |
\def\verbatim@font{\normalfont\ttfamily |
| 62 |
\hyphenchar\font\m@ne |
| 63 |
\@noligs} |
| 64 |
\def\@verbatim{\the\every@verbatim |
| 65 |
\trivlist \item \relax |
| 66 |
\if@minipage\else\vskip\parskip\fi |
| 67 |
\@beginparpenalty \predisplaypenalty |
| 68 |
\leftskip\@totalleftmargin\rightskip\z@ |
| 69 |
\parindent\z@\parfillskip\@flushglue\parskip\z@ |
| 70 |
\@@par |
| 71 |
\def\par{% |
| 72 |
\if@tempswa |
| 73 |
\leavevmode\null\@@par\penalty\interlinepenalty |
| 74 |
\else |
| 75 |
\@tempswatrue |
| 76 |
\ifhmode\@@par\penalty\interlinepenalty\fi |
| 77 |
\fi}% |
| 78 |
\def\@noitemerr{\@warning{No verbatim text}}% |
| 79 |
\obeylines |
| 80 |
\let\do\@makeother \dospecials |
| 81 |
\verbatim@font |
| 82 |
\everypar \expandafter{\the\everypar \unpenalty}} |
| 83 |
\def\verbatim{\begingroup\@verbatim \frenchspacing\@vobeyspaces |
| 84 |
\verbatim@start} |
| 85 |
\@namedef{verbatim*}{\begingroup\@verbatim |
| 86 |
\@setupverbvisiblespace\@vobeyspaces |
| 87 |
\verbatim@start} |
| 88 |
\def\endverbatim{\endtrivlist\endgroup\@doendpe} |
| 89 |
\expandafter\let\csname endverbatim*\endcsname =\endverbatim |
| 90 |
\def\comment{\@bsphack |
| 91 |
\let\do\@makeother\dospecials\catcode`\^^M\active |
| 92 |
\let\verbatim@startline\relax |
| 93 |
\let\verbatim@addtoline\@gobble |
| 94 |
\let\verbatim@processline\relax |
| 95 |
\let\verbatim@finish\relax |
| 96 |
\verbatim@} |
| 97 |
\let\endcomment=\@esphack |
| 98 |
\@ifundefined{vrb@catcodes}% |
| 99 |
{\def\vrb@catcodes{% |
| 100 |
\catcode`\!12\catcode`\[12\catcode`\]12}}{} |
| 101 |
\begingroup |
| 102 |
\vrb@catcodes |
| 103 |
\lccode`\!=`\\ \lccode`\[=`\{ \lccode`\]=`\} |
| 104 |
\catcode`\~=\active \lccode`\~=`\^^M |
| 105 |
\lccode`\C=`\C |
| 106 |
\lowercase{\endgroup |
| 107 |
\def\verbatim@start#1{% |
| 108 |
\verbatim@startline |
| 109 |
\if\noexpand#1\noexpand~% |
| 110 |
\let\next\verbatim@ |
| 111 |
\else \def\next{\verbatim@#1}\fi |
| 112 |
\next}% |
| 113 |
\def\verbatim@#1~{\verbatim@@#1!end\@nil}% |
| 114 |
\def\verbatim@@#1!end{% |
| 115 |
\verbatim@addtoline{#1}% |
| 116 |
\futurelet\next\verbatim@@@}% |
| 117 |
\def\verbatim@@@#1\@nil{% |
| 118 |
\ifx\next\@nil |
| 119 |
\verbatim@processline |
| 120 |
\verbatim@startline |
| 121 |
\let\next\verbatim@ |
| 122 |
\else |
| 123 |
\def\@tempa##1!end\@nil{##1}% |
| 124 |
\@temptokena{!end}% |
| 125 |
\def\next{\expandafter\verbatim@test\@tempa#1\@nil~}% |
| 126 |
\fi \next}% |
| 127 |
\def\verbatim@test#1{% |
| 128 |
\let\next\verbatim@test |
| 129 |
\if\noexpand#1\noexpand~% |
| 130 |
\expandafter\verbatim@addtoline |
| 131 |
\expandafter{\the\@temptokena}% |
| 132 |
\verbatim@processline |
| 133 |
\verbatim@startline |
| 134 |
\let\next\verbatim@ |
| 135 |
\else \if\noexpand#1 |
| 136 |
\@temptokena\expandafter{\the\@temptokena#1}% |
| 137 |
\else \if\noexpand#1\noexpand[% |
| 138 |
\let\@tempc\@empty |
| 139 |
\let\next\verbatim@testend |
| 140 |
\else |
| 141 |
\expandafter\verbatim@addtoline |
| 142 |
\expandafter{\the\@temptokena}% |
| 143 |
\def\next{\verbatim@#1}% |
| 144 |
\fi\fi\fi |
| 145 |
\next}% |
| 146 |
\def\verbatim@testend#1{% |
| 147 |
\if\noexpand#1\noexpand~% |
| 148 |
\expandafter\verbatim@addtoline |
| 149 |
\expandafter{\the\@temptokena[}% |
| 150 |
\expandafter\verbatim@addtoline |
| 151 |
\expandafter{\@tempc}% |
| 152 |
\verbatim@processline |
| 153 |
\verbatim@startline |
| 154 |
\let\next\verbatim@ |
| 155 |
\else\if\noexpand#1\noexpand]% |
| 156 |
\let\next\verbatim@@testend |
| 157 |
\else\if\noexpand#1\noexpand!% |
| 158 |
\expandafter\verbatim@addtoline |
| 159 |
\expandafter{\the\@temptokena[}% |
| 160 |
\expandafter\verbatim@addtoline |
| 161 |
\expandafter{\@tempc}% |
| 162 |
\def\next{\verbatim@!}% |
| 163 |
\else \expandafter\def\expandafter\@tempc\expandafter |
| 164 |
{\@tempc#1}\fi\fi\fi |
| 165 |
\next}% |
| 166 |
\def\verbatim@@testend{% |
| 167 |
\ifx\@tempc\@currenvir |
| 168 |
\verbatim@finish |
| 169 |
\edef\next{\noexpand\end{\@currenvir}% |
| 170 |
\noexpand\verbatim@rescan{\@currenvir}}% |
| 171 |
\else |
| 172 |
\expandafter\verbatim@addtoline |
| 173 |
\expandafter{\the\@temptokena[}% |
| 174 |
\expandafter\verbatim@addtoline |
| 175 |
\expandafter{\@tempc]}% |
| 176 |
\let\next\verbatim@ |
| 177 |
\fi |
| 178 |
\next}% |
| 179 |
\def\verbatim@rescan#1#2~{\if\noexpand~\noexpand#2~\else |
| 180 |
\@warning{Characters dropped after `\string\end{#1}'}\fi}} |
| 181 |
\newread\verbatim@in@stream |
| 182 |
\def\verbatim@readfile#1{% |
| 183 |
\verbatim@startline |
| 184 |
\openin\verbatim@in@stream #1\relax |
| 185 |
\ifeof\verbatim@in@stream |
| 186 |
\typeout{No file #1.}% |
| 187 |
\else |
| 188 |
\@addtofilelist{#1}% |
| 189 |
\ProvidesFile{#1}[(verbatim)]% |
| 190 |
\expandafter\endlinechar\expandafter\m@ne |
| 191 |
\expandafter\verbatim@read@file |
| 192 |
\expandafter\endlinechar\the\endlinechar\relax |
| 193 |
\closein\verbatim@in@stream |
| 194 |
\fi |
| 195 |
\verbatim@finish |
| 196 |
} |
| 197 |
\def\verbatim@read@file{% |
| 198 |
\read\verbatim@in@stream to\next |
| 199 |
\ifeof\verbatim@in@stream |
| 200 |
\else |
| 201 |
\expandafter\verbatim@addtoline\expandafter{\next}% |
| 202 |
\verbatim@processline |
| 203 |
\verbatim@startline |
| 204 |
\expandafter\verbatim@read@file |
| 205 |
\fi |
| 206 |
} |
| 207 |
\def\verbatiminput{\begingroup |
| 208 |
\@ifstar{\verbatim@input{\@setupverbvisiblespace\@vobeyspaces}}% |
| 209 |
{\verbatim@input{\frenchspacing\@vobeyspaces}}} |
| 210 |
\def\verbatim@input#1#2{% |
| 211 |
\IfFileExists {#2}{% |
| 212 |
\expandafter\@swaptwoargs\expandafter |
| 213 |
{\expandafter{\@filef@und}}% |
| 214 |
{\@verbatim #1\relax |
| 215 |
\verbatim@readfile}% |
| 216 |
\endtrivlist\endgroup\@doendpe}% |
| 217 |
{\typeout {No file #2.}\endgroup}} |
| 218 |
\endinput |
| 219 |
%% |
| 220 |
%% End of file `verbatim.sty'. |