Debian Codegraph @

texmf-dist/tex/latex/base/shortvrb.sty

raw
1 %%
2 %% This is file `shortvrb.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% doc.dtx (with options: `shortvrb')
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}[1994/12/01]
45 \ProvidesPackage{shortvrb}
46 [2024/12/25 v3.0q
47 Standard LaTeX documentation package V3 (FMi)]
48 %%
49 %% Package `doc' to use with LaTeX 2e
50 %% Copyright (C) 1989-2023 Frank Mittelbach, all rights reserved.
51
52
53
54
55
56
57 \def\MakeShortVerb{%
58 \@ifstar
59 {\def\@shortvrbdef{\verb*}\@MakeShortVerb}%
60 {\def\@shortvrbdef{\verb}\@MakeShortVerb}}
61 \def\@MakeShortVerb#1{%
62 \expandafter\ifx\csname cc\string#1\endcsname\relax
63 \@shortvrbinfo{Made }{#1}\@shortvrbdef
64 \add@special{#1}%
65 \expandafter
66 \xdef\csname cc\string#1\endcsname{\the\catcode`#1}%
67 \begingroup
68 \catcode`\~\active \lccode`\~`#1%
69 \lowercase{%
70 \global\expandafter\let
71 \csname ac\string#1\endcsname~%
72 \expandafter\gdef\expandafter~\expandafter{\@shortvrbdef~}}%
73 \endgroup
74 \global\catcode`#1\active
75 \else
76 \@shortvrbinfo\@empty{#1 already}%
77 {\@empty\verb% % to fool emacs highlighting
78 (*)}%
79 \fi}
80 \def\DeleteShortVerb#1{%
81 \expandafter\ifx\csname cc\string#1\endcsname\relax
82 \@shortvrbinfo\@empty{#1 not}%
83 {\@empty\verb% % to fool emacs highlighting
84 (*)}%
85 \else
86 \@shortvrbinfo{Deleted }{#1 as}%
87 {\@empty\verb% % to fool emacs
88 % highlighting
89 (*)}%
90 \rem@special{#1}%
91 \global\catcode`#1\csname cc\string#1\endcsname
92 \global \expandafter\let \csname cc\string#1\endcsname \relax
93 \ifnum\catcode`#1=\active
94 \begingroup
95 \catcode`\~\active \lccode`\~`#1%
96 \lowercase{%
97 \global\expandafter\let\expandafter~%
98 \csname ac\string#1\endcsname}%
99 \endgroup \fi \fi}
100 \def\@shortvrbinfo#1#2#3{%
101 \PackageInfo{shortvrb}{%
102 #1\expandafter\@gobble\string#2 a short reference
103 for \expandafter\string#3}}
104 \def\add@special#1{%
105 \rem@special{#1}%
106 \expandafter\gdef\expandafter\dospecials\expandafter
107 {\dospecials \do #1}%
108 \expandafter\gdef\expandafter\@sanitize\expandafter
109 {\@sanitize \@makeother #1}}
110 \def\rem@special#1{%
111 \def\do##1{%
112 \ifnum`#1=`##1 \else \noexpand\do\noexpand##1\fi}%
113 \xdef\dospecials{\dospecials}%
114 \begingroup
115 \def\@makeother##1{%
116 \ifnum`#1=`##1 \else \noexpand\@makeother\noexpand##1\fi}%
117 \xdef\@sanitize{\@sanitize}%
118 \endgroup}
119 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
120 \endinput
121 %%
122 %% End of file `shortvrb.sty'.