Debian Codegraph @

texmf-dist/doc/latex/hep-reference/hep-reference-documentation.tex

raw
1 %%
2 %% This is file `hep-reference-documentation.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% hep-reference-implementation.dtx (with options: `documentation')
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 \ProvidesFile{hep-reference-documentation.tex}[2025/09/01 v1.4 HEP-reference documentation]
18 \documentclass{ltxdoc}
19
20 \renewcommand*\theCodelineNo{\rmfamily\tstyle\footnotesize\arabic{CodelineNo}}
21 \AtBeginEnvironment{macrocode}{\renewcommand*{\ttdefault}{clmt}}
22 \renewcommand*{\MacroFont}{\codestyle}
23 \AtBeginDocument{\DeleteShortVerb{\|}}
24 \AtBeginDocument{\MakeShortVerb{\"}}
25 \EnableCrossrefs
26 \CodelineIndex
27 \RecordChanges
28
29 \usepackage{hologo}
30
31 \usepackage[parskip,oldstyle,font=10pt]{hep-paper}
32 \bibliography{bibliography}
33 \shortacronym{PDF}{portable document format}
34
35 \GetFileInfo{hep-reference.sty}
36
37 \title{The \software{hep-reference} package\thanks{This document corresponds to \software{hep-reference}~\fileversion.}}
38 \subtitle{Adjustments of standard references, footnote, and citations}
39 \author{Jan Hajer \email{[email protected]}}
40 \date{\filedate}
41
42 \begin{document}
43
44 \newgeometry{vscale=.8, vmarginratio=3:4, includeheadfoot, left=11em, marginparwidth=4.6cm, marginparsep=3mm, right=7em}
45
46 \maketitle
47
48 \begin{abstract}
49 The \software{hep-reference} package applies some light convenience modifications to the reference, citation and footnote macros after loading standard classes improving on the default \hologo{LaTeX} behaviour.
50 \end{abstract}
51
52 \section{Introduction}
53
54 The \software{hyperref} package is loaded and the links are hidden.
55
56 \DescribeMacro{\cref}
57 References are extended with the \software{cleveref} package \cite{cleveref}, which allows to \eg just type "\cref"\marg{key} in order to write \enquote{figure 1}.
58 Furthermore, the \software{cleveref} package allows to reference multiple objects within one "\cref"\marg{key1,key2}.
59
60 \DescribeMacro{\cite}
61 Citations are adjusted to not start on a new line in order to avoid the repeated use of "~\cite"\marg{key}.
62
63 \DescribeMacro{\ref}
64 \DescribeMacro{\eqref}
65 \DescribeMacro{\subref}
66 References are also adjusted to not start on a new line.
67
68 \DescribeMacro{\footnote}
69 Footnotes are adjusted to swallow white space before the footnote mark and at the beginning of the footnote text.
70 Additionally the reference back to the text where they are called from.
71
72 \printbibliography
73
74 \end{document}
75
76 \endinput
77 %%
78 %% End of file `hep-reference-documentation.tex'.