Debian Codegraph @

texmf-dist/doc/latex/childdoc/cdocsamp.tex

raw
1 %%
2 %% This is file `cdocsamp.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% childdoc.dtx (with options: `samplemain')
8 %%
9 %% Copyright (C) 2017-2025 Niklas Beisert
10 %%
11 %% This work may be distributed and/or modified under the
12 %% conditions of the LaTeX Project Public License, either version 1.3
13 %% of this license or (at your option) any later version.
14 %% The latest version of this license is in
15 %% https://www.latex-project.org/lppl.txt
16 %% and version 1.3c or later is part of all distributions of LaTeX
17 %% version 2008 or later.
18 %%
19 \ProvidesFile{cdocsamp.tex}[2025/03/25 v2.0.1 sample for childdoc]
20 \input{childdoc.def}
21 \childdocmain{}
22
23 %%\ifchilddoc\else\providecommand{\version}{draft}\fi
24
25 \ifchilddoc
26 \providecommand{\version}{draft}
27 \else
28 \providecommand{\version}{final}
29 \fi
30
31 \documentclass[12pt]{article}
32
33 \begin{document}
34
35 \addtocounter{page}{-1}
36 \begin{center}
37 {\LARGE\bfseries{}childdoc example\par}
38 \vspace{1cm}
39 \ifchilddoc
40 \ifchilddocmanual part\else chapter\fi:
41 `\childdocname' of `\childdocjob'\par
42 \else
43 main document: `\childdocjob'\par
44 \fi
45 version: \version\par
46 \end{center}
47 \newpage
48
49 \ifchilddocmanual
50 \section*{part `\childdocname'}
51 \input{\childdocname}
52 \else
53
54 \include{cdocsch1}
55 \include{cdocsch2}
56
57 \ifchilddoc\else
58 \section{part three}
59 \input{cdocspt3}
60 \section{part four}
61 \input{cdocspt4}
62 \fi
63
64 \fi
65
66 \end{document}
67 \endinput
68 %%
69 %% End of file `cdocsamp.tex'.