Debian Codegraph @

texmf-dist/doc/latex/hep-acronym/hep-acronym-test.tex

raw
1 %%
2 %% This is file `hep-acronym-test.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% hep-acronym-implementation.dtx (with options: `test')
8 %% This is a generated file.
9 %% Copyright (C) 2019-2025 by Jan Hajer
10 %% This file may be distributed and/or modified under the
11 %% conditions of the LaTeX Project Public License, either
12 %% version 1.3c of this license or (at your option) any later
13 %% version. The latest version of this license is in:
14 %% http://www.latex-project.org/lppl.txt
15 %% and version 1.3c or later is part of all distributions of
16 %% LaTeX version 2005/12/01 or later.
17
18 \documentclass{article}
19
20 \usepackage{hyperref}
21 \usepackage{hep-acronym}
22 \usepackage{titlesec}
23
24 \acronym{PDF}{portable document format}
25 \acronym{URL}{uniform resource locator}
26 \acronym{CM}{computer modern}
27 \acronym{LM}{latin modern}
28
29 \begin{document}
30
31 \PDF \emph{(Capitalised at beginning of paragraph)}
32 \PDF \emph{(Second appearance is shortened)}.
33 \URLs \emph{(Capitalised plural form at beginning of sentence)}
34 $\URL$ \emph{(Second appearance is forced to be always short)}
35 \LM \emph{(Not capitalised in middle of sentence)}
36 \LM \emph{(Second appearance is shorted)}.
37 $\CM$ \emph{(Enforce short form)}
38 \CM \emph{(then extend second appearance)}
39 \URLlong \emph{(enforce long form)}
40
41 \section{\PDFlong table of contents is not broken}
42
43 \end{document}
44
45 \endinput
46 %%
47 %% End of file `hep-acronym-test.tex'.