Debian Codegraph @

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

raw
1 %%
2 %% This is file `hep-text-documentation.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% hep-text-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
18 \ProvidesFile{hep-text-documentation.tex}[2025/09/01 v1.4 HEP-Text documentation]
19
20 \RequirePackage[l2tabu, orthodox]{nag}
21 \documentclass{ltxdoc}
22
23 \renewcommand*\theCodelineNo{\rmfamily\tstyle\footnotesize\arabic{CodelineNo}}
24 \AtBeginEnvironment{macrocode}{\renewcommand*{\ttdefault}{clmt}}
25 \renewcommand*{\MacroFont}{\codestyle}
26 \AtBeginDocument{\DeleteShortVerb{\|}}
27 \AtBeginDocument{\MakeShortVerb{\"}}
28 \EnableCrossrefs
29 \CodelineIndex
30 \RecordChanges
31
32 \usepackage{hologo}
33
34 \usepackage[parskip,oldstyle,font=10pt]{hep-paper}
35 \bibliography{bibliography}
36
37 \acronym{CM}{computer modern}
38 \acronym{LM}{latin modern}
39
40 \newenvironment{columns}[1][.5]{%
41 \par\vspace{-\bigskipamount}%
42 \begin{minipage}[t]{\linewidth}%
43 \begin{minipage}[t]{#1\linewidth}%
44 \def\column{%
45 \end{minipage}%
46 \begin{minipage}[t]{\linewidth-#1\linewidth}%
47 }%
48 }{\end{minipage}\end{minipage}\par}
49
50 \GetFileInfo{hep-text.sty}
51
52 \title{The \software{hep-text} package\thanks{This document corresponds to \software{hep-text}~\fileversion.}}
53 \subtitle{List and text extensions}
54 \author{Jan Hajer \email{[email protected]}}
55 \date{\filedate}
56
57 \begin{document}
58
59 \newgeometry{vscale=.8, vmarginratio=3:4, includeheadfoot, left=11em, marginparwidth=4.6cm, marginparsep=3mm, right=7em}
60
61 \maketitle
62
63 \begin{abstract}
64 The \software{hep-text} package extends \hologo{LaTeX} lists using the \software{enumitem} package and provides some text macros.
65 \end{abstract}
66
67 The package can be loaded by "\usepackage{hep-text}".
68
69 \DescribeMacro{lang}
70 The "lang" option sets the used language and takes the values allowed by the \software{babel} package \cite{babel}, that is loaded for its hyphenation support.
71
72 Quotation commands are provided by the \software{csquotes} package \cite{csquotes}.
73 \DescribeMacro{\enquote}
74 \DescribeMacro{\MakeOuterQuote}
75 It provides the convenient macros "\enquote"\marg{text} and "\MakeOuterQuote{}" allowing to leave the choice of quotation marks to \hologo{LaTeX} and use \verb|"| instead of the pair \verb|``| and \verb|''|, respectively.
76
77 \DescribeMacro{\eg}
78 \DescribeMacro{\vs}
79 The \software{foreign} package \cite{foreign} defines macros such as "\eg", "\ie", "\cf", and "\vs" which are typeset as \eg, \ie, \cf, and \vs with the appropriate spacing.
80 Issuing "\renewcommand\foreignabbrfont{\itshape}" these abbreviations are typeset in italic.
81
82 \DescribeMacro{\no}
83 The "\no"\marg{number} macro is typeset as \no{123}.
84
85 \DescribeMacro{\software}
86 The "\software"\oarg{version}\marg{name} macro is typeset as \software[\fileversion]{HEP-Paper}.
87
88 \DescribeMacro{\online}
89 The "\online"\marg{url}\marg{text} macro combines the features of the "\href"\marg{url}\allowbreak\marg{text}\allowbreak \cite{hyperref} and the "\url"\marg{text} \cite{url} macros, resulting in \eg \online{https://ctan.org/pkg/hep-text}{ctan.org/pkg/hep-text}.
90
91 \DescribeMacro{inlinelist}
92 \DescribeMacro{enumdescript}
93 The "inlinelist" and "enumdescript" environments are defined using the \software{enumitem} package \cite{enumitem}.
94 \\
95 \begin{columns}
96 \begin{verbatim}
97 The three main points are
98 \begin{inlinelist}
99 \item one
100 \item two
101 \item three
102 \end{inlinelist}
103 \end{verbatim}
104 \column
105 The three main points are
106 \begin{inlinelist}
107 \item one
108 \item two
109 \item three
110 \end{inlinelist}
111 \end{columns}
112 \vspace{4ex}
113 \begin{columns}[.6]
114 \begin{verbatim}
115 \begin{enumdescript}[label=\Roman*)]
116 \item{First} one
117 \item{Second} two
118 \item{Third} three
119 \end{enumdescript}
120 \end{verbatim}
121 \column
122 \begin{enumdescript}[label=\Roman*)]
123 \item{First} one
124 \item{Second} two
125 \item{Third} three
126 \end{enumdescript}
127 \end{columns}
128
129 \DescribeMacro{\underline}
130 The "\underline" macro is redefined to allow line-breaks using the \software{soul} package \cite{soul}.
131
132 \printbibliography
133
134 \end{document}
135
136 \endinput
137 %%
138 %% End of file `hep-text-documentation.tex'.