Debian Codegraph @

texmf-dist/source/latex/l3kernel/l3docstrip.dtx

raw
1 % \iffalse
2 %
3 %% File l3dosctrip.dtx
4 %
5 % Copyright (C) 2012-2026 The LaTeX Project
6 %
7 % It may be distributed and/or modified under the conditions of the
8 % LaTeX Project Public License (LPPL), either version 1.3c of this
9 % license or (at your option) any later version. The latest version
10 % of this license is in the file
11 %
12 % https://www.latex-project.org/lppl.txt
13 %
14 % This file is part of the "l3kernel bundle" (The Work in LPPL)
15 % and all files in that bundle must be distributed together.
16 %
17 % -----------------------------------------------------------------------
18 %
19 % The development version of the bundle can be found at
20 %
21 % https://github.com/latex3/latex3
22 %
23 % for those people who are interested.
24 %
25 %<*driver|program>
26 %</driver|program>
27 %<*driver>
28 % The same approach as used in \textsf{DocStrip}: if \cs{documentclass}
29 % is undefined then skip the driver, allowing the file to be used to extract
30 % \texttt{l3docstrip.tex} from \texttt{l3docstrip.dtx} directly. This works
31 % as the \cs{fi} is only seen if \LaTeX{} is not in use. The odd \cs{jobname}
32 % business allows the extraction to work with \LaTeX{} provided an appropriate
33 % \texttt{.ins} file is set up.
34 %<*gobble>
35 \ifx\jobname\relax\let\documentclass\undefined\fi
36 \ifx\documentclass\undefined
37 \else \csname fi\endcsname
38 %</gobble>
39 \def\filename{docstrip.dtx}
40 \documentclass[full,kernel]{l3doc}
41 \ExplSyntaxOn
42 \cs_set_eq:NN \__codedoc_replace_at_at:N \use_none:n
43 \ExplSyntaxOff
44 \begin{document}
45 \DocInput{\jobname.dtx}
46 \end{document}
47 %<*gobble>
48 \fi
49 %</gobble>
50 %</driver>
51 % \fi
52 %
53 % \title{^^A
54 % The \pkg{l3docstrip} module\\ Code extraction and manipulation^^A
55 % }
56 %
57 % \author{^^A
58 % The \LaTeX{} Project\thanks
59 % {^^A
60 % E-mail:
61 % \href{mailto:[email protected]}
62 % {[email protected]}^^A
63 % }^^A
64 % }
65 %
66 % \date{Released 2026-05-15}
67 %
68 % \maketitle
69 %
70 % \begin{documentation}
71 %
72 % This is a stub file to allow extraction of \texttt{l3docstrip}: all
73 % functionality has been moved to the main DocStrip program.
74 %
75 % \end{documentation}
76 %
77 % \begin{implementation}
78 %
79 % \section{\pkg{l3docstrip} implementation}
80 %
81 % \begin{macrocode}
82 %<*program>
83 % \end{macrocode}
84 %
85 % Simply input DocStrip.
86 % \begin{macrocode}
87 \input docstrip %
88 % \end{macrocode}
89 %
90 % \begin{macrocode}
91 %</program>
92 % \end{macrocode}
93 %
94 % \end{implementation}
95 %
96 % \PrintIndex