Debian Codegraph @

texmf-dist/tex/latex/firstaid/underscore-ltx.sty

raw
1 %%
2 %% This is file `underscore-ltx.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% latex2e-first-aid-for-external-files.dtx (with options: `underscore-ltx')
8 %%
9 %% The source is maintained by the LaTeX Project team and bug
10 %% reports for it can be opened at https://latex-project.org/bugs/
11 %% (but please observe conditions on bug reports sent to that address!)
12 %%
13 %%
14 %% Copyright (C) 2020-2025
15 %% The LaTeX Project and any individual authors listed elsewhere
16 %% in this file.
17 %%
18 %% This file was generated from file(s) of the Standard LaTeX `First Aid Bundle'.
19 %% ------------------------------------------------------------------------------
20 %%
21 %% It may be distributed and/or modified under the
22 %% conditions of the LaTeX Project Public License, either version 1.3c
23 %% of this license or (at your option) any later version.
24 %% The latest version of this license is in
25 %% https://www.latex-project.org/lppl.txt
26 %% and version 1.3c or later is part of all distributions of LaTeX
27 %% version 2005/12/01 or later.
28 %%
29 %% This file may only be distributed together with a copy of the LaTeX
30 %% `First Aid Bundle'. You may however distribute the LaTeX `First Aid Bundle'
31 %% without such generated files.
32 %%
33 %% File: latex2e-first-aid-for-external-files.dtx (C) Copyright 2020-2025
34 %%
35 %% The LaTeX Project and any individual authors listed elsewhere
36 %% in this file.
37 \ProvidesPackage{underscore-ltx}[2023/09/20 LaTeX firstaid to make underscore protected ]
38 \begingroup
39 \catcode`\_=\active
40 \protected\gdef _{%
41 \ifincsname %
42 \string_%
43 \else
44 \ifx\protect\@typeset@protect
45 \ifmmode \sb \else \BreakableUnderscore \fi
46 \else
47 \ifx\protect\@unexpandable@protect \noexpand_%
48 \else \protect_%
49 \fi\fi
50 \fi
51 }
52 \global\let\ActiveUnderscore=_
53 \endgroup
54 \endinput
55 %%
56 %% End of file `underscore-ltx.sty'.