texlive[56503] Master/texmf-dist: hep-paper (1oct20)

commits+karl at tug.org commits+karl at tug.org
Thu Oct 1 23:05:52 CEST 2020


Revision: 56503
          http://tug.org/svn/texlive?view=revision&revision=56503
Author:   karl
Date:     2020-10-01 23:05:52 +0200 (Thu, 01 Oct 2020)
Log Message:
-----------
hep-paper (1oct20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/hep-paper/bibliography.bib
    trunk/Master/texmf-dist/doc/latex/hep-paper/hep-paper-documentation.pdf
    trunk/Master/texmf-dist/doc/latex/hep-paper/hep-paper-documentation.tex
    trunk/Master/texmf-dist/doc/latex/hep-paper/hep-paper-implementation.pdf
    trunk/Master/texmf-dist/source/latex/hep-paper/hep-paper-implementation.dtx
    trunk/Master/texmf-dist/source/latex/hep-paper/hep-paper.ins
    trunk/Master/texmf-dist/tex/latex/hep-paper/hep-paper.dbx
    trunk/Master/texmf-dist/tex/latex/hep-paper/hep-paper.sty

Modified: trunk/Master/texmf-dist/doc/latex/hep-paper/bibliography.bib
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hep-paper/bibliography.bib	2020-10-01 21:05:35 UTC (rev 56502)
+++ trunk/Master/texmf-dist/doc/latex/hep-paper/bibliography.bib	2020-10-01 21:05:52 UTC (rev 56503)
@@ -697,7 +697,7 @@
 eprint = "bbm",
 }
 
- at online{arxiv,
+ at article{arxiv,
 title = "arXiv",
 subtitle = "free distribution service and an open archive for scholarly articles",
 url = "https://arxiv.org",
@@ -705,7 +705,6 @@
 collaboration = "arXiv Team",
 year = "1991",
 organization = "Cornell University",
-ReportNumber = "test",
 }
 
 @article{dsfont,
@@ -768,3 +767,58 @@
 eprintclass = "josephwright",
 eprint = "beamer",
 }
+
+ at article{exscale,
+title = "The |exscale| package",
+subtitle = "Implements scaling of the \enquote{cmex} fonts",
+author = "Frank Mittelbach and Rainer Schöpf",
+date = "1993",
+eprinttype = "ctan",
+eprint = "exscale",
+}
+
+ at article{mathrsfs,
+title = "The |mathrsfs| package",
+subtitle = "Support for using RSFS fonts in maths",
+author = "Jörg Knappen",
+date = "1995",
+eprinttype = "ctan",
+eprint = "mathrsfs",
+}
+
+ at article{esint,
+title = "The |esint| package",
+subtitle = "Extended set of integrals for Computer Modern",
+author = "Eddie Saudrais",
+date = "2005",
+eprinttype = "ctan",
+eprint = "esint",
+}
+
+ at article{cmbright,
+title = "The |cmbright| package",
+subtitle = "Using the CM Bright typeface with \hologo{LaTeX}",
+author = "Walter A. Schmidt",
+date = "1996",
+eprinttype = "ctan",
+eprint = "cmbright",
+}
+
+ at article{titling,
+title = "The |titling| package",
+subtitle = "Control over the typesetting of the |\textbackslash maketitle| command",
+author = "Peter R. Wilson",
+date = "2000",
+eprinttype = "ctan",
+eprint = "titling",
+}
+
+ at article{MnSymbol,
+title = "The |MnSymbol| package",
+subtitle = "Mathematical symbol font for Adobe MinionPro",
+author = "Achim Blumensath",
+date = "2005",
+eprinttype = "ctan",
+eprint = "MnSymbol",
+}
+

Modified: trunk/Master/texmf-dist/doc/latex/hep-paper/hep-paper-documentation.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/hep-paper/hep-paper-documentation.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hep-paper/hep-paper-documentation.tex	2020-10-01 21:05:35 UTC (rev 56502)
+++ trunk/Master/texmf-dist/doc/latex/hep-paper/hep-paper-documentation.tex	2020-10-01 21:05:52 UTC (rev 56503)
@@ -14,6 +14,9 @@
 %% http://www.latex-project.org/lppl.txt
 %% and version 1.3c or later is part of all distributions of
 %% LaTeX version 2005/12/01 or later.
+
+\ProvidesFile{hep-paper-documentation.tex}[2020/10/01 v1.5 HEP-Paper documentation]
+
 \RequirePackage[l2tabu, orthodox]{nag}
 \documentclass{ltxdoc}
 
@@ -20,6 +23,7 @@
 \EnableCrossrefs
 \CodelineIndex
 \RecordChanges
+\def\MacroFont{\fontencoding\encodingdefault\fontfamily{lmtt}\fontseries\mddefault\fontshape\shapedefault\small}
 
 \MacroIndent=1.5em
 
@@ -29,10 +33,13 @@
 
 \acronym{PDF}{portable document format}
 \acronym{URL}{uniform resource locator}
+\acronym{CM}{computer modern}
+\acronym{LM}{latin modern}
 
 \usepackage{hologo}
 
 \newenvironment{columns}[1][.5]{%
+  \par\vspace{-\bigskipamount}%
   \begin{minipage}[t]{\linewidth}%
   \begin{minipage}[t]{#1\linewidth}%
   \newcommand{\column}{%
@@ -39,25 +46,26 @@
     \end{minipage}%
     \begin{minipage}[t]{\linewidth-#1\linewidth}%
   }%
-}{\end{minipage}\end{minipage}}
+}{\end{minipage}\end{minipage}\par}
 
 \setlength{\fboxsep}{1pt}
 
-\begin{document}
-
 \GetFileInfo{hep-paper.sty}
 
-\title{The |hep-paper| package\thanks{This document corresponds to \protecting{|hep-paper|}~\fileversion.}}
+\title{The \software{hep-paper} package\thanks{This document corresponds to \software{hep-paper}~\fileversion.}}
+\subtitle{Publications in high energy physics}
 \author{Jan Hajer \email{jan.hajer at uclouvain.be}}
 \affiliation{Centre for Cosmology, Particle Physics and Phenomenology, Université catholique de Louvain, Louvain-la-Neuve B-1348, Belgium}
 \preprint{Preprint-Number}
-\date{\normalfont\filedate}
+\date{\filedate}
 
+\begin{document}
+
 \maketitle
 
 \begin{abstract}
-The |hep-paper| package aims to provide a single style file containing most configurations and macros necessary to write appealing publications in High Energy Physics.
-Instead of reinventing the wheel by introducing newly created macros |hep-paper| preferably loads third party packages as long as they are lightweight enough.
+The \software{hep-paper} package aims to provide a single style file containing most configurations and macros necessary to write appealing publications in High Energy Physics.
+Instead of reinventing the wheel by introducing newly created macros \software{hep-paper} preferably loads third party packages as long as they are lightweight enough.
 \end{abstract}
 
 \tableofcontents\clearpage
@@ -66,16 +74,16 @@
 
 \section{Introduction}
 
-For usual publications it is enough to load additionally to the |article| class without optional arguments only the |hep-paper| package \cite{hep-paper}.
-
-| \documentclass{article}|\\
-| \usepackage{hep-paper}|
-
-The most notable changes after loading the |hep-paper| package is the change of some \hologo{LaTeX} defaults.
+For usual publications it is enough to load additionally to the |article| class without optional arguments only the \software{hep-paper} package \cite{hep-paper}.
+\begin{verbatim}
+\documentclass{article}
+\usepackage{hep-paper}
+\end{verbatim}
+The most notable changes after loading the \software{hep-paper} package is the change of some \hologo{LaTeX} defaults.
 The paper and font sizes are set to A4 and \unit[11]{pt}, respectively.
-Additionally, the paper geometry is set to the values known from the (depreciated) |a4wide| package \cite{a4wide} using the |geometry| package \cite{geometry}.
-Furthermore, the font is changed to |lmodern| \cite{lmodern} with |microtype| \cite{microtype} optimizations.
-Finally, \PDF hyperlinks are implemented with the |hyperref| package \cite{hyperref}.
+Additionally, the paper geometry is adjusted using the \software{geometry} package \cite{geometry}.
+Furthermore, the font is changed to \LM using the \software{lmodern} package \cite{lmodern} with \software{microtype} \cite{microtype} optimizations.
+Finally, \PDF hyperlinks are implemented with the \software{hyperref} package \cite{hyperref}.
 
 \subsection{Options}
 
@@ -96,18 +104,24 @@
 The default is \unit[11]{pt}.
 
 \DescribeMacro{lang}
-The |lang|=\meta{name} option switches the document language to the chosen value.
-The possible values are given by the |babel| package \cite{babel}.
+The |lang|=\meta{name} option switches the document language to one of the values values provided by the \software{babel} package \cite{babel}.
 The default is |british|.
 
 \DescribeMacro{sansserif}
-The |sansserif| option switches the document including math to the sans serif font shape.
+The |sansserif| option switches the document including math to sans serif font shape.
 
 \DescribeMacro{parskip}
-The |parskip| option makes use of the |parskip| package \cite{parskip} and changes how two paragraphs are separated from each other.
+The |parskip| option changes how paragraphs are separated from each other using the \software{parskip} package \cite{parskip}.
 The \hologo{LaTeX} default is separation via indentation the |parskip| option switches to separation via vertical space.
 \footnote{Although the |parskip| option is used for this document, it is recommended only for very few document types such as technical manuals or answers to referees.}
 
+\DescribeMacro{symbols}
+The |symbols|=\meta{family} set the family of the symbol fonts.
+|symbols=ams| loads two \hologo{AmS} fonts \cite{amsfonts} and the \software{bm} bold fonts.
+The default setting replaces additionally the blackboard font with the \software{dsfont} \cite{dsfont}.
+|symbols=minion| switches the symbol fonts to the Adobe MinionPro companion font from the \software{MnSymbol} package \cite{MnSymbol}.
+|symbols=false| deactivates additional symbol fonts.
+
 \subsubsection{Deactivation}
 
 The \software{hep-paper} package loads few bigger packages which have a large impact on the document.
@@ -120,14 +134,14 @@
 The |title=false| option deactivates the title page adjustments.
 
 \DescribeMacro{bibliography}
-The |bibliography|=\meta{key} option prevents the automatic loading of the |biblatex| package \cite{biblatex} if \meta{key}=|false|.
-Otherwise the \meta{key} is passed as |style| string to the |biblatex| package.
+The |bibliography|=\meta{key} option prevents the automatic loading of the \software{biblatex} package \cite{biblatex} if \meta{key}=|false|.
+Otherwise the \meta{key} is passed as |style| string to the \software{biblatex} package.
 
 \DescribeMacro{glossaries}
-The |glossaries=false| option deactives acronyms and the use of the |glossaries| package \cite{glossaries}.
+The |glossaries=false| option deactives acronyms and the use of the \software{glossaries} package \cite{glossaries}.
 
 \DescribeMacro{references}
-The |references=false| option prevents the |cleveref| pacakge \cite{cleveref} from being loaded and deactivates further redefinitions of reference macros.
+The |references=false| option prevents the \software{cleveref} package \cite{cleveref} from being loaded and deactivates further redefinitions of reference macros.
 
 \subsubsection{Compatibility}
 
@@ -164,20 +178,24 @@
 
 \subsection{Title page}
 
+\DescribeMacro{\title}
+The \PDF meta information is set according to the |\title|\marg{text} and |\author| \marg{text} information.
+
+\DescribeMacro{\subtitle}
+The |\subtitle|\marg{subtitle} macro is defined using the \software{titling} package \cite{titling}.
+
 \DescribeMacro{\author}
 \DescribeMacro{\affiliation}
 \DescribeMacro{\email}
-In order to facilitate multiple authors with different affiliations the |authblk| package \cite{authblk} is loaded.
+In order to facilitate multiple authors with different affiliations the \software{authblk} package \cite{authblk} is loaded.
 The following lines add \eg two authors with different affiliations
+\begin{verbatim}
+\author[1]{Author one \email{email one}}
+\affiliation[1]{Affiliation one}
+\author[2]{Author two \email{email two}}
+\affiliation[1,2]{Affiliation two}
+\end{verbatim}
 
-| \author[1]{Author one \email{Email one}}|\\
-| \affiliation[1]{Affiliation one}|\\
-| \author[2]{Author two \email{Email two}}|\\
-| \affiliation[1,2]{Affiliation two}|
-
-\DescribeMacro{\title}
-The \PDF meta information is set according to the |\title|\marg{text} and |\author| \marg{text} information.
-
 \DescribeMacro{\preprint}
 The |\preprint|\marg{numer} macro places a pre-print number in the upper right corner of the title page.
 
@@ -184,9 +202,16 @@
 \DescribeEnv{abstract}
 The |abstract| environment is adjusted to not start with an indentation.
 
+\DescribeMacro{\titlefont}
+\DescribeMacro{\subtitlefont}
+\DescribeMacro{\authorfont}
+\DescribeMacro{\affiliationfont}
+\DescribeMacro{\preprintfont}
+Various title font macros are defined, allowing to change the appearance of the |\maketitle| output.
+
 \subsection{Text}
 
-Hyphenation is provided by the |babel| package \cite{babel} and quotation commands are provided by the |csquotes| package \cite{csquotes} recommended by the |babel| package.
+Hyphenation is provided by the \software{babel} package \cite{babel} and quotation commands are provided by the \software{csquotes} package \cite{csquotes} recommended by the \software{babel} package.
 \DescribeMacro{\enquote}
 \DescribeMacro{\MakeOuterQuote}
 The latter package provides the convenient macros |\enquote|\marg{text} and |\MakeOuterQuote{"}| allowing to leave the choice of quotation marks to \hologo{LaTeX} and use |"| instead of the pair |``| and |''|, respectively.
@@ -193,7 +218,7 @@
 
 \DescribeMacro{\eg}
 \DescribeMacro{\vs}
-The |foreign| package \cite{foreign} defines macros such as |\eg|, |\ie|, |\cf|, and |\vs| which are typeset as \eg, \ie, \cf, and \vs.
+The \software{foreign} package \cite{foreign} defines macros such as |\eg|, |\ie|, |\cf|, and |\vs| which are typeset as \eg, \ie, \cf, and \vs.
 
 \DescribeMacro{\no}
 The |\no|\marg{number} macro is typeset as \no{123}.
@@ -204,20 +229,18 @@
 \DescribeMacro{\online}
 The |\online|\marg{url}\marg{text} macro combines the features of the |\href|\marg{url} \marg{text} \cite{hyperref} and the |\url|\marg{text} \cite{url} macros, resulting in \eg \online{https://ctan.org/pkg/hep-paper}{ctan.org/pkg/hep-paper}.
 
-The |inlinelist| and |enumdescript| environments are defined using the |enumitem| package \cite{enumitem}.
-
 \DescribeMacro{inlinelist}
+\DescribeMacro{enumdescript}
+The |inlinelist| and |enumdescript| environments are defined using the \software{enumitem} package \cite{enumitem}.
 \begin{columns}
-|The three main points are|
-|\begin{inlinelist}|
-
-| \item one|
-
-| \item two|
-
-| \item three|
-
-|\end{inlinelist}|
+\begin{verbatim}
+The three main points are
+\begin{inlinelist}
+  \item one
+  \item two
+  \item three
+\end{inlinelist}
+\end{verbatim}
 \column
 The three main points are
 \begin{inlinelist}
@@ -226,18 +249,15 @@
  \item three
 \end{inlinelist}
 \end{columns}
-
-\DescribeMacro{enumdescript}
+\vspace{4ex}
 \begin{columns}[.6]
-|\begin{enumdescript}[label=\Roman*)]|
-
-| \item{First} one|
-
-| \item{Second} two|
-
-| \item{Third} three|
-
-|\end{enumdescript}|
+\begin{verbatim}
+\begin{enumdescript}[label=\Roman*)]
+  \item{First} one
+  \item{Second} two
+  \item{Third} three
+\end{enumdescript}
+\end{verbatim}
 \column
 \begin{enumdescript}[label=\Roman*)]
  \item{First} one
@@ -247,11 +267,11 @@
 \end{columns}
 
 \DescribeMacro{\textsc}
-A bold versions \textbf{\textsc{Small Caps}} and a sans serif version of \textsf{\textsc{Small Caps}} is provided, using the |sansmathfonts| package \cite{sansmathfonts}.
+A bold versions \textbf{\textsc{Small Caps}} and a sans serif version of \textsf{\textsc{Small Caps}} based on the \CM font is provided, the latter using the \software{sansmathfonts} package \cite{sansmathfonts}.
 
 \DescribeMacro{\underline}
 \DescribeMacro{\overline}
-The |\underline| macro is redefined to allow line-breaks using the |ulem| package \cite{ulem}.
+The |\underline| macro is redefined to allow line-breaks using the \software{ulem} package \cite{ulem}.
 The |\overline| macro is extended to also \overline{overline} text outside of math environments.
 
 \DescribeMacro{\useparskip}
@@ -261,8 +281,8 @@
 \subsubsection{References and footnotes}
 
 \DescribeMacro{\cref}
-References are extended with the |cleveref| package \cite{cleveref}, which allows to \eg just type |\cref|\marg{key}  in order to write \enquote{figure 1}.
-Furthermore, the |cleveref| package allows to reference multiple objects within one |\cref|\marg{key1,key2}.
+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}.
+Furthermore, the \software{cleveref} package allows to reference multiple objects within one |\cref|\marg{key1,key2}.
 
 \DescribeMacro{\cite}
 Citations are adjusted to not start on a new line in order to avoid the repeated use of |~\cite|\marg{key}.
@@ -270,7 +290,7 @@
 \DescribeMacro{\ref}
 \DescribeMacro{\eqref}
 \DescribeMacro{\subref}
-References are also adjusted to not start on a new line and are redefined in order to handle multiple references at once.
+References are also adjusted to not start on a new line.
 
 \DescribeMacro{\footnote}
 Footnotes are adjusted to swallow white space before the footnote mark and at the beginning of the footnote text.
@@ -294,22 +314,21 @@
 
 \subsection{Math}
 
-The |mathtools| \cite{mathtools} and |amssymb| \cite{amsfonts} packages are loaded.
-They in turn load the \hologo{AmSLaTeX} |amsmath| \cite{amsmath} and |amsfonts| \cite{amsfonts} packages.
+The \software{mathtools} \cite{mathtools} and \software{amssymb} \cite{amsfonts} packages are loaded.
+They in turn load the \hologo{AmSLaTeX} \software{amsmath} \cite{amsmath} and \software{amsfonts} \cite{amsfonts} packages.
 \DescribeMacro{\mathbf}
-Bold math, via |\mathbf| is improved by the |bm| package \cite{bm}, \ie ($ A  b  \Gamma \delta \mathbf A \mathbf b \mathbf \Gamma \mathbf \delta$).
+Bold math, via |\mathbf| is improved by the \software{bm} package \cite{bm}, \ie ($ A  b  \Gamma \delta \mathbf A \mathbf b \mathbf \Gamma \mathbf \delta$).
 Macros switching to |bfseries| such as |\section|\marg{text} are ensured to also typeset math in bold.
 This may cause trouble if bold symbols carry an additional non-implicit meaning.
 \DescribeMacro{\text}
 The |\text|\marg{text} macro makes it possible to write text within math mode, \ie ($ \text A  \text b  \text \Gamma \text \delta \text{\textbf A} \text{\textbf b} \text{\textbf \Gamma} \text{\textbf \delta}$).
-The often used |\mathrm|\marg{text} and |{\rm|\meta{text}|}| macros are \emph{not} the correct tool for this purpose, as they switch to roman font shape.
-This behaviour conflicts \eg with the |sansserif| package option.
+This behaviour conflicts \eg with the \software{sansserif} package option.
 \DescribeMacro{\mathsf}
 The math sans serif alphabet is redefined to be italic sans serif if the main text is serif and italic serif if the main text is sans serif, \ie ($\mathsf A \mathsf b \mathsf \Gamma \mathsf \delta \mathbf{\mathsf A} \mathbf{\mathsf b} \mathbf{\mathsf \Gamma} \mathbf{\mathsf \delta}$).
 \DescribeMacro{\mathscr}
 The |\mathcal| font \ie ($\mathcal{ABCD}$) is accompanied by the |\mathscr| font \ie ($\mathscr{ABCD}$).
 \DescribeMacro{\mathbb}
-The |\mathbb| font is improved by the |doublestroke| package \cite{dsfont} and adjusted depending on the |sansserif| option \ie ($\mathbb{Ah1}$).
+The |\mathbb| font is improved by the \software{doublestroke} package \cite{dsfont} and adjusted depending on the |sansserif| option \ie ($\mathbb{Ah1}$).
 \DescribeMacro{\mathfrak}
 Finally, the |\mathfrak| font is also available \ie ($\mathfrak{AaBb12}$).
 Details about the font handling in \hologo{TeX} can be found in \ccite{fntguide}.
@@ -322,7 +341,7 @@
 Diagonal matrix |\diag| and signum |\sgn| operators are defined.
 
 \DescribeMacro{\mathdef}
-The |\mathdef|\marg{name}\oarg{arguments}\marg{code} macro (re-)defines macros only within math mode without changing the text mode definition.
+The |\mathdef|\marg{name}\oarg{arguments}\marg{code} macro \prefix{re}{defines} macros only within math mode without changing the text mode definition.
 
 \DescribeMacro{\i}
 \DescribeMacro{\d}
@@ -332,21 +351,20 @@
 For longer paper it can be useful to re-number the equation in accordance with the section numbering |\numberwithin{equation}{section}|.
 \DescribeMacro{subequations}
 In order to further reduce the size the of equation counter it can be useful to wrap |align| environments with multiple rows in a |subequations| environment.
-Both macros are provided by the |amsmath| package.
+Both macros are provided by the \software{amsmath} package.
 
 \DescribeMacro{eqnarray}
 The depreciated |eqnarray| environment is undefined as long this behaviour is not prevented by the |eqnarray| package option.
-The |split|, |multline|, |align|, |multlined|, |aligned|, |alignedat|, and |cases| environments of the |amsmath| and |mathtools| packages should be used instead.
+The |split|, |multline|, |align|, |multlined|, |aligned|, |alignedat|, and |cases| environments of the \software{amsmath} and \software{mathtools} packages should be used instead.
 
 \DescribeMacro{equation}
 Use the |equation| environment for short equations.
-
 \begin{columns}
-|\begin{equation}|
-
-| left = right \ .|
-
-|\end{equation}|
+\begin{verbatim}
+\begin{equation}
+  left = right \ .
+\end{equation}
+\end{verbatim}
 \column
 \begin{equation}
 \framebox[2em]{left\strut} = \framebox[7em]{right\strut} \ .
@@ -355,33 +373,29 @@
 
 \DescribeMacro{multline}
 Use the |multline| environment for longer equations.
-
 \begin{columns}
-|\begin{multline}|
-
-| left = right 1 \\|
-
-| + right 2 \ .|
-
-|\end{multline}|
+\begin{verbatim}
+\begin{multline}
+  left = right 1 \\
+  + right 2 \ .
+\end{multline}
+\end{verbatim}
 \column
 \begin{multline}
 \framebox[2em]{left\strut} = \framebox[7em]{right 1\strut} \\
 \framebox[7em]{+ right 2\strut} \ .
-  \end{multline}
+\end{multline}
 \end{columns}
 
 \DescribeMacro{split}
 Use the |split| sub environment for equations in which multiple equal signs should be aligned.
-
 \begin{columns}
-|\begin{equation} \begin{split}|
-
-| left &= right 1 \\|
-
-| &= right 2 \ .|
-
-|\end{split} \end{equation}|
+\begin{verbatim}
+\begin{equation} \begin{split}
+  left &= right 1 \\
+  &= right 2 \ .
+\end{split} \end{equation}
+\end{verbatim}
 \column
 \begin{equation}
 \begin{split}
@@ -393,18 +407,15 @@
 
 \DescribeMacro{align}
 Use the |align| environment for the vertical alignment and horizontal distribution of multiple equations.
-
 \begin{columns}
-|\begin{subequations}|
-|\begin{align}|
-
-| left &= right \ , &|
-| left &= right \ , \\|
-| left &= right \ , &|
-| left &= right \ .|
-
-|\end{align}|
-|\end{subequations}|
+\begin{verbatim}
+\begin{subequations} \begin{align}
+  left &= right \ , &
+  left &= right \ , \\
+  left &= right \ , &
+  left &= right \ .
+\end{align} \end{subequations}
+\end{verbatim}
 \column
 \begin{subequations}
 \begin{align}
@@ -421,15 +432,15 @@
 
 \DescribeMacro{multlined}
 Use the |multlined| environment if either |split| or |align| contain very long lines.
-
 \begin{columns}
-|\begin{equation} \begin{split}|
-
-| left &= right 1 \\ &=|
-| \begin{multlined}[t]|
-|  right 2 \\ + right 3 \ .|
-| \end{multlined}|
-|\end{split} \end{equation}|
+\begin{verbatim}
+\begin{equation} \begin{split}
+  left &= right 1 \\ &=
+  \begin{multlined}[t]
+     right 2 \\ + right 3 \ .
+  \end{multlined}
+\end{split} \end{equation}
+\end{verbatim}
 \column
 \begin{equation}
 \begin{split}
@@ -444,18 +455,16 @@
 
 \DescribeMacro{alignat}
 Use the |alignat| environment together with the |\mathllap| macro for the alignment of multiple equations with vastly different lengths.
-
 \begin{columns}
-|\begin{subequations}|
-|\begin{alignat}{2}|
-
-| left &= long right && \ , \\|
-
-| le. 2 &= ri. 2 \ , &|
-
-| \mathllap{le. 3 = ri. 3} & \ .|
-|\end{alignat}|
-|\end{subequations}|
+\begin{verbatim}
+\begin{subequations}
+\begin{alignat}{2}
+  left &= long right && \ , \\
+  le. 2 &= ri. 2 \ , &
+  \mathllap{le. 3 = ri. 3} & \ .
+\end{alignat}
+\end{subequations}
+\end{verbatim}
 \column
 \begin{subequations}
 \begin{alignat}{2}
@@ -473,7 +482,7 @@
 
 \subsubsection{Physics}
 
-Greek letters are adjusted to always be italic and upright in math and text mode, respectively, using the |fixmath| \cite{fixmath} and |alphabeta| \cite{alphabeta} packages.
+Greek letters are adjusted to always be italic and upright in math and text mode, respectively, using the \software{fixmath} \cite{fixmath} and \software{alphabeta} \cite{alphabeta} packages.
 This allows differentiations like
 \begin{align}
 \sigma &= \unit[5]{fb} \ , & &\text{at \unit[5]{\sigma} C.L.} \ , & \mu &= \unit[5]{cm} \ , & l &= \text{\unit[5]{\mu m}} \ ,
@@ -486,7 +495,7 @@
 \DescribeMacro{\pdv}
 \DescribeMacro{\comm}
 \DescribeMacro{\order}
-The |physics| package \cite{physics} provides additional macros such as
+The \software{physics} package \cite{physics} provides additional macros such as
 \begin{align}
 &\ev{\phi} \ ,
 &&\pdv[n]{f}{x} \ ,
@@ -498,7 +507,7 @@
 
 \DescribeMacro{\cancel}
 \DescribeMacro{\slashed}
-The |\cancel|\marg{characters} macro from the |cancel| \cite{cancel} package and the |\slashed| \marg{character} macro from the |slashed| \cite{slashed} package allow to $\cancel{\text{cancel}}$ math and use the Dirac slash notation \ie $\slashed \partial$, respectively.
+The |\cancel|\marg{characters} macro from the \software{cancel} package \cite{cancel} and the |\slashed| \marg{character} macro from the \software{slashed} package \cite{slashed} allow to $\cancel{\text{cancel}}$ math and use the Dirac slash notation \ie $\slashed \partial$, respectively.
 
 \DescribeMacro{\overleftright}
 A better looking over left right arrow is defined \ie $\overleftright{\partial}$.
@@ -505,7 +514,7 @@
 
 \DescribeMacro{\unit}
 \DescribeMacro{\inv}
-The correct spacing for units, \cf \cref{eq:greek}, is provided by the macro |\unit|\oarg{value} \marg{unit} from the |units| package \cite{units} which can also be used in text mode.
+The correct spacing for units, \cf \cref{eq:greek}, is provided by the macro |\unit|\oarg{value} \marg{unit} from the \software{units} package \cite{units} which can also be used in text mode.
 The macro |\inv|\oarg{power}\marg{text} allows to avoid math mode also for inverse units such as \unit[5]{\inv{fb}} typeset via |\unit[5]{\inv{fb}}|.
 
 \subsection{Floats}
@@ -531,12 +540,13 @@
 
 \begin{table}
 \begin{panels}{.6}
-\raggedright
-|\begin{panels}{.6}|\\
-|code|\\
-|\panel{.4}|\\
-|\begin{tabular}...\end{tabular}|\\
-|\end{panels}|\\
+\begin{verbatim}
+\begin{panels}{.6}
+  code
+\panel{.4}
+  \begin{tabular}...\end{tabular}
+\end{panels}
+\end{verbatim}
 \caption{Code for this panel environment.}
 \label{tab:panels}
 \panel{.4}
@@ -550,13 +560,13 @@
 \caption{The \protecting{|booktabs|} and \protecting{|multirow|} features.}
 \label{tab:booktabs}
 \end{panels}
-\caption{Example use of the \protecting{|panels|} environment in Panel \subref{tab:panels} and the features from the \protecting{|booktabs|} and \protecting{|multirow|} packages in Panel \subref{tab:booktabs}.
+\caption{Example use of the \protecting{|panels|} environment in Panel \subref{tab:panels} and the features from the \software{booktabs} and \software{multirow} packages in Panel \subref{tab:booktabs}.
 } \label{tab:table}
 \end{table}
 
 \DescribeEnv{panels}
 \DescribeMacro{\panel}
-The |panels| environment makes use of the |subcaption| package \cite{subcaption}.
+The |panels| environment makes use of the \software{subcaption} package \cite{subcaption}.
 It provides sub-floats and takes as mandatory argument either the number of sub-floats (default~2) or the width of the first sub-float as fraction of the |\linewidth|.
 Within the |\begin{panels}|\oarg{vertical alignment}\marg{width} environment the |\panel| macro initiates a new sub-float.
 In the case that the width of the first sub-float has been given as an optional argument to the |panels| environment the |\panel|\marg{width} macro takes the width of the next sub-float as mandatory argument.
@@ -563,11 +573,11 @@
 The example code is presented in \cref{tab:panels}.
 
 \DescribeEnv{tabular}
-The |booktabs| \cite{booktabs} and |multirow| \cite{multirow} packages are loaded enabling publication quality tabulars such as in \cref{tab:booktabs}.
+The \software{booktabs} \cite{booktabs} and \software{multirow} \cite{multirow} packages are loaded enabling publication quality tabulars such as in \cref{tab:booktabs}.
 
 \DescribeMacro{\graphic}
 \DescribeMacro{\graphics}
-The |graphicx| package \cite{graphicx} is loaded and the |\graphic|\oarg{width}\marg{figure} macro is defined, which is a wrapper for the |\includegraphics|\marg{figure} macro and takes the figure width as fraction of the |\linewidth| as optional argument (default~1).
+The \software{graphicx} package \cite{graphicx} is loaded and the |\graphic|\oarg{width}\marg{figure} macro is defined, which is a wrapper for the |\includegraphics|\marg{figure} macro and takes the figure width as fraction of the |\linewidth| as optional argument (default~1).
 If the graphics are located in a sub-folder its path can be indicated by |\graphics|\marg{subfolder}.
 
 \subsection{Bibliography}
@@ -574,7 +584,7 @@
 
 \DescribeMacro{\bibliography}
 \DescribeMacro{\printbibliography}
-The |biblatex| package \cite{biblatex} is loaded for bibliography management.
+The \software{biblatex} package \cite{biblatex} is loaded for bibliography management.
 The user has to add the line |\bibliography|\marg{my.bib} to the preamble of the document and |\printbibliography| at the end of the document.
 The bibliography is generated by \software{Biber} \cite{biber}.
 |biblatex| is extended to be able to cope with the |collaboration| and |reportNumber| fields provided by \online{https://inspirehep.net}{inspirehep.net} and a bug in the volume number is fixed.
@@ -581,24 +591,25 @@
 Additionally, the PubMed IDs are recognized and \online{https://ctan.org}{ctan.org}, \online{https://github.com}{github.com}, \online{https://gitlab.com}{gitlab.com}, \online{https://bitbucket.org}{bitbucket.org}, \online{https://www.launchpad.net}{launchpad.net}, \online{https://sourceforge.net}{sourceforge.net}, and \online{https://hepforge.org}{hepforge.org} are valid |eprinttype|s.
 \DescribeMacro{erratum}
 Errata can be included using the |related| feature.
+\begin{verbatim}
+\article{key1,
+  ...,
+  relatedtype="erratum",
+  related="key2",
+}
+\article{key2,
+  ...,
+}
+\end{verbatim}
 
-| \article{|\meta{key1}|,|\\
-|   |\dots|,|\\
-|   relatedtype="erratum",|\\
-|   related="|\meta{key2}|",|\\
-| }|\\
-| \article{|\meta{key2}|,|\\
-|   |\dots|,|\\
-| }|
-
 \section{Conclusion}
 
-The |hep-paper| package provides a matching selection of preloaded packages and additional macros enabling the user to focus on the content instead of the layout by reducing the amount of manual tasks.
+The \software{hep-paper} package provides a matching selection of preloaded packages and additional macros enabling the user to focus on the content instead of the layout by reducing the amount of manual tasks.
 The majority of the loaded packages are fairly lightweight, the others can be deactivated with package options.
 
 \DescribeMacro{arxiv-collector}
 \nolinkurl{arxiv.org} \cite{arxiv} requires the setup dependent |bbl| files instead of the original |bib| files, which causes trouble if the local \hologo{LaTeX} version differs from the one used by arXiv.
-The |arxiv-collector| python script \cite{arxiv-collector} alleviates this problem by collecting all files necessary for publication on arXiv (including figures).
+The \software{arxiv-collector} python script \cite{arxiv-collector} alleviates this problem by collecting all files necessary for publication on arXiv (including figures).
 
 \printbibliography
 

Modified: trunk/Master/texmf-dist/doc/latex/hep-paper/hep-paper-implementation.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/hep-paper/hep-paper-implementation.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/hep-paper/hep-paper-implementation.dtx	2020-10-01 21:05:35 UTC (rev 56502)
+++ trunk/Master/texmf-dist/source/latex/hep-paper/hep-paper-implementation.dtx	2020-10-01 21:05:52 UTC (rev 56503)
@@ -16,12 +16,14 @@
 % \fi
 %
 % \iffalse
-%
+
 %<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-%<package>\ProvidesPackage{hep-paper}[2020/08/01 v1.4 Publications in High Energy Physics]
-%<datamodel>\ProvidesFile{hep-paper.dbx}[2020/08/01 v1.4 HEP-Paper biblatex data model]
+%<package>\ProvidesPackage{hep-paper}[2020/10/01 v1.5 Publications in High Energy Physics]
+%<datamodel>\ProvidesFile{hep-paper.dbx}[2020/10/01 v1.5 HEP-Paper biblatex data model]
+%<documentation>\ProvidesFile{hep-paper-documentation.tex}[2020/10/01 v1.5 HEP-Paper documentation]
 %
 %<*documentation>
+
 \RequirePackage[l2tabu, orthodox]{nag}
 \documentclass{ltxdoc}
 
@@ -28,6 +30,7 @@
 \EnableCrossrefs
 \CodelineIndex
 \RecordChanges
+\def\MacroFont{\fontencoding\encodingdefault\fontfamily{lmtt}\fontseries\mddefault\fontshape\shapedefault\small}
 
 \MacroIndent=1.5em
 
@@ -37,10 +40,13 @@
 
 \acronym{PDF}{portable document format}
 \acronym{URL}{uniform resource locator}
+\acronym{CM}{computer modern}
+\acronym{LM}{latin modern}
 
 \usepackage{hologo}
 
 \newenvironment{columns}[1][.5]{%
+  \par\vspace{-\bigskipamount}%
   \begin{minipage}[t]{\linewidth}%
   \begin{minipage}[t]{#1\linewidth}%
   \newcommand{\column}{%
@@ -47,7 +53,7 @@
     \end{minipage}%
     \begin{minipage}[t]{\linewidth-#1\linewidth}%
   }%
-}{\end{minipage}\end{minipage}}
+}{\end{minipage}\end{minipage}\par}
 
 \setlength{\fboxsep}{1pt}
 %</documentation>
@@ -62,7 +68,7 @@
 %
 % \fi
 %
-% \CheckSum{1302}
+% \CheckSum{1551}
 %
 % \CharacterTable
 %  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -84,27 +90,31 @@
 % \changes{v1.1}{2020/01/01}{Transition to documented \hologo{LaTeX} source file.}
 % \changes{v1.2}{2020/03/01}{Introduction of package options.}
 % \changes{v1.3}{2020/05/01}{Inclusion of JHEP and JCAP package options. Fix of incompatibility with recent subcaption package version. Move of biblatex datamodel into its own file}
-% \changes{v1.4}{2020/08/01}{If possible the compatibility options are selected automatically. Inclusion of PubMed IDs in bibliography.}
+% \changes{v1.4}{2020/09/01}{If possible the compatibility options are selected automatically. Inclusion of PubMed IDs in bibliography.}
+% \changes{v1.5}{2020/10/01}{Reduce the numer of math alphabets used in sans serif mode. Add more title options such as a subtitle. Use standard class options.}
 %
 % \ifshort
 %<*documentation>
+% \fi
 %
-\begin{document}
-% \fi
-
 \GetFileInfo{hep-paper.sty}
 
-\title{The |hep-paper| package\thanks{This document corresponds to \protecting{|hep-paper|}~\fileversion.}}
+\title{The \software{hep-paper} package\thanks{This document corresponds to \software{hep-paper}~\fileversion.}}
+\subtitle{Publications in high energy physics}
 \author{Jan Hajer \email{jan.hajer at uclouvain.be}}
 \affiliation{Centre for Cosmology, Particle Physics and Phenomenology, Université catholique de Louvain, Louvain-la-Neuve B-1348, Belgium}
 \preprint{Preprint-Number}
-\date{\normalfont\filedate}
+\date{\filedate}
 
+% \ifshort
+\begin{document}
+% \fi
+
 \maketitle
 
 \begin{abstract}
-The |hep-paper| package aims to provide a single style file containing most configurations and macros necessary to write appealing publications in High Energy Physics.
-Instead of reinventing the wheel by introducing newly created macros |hep-paper| preferably loads third party packages as long as they are lightweight enough.
+The \software{hep-paper} package aims to provide a single style file containing most configurations and macros necessary to write appealing publications in High Energy Physics.
+Instead of reinventing the wheel by introducing newly created macros \software{hep-paper} preferably loads third party packages as long as they are lightweight enough.
 \end{abstract}
 
 \tableofcontents\clearpage
@@ -113,16 +123,16 @@
 
 \section{Introduction}
 
-For usual publications it is enough to load additionally to the |article| class without optional arguments only the |hep-paper| package \cite{hep-paper}.
-
-| \documentclass{article}|\\
-| \usepackage{hep-paper}|
-
-The most notable changes after loading the |hep-paper| package is the change of some \hologo{LaTeX} defaults.
+For usual publications it is enough to load additionally to the |article| class without optional arguments only the \software{hep-paper} package \cite{hep-paper}.
+\begin{verbatim}
+\documentclass{article}
+\usepackage{hep-paper}
+\end{verbatim}
+The most notable changes after loading the \software{hep-paper} package is the change of some \hologo{LaTeX} defaults.
 The paper and font sizes are set to A4 and \unit[11]{pt}, respectively.
-Additionally, the paper geometry is set to the values known from the (depreciated) |a4wide| package \cite{a4wide} using the |geometry| package \cite{geometry}.
-Furthermore, the font is changed to |lmodern| \cite{lmodern} with |microtype| \cite{microtype} optimizations.
-Finally, \PDF hyperlinks are implemented with the |hyperref| package \cite{hyperref}.
+Additionally, the paper geometry is adjusted using the \software{geometry} package \cite{geometry}.
+Furthermore, the font is changed to \LM using the \software{lmodern} package \cite{lmodern} with \software{microtype} \cite{microtype} optimizations.
+Finally, \PDF hyperlinks are implemented with the \software{hyperref} package \cite{hyperref}.
 
 \subsection{Options}
 
@@ -143,18 +153,24 @@
 The default is \unit[11]{pt}.
 
 \DescribeMacro{lang}
-The |lang|=\meta{name} option switches the document language to the chosen value.
-The possible values are given by the |babel| package \cite{babel}.
+The |lang|=\meta{name} option switches the document language to one of the values values provided by the \software{babel} package \cite{babel}.
 The default is |british|.
 
 \DescribeMacro{sansserif}
-The |sansserif| option switches the document including math to the sans serif font shape.
+The |sansserif| option switches the document including math to sans serif font shape.
 
 \DescribeMacro{parskip}
-The |parskip| option makes use of the |parskip| package \cite{parskip} and changes how two paragraphs are separated from each other.
+The |parskip| option changes how paragraphs are separated from each other using the \software{parskip} package \cite{parskip}.
 The \hologo{LaTeX} default is separation via indentation the |parskip| option switches to separation via vertical space.
 \footnote{Although the |parskip| option is used for this document, it is recommended only for very few document types such as technical manuals or answers to referees.}
 
+\DescribeMacro{symbols}
+The |symbols|=\meta{family} set the family of the symbol fonts.
+|symbols=ams| loads two \hologo{AmS} fonts \cite{amsfonts} and the \software{bm} bold fonts.
+The default setting replaces additionally the blackboard font with the \software{dsfont} \cite{dsfont}.
+|symbols=minion| switches the symbol fonts to the Adobe MinionPro companion font from the \software{MnSymbol} package \cite{MnSymbol}.
+|symbols=false| deactivates additional symbol fonts.
+
 \subsubsection{Deactivation}
 
 The \software{hep-paper} package loads few bigger packages which have a large impact on the document.
@@ -167,14 +183,14 @@
 The |title=false| option deactivates the title page adjustments.
 
 \DescribeMacro{bibliography}
-The |bibliography|=\meta{key} option prevents the automatic loading of the |biblatex| package \cite{biblatex} if \meta{key}=|false|.
-Otherwise the \meta{key} is passed as |style| string to the |biblatex| package.
+The |bibliography|=\meta{key} option prevents the automatic loading of the \software{biblatex} package \cite{biblatex} if \meta{key}=|false|.
+Otherwise the \meta{key} is passed as |style| string to the \software{biblatex} package.
 
 \DescribeMacro{glossaries}
-The |glossaries=false| option deactives acronyms and the use of the |glossaries| package \cite{glossaries}.
+The |glossaries=false| option deactives acronyms and the use of the \software{glossaries} package \cite{glossaries}.
 
 \DescribeMacro{references}
-The |references=false| option prevents the |cleveref| pacakge \cite{cleveref} from being loaded and deactivates further redefinitions of reference macros.
+The |references=false| option prevents the \software{cleveref} package \cite{cleveref} from being loaded and deactivates further redefinitions of reference macros.
 
 \subsubsection{Compatibility}
 
@@ -211,20 +227,24 @@
 
 \subsection{Title page}
 
+\DescribeMacro{\title}
+The \PDF meta information is set according to the |\title|\marg{text} and |\author| \marg{text} information.
+
+\DescribeMacro{\subtitle}
+The |\subtitle|\marg{subtitle} macro is defined using the \software{titling} package \cite{titling}.
+
 \DescribeMacro{\author}
 \DescribeMacro{\affiliation}
 \DescribeMacro{\email}
-In order to facilitate multiple authors with different affiliations the |authblk| package \cite{authblk} is loaded.
+In order to facilitate multiple authors with different affiliations the \software{authblk} package \cite{authblk} is loaded.
 The following lines add \eg two authors with different affiliations
+\begin{verbatim}
+\author[1]{Author one \email{email one}}
+\affiliation[1]{Affiliation one}
+\author[2]{Author two \email{email two}}
+\affiliation[1,2]{Affiliation two}
+\end{verbatim}
 
-| \author[1]{Author one \email{Email one}}|\\
-| \affiliation[1]{Affiliation one}|\\
-| \author[2]{Author two \email{Email two}}|\\
-| \affiliation[1,2]{Affiliation two}|
-
-\DescribeMacro{\title}
-The \PDF meta information is set according to the |\title|\marg{text} and |\author| \marg{text} information.
-
 \DescribeMacro{\preprint}
 The |\preprint|\marg{numer} macro places a pre-print number in the upper right corner of the title page.
 
@@ -231,9 +251,16 @@
 \DescribeEnv{abstract}
 The |abstract| environment is adjusted to not start with an indentation.
 
+\DescribeMacro{\titlefont}
+\DescribeMacro{\subtitlefont}
+\DescribeMacro{\authorfont}
+\DescribeMacro{\affiliationfont}
+\DescribeMacro{\preprintfont}
+Various title font macros are defined, allowing to change the appearance of the |\maketitle| output.
+
 \subsection{Text}
 
-Hyphenation is provided by the |babel| package \cite{babel} and quotation commands are provided by the |csquotes| package \cite{csquotes} recommended by the |babel| package.
+Hyphenation is provided by the \software{babel} package \cite{babel} and quotation commands are provided by the \software{csquotes} package \cite{csquotes} recommended by the \software{babel} package.
 \DescribeMacro{\enquote}
 \DescribeMacro{\MakeOuterQuote}
 The latter package provides the convenient macros |\enquote|\marg{text} and |\MakeOuterQuote{"}| allowing to leave the choice of quotation marks to \hologo{LaTeX} and use |"| instead of the pair |``| and |''|, respectively.
@@ -240,7 +267,7 @@
 
 \DescribeMacro{\eg}
 \DescribeMacro{\vs}
-The |foreign| package \cite{foreign} defines macros such as |\eg|, |\ie|, |\cf|, and |\vs| which are typeset as \eg, \ie, \cf, and \vs.
+The \software{foreign} package \cite{foreign} defines macros such as |\eg|, |\ie|, |\cf|, and |\vs| which are typeset as \eg, \ie, \cf, and \vs.
 
 \DescribeMacro{\no}
 The |\no|\marg{number} macro is typeset as \no{123}.
@@ -251,20 +278,19 @@
 \DescribeMacro{\online}
 The |\online|\marg{url}\marg{text} macro combines the features of the |\href|\marg{url} \marg{text} \cite{hyperref} and the |\url|\marg{text} \cite{url} macros, resulting in \eg \online{https://ctan.org/pkg/hep-paper}{ctan.org/pkg/hep-paper}.
 
-The |inlinelist| and |enumdescript| environments are defined using the |enumitem| package \cite{enumitem}.
 
 \DescribeMacro{inlinelist}
+\DescribeMacro{enumdescript}
+The |inlinelist| and |enumdescript| environments are defined using the \software{enumitem} package \cite{enumitem}.
 \begin{columns}
-|The three main points are|
-|\begin{inlinelist}|
-
-| \item one|
-
-| \item two|
-
-| \item three|
-
-|\end{inlinelist}|
+\begin{verbatim}
+The three main points are
+\begin{inlinelist}
+  \item one
+  \item two
+  \item three
+\end{inlinelist}
+\end{verbatim}
 \column
 The three main points are
 \begin{inlinelist}
@@ -273,18 +299,15 @@
  \item three
 \end{inlinelist}
 \end{columns}
-
-\DescribeMacro{enumdescript}
+\vspace{4ex}
 \begin{columns}[.6]
-|\begin{enumdescript}[label=\Roman*)]|
-
-| \item{First} one|
-
-| \item{Second} two|
-
-| \item{Third} three|
-
-|\end{enumdescript}|
+\begin{verbatim}
+\begin{enumdescript}[label=\Roman*)]
+  \item{First} one
+  \item{Second} two
+  \item{Third} three
+\end{enumdescript}
+\end{verbatim}
 \column
 \begin{enumdescript}[label=\Roman*)]
  \item{First} one
@@ -294,11 +317,11 @@
 \end{columns}
 
 \DescribeMacro{\textsc}
-A bold versions \textbf{\textsc{Small Caps}} and a sans serif version of \textsf{\textsc{Small Caps}} is provided, using the |sansmathfonts| package \cite{sansmathfonts}.
+A bold versions \textbf{\textsc{Small Caps}} and a sans serif version of \textsf{\textsc{Small Caps}} based on the \CM font is provided, the latter using the \software{sansmathfonts} package \cite{sansmathfonts}.
 
 \DescribeMacro{\underline}
 \DescribeMacro{\overline}
-The |\underline| macro is redefined to allow line-breaks using the |ulem| package \cite{ulem}.
+The |\underline| macro is redefined to allow line-breaks using the \software{ulem} package \cite{ulem}.
 The |\overline| macro is extended to also \overline{overline} text outside of math environments.
 
 \DescribeMacro{\useparskip}
@@ -308,8 +331,8 @@
 \subsubsection{References and footnotes}
 
 \DescribeMacro{\cref}
-References are extended with the |cleveref| package \cite{cleveref}, which allows to \eg just type |\cref|\marg{key}  in order to write \enquote{figure 1}.
-Furthermore, the |cleveref| package allows to reference multiple objects within one |\cref|\marg{key1,key2}.
+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}.
+Furthermore, the \software{cleveref} package allows to reference multiple objects within one |\cref|\marg{key1,key2}.
 
 \DescribeMacro{\cite}
 Citations are adjusted to not start on a new line in order to avoid the repeated use of |~\cite|\marg{key}.
@@ -317,7 +340,7 @@
 \DescribeMacro{\ref}
 \DescribeMacro{\eqref}
 \DescribeMacro{\subref}
-References are also adjusted to not start on a new line and are redefined in order to handle multiple references at once.
+References are also adjusted to not start on a new line.
 
 \DescribeMacro{\footnote}
 Footnotes are adjusted to swallow white space before the footnote mark and at the beginning of the footnote text.
@@ -341,22 +364,21 @@
 
 \subsection{Math}
 
-The |mathtools| \cite{mathtools} and |amssymb| \cite{amsfonts} packages are loaded.
-They in turn load the \hologo{AmSLaTeX} |amsmath| \cite{amsmath} and |amsfonts| \cite{amsfonts} packages.
+The \software{mathtools} \cite{mathtools} and \software{amssymb} \cite{amsfonts} packages are loaded.
+They in turn load the \hologo{AmSLaTeX} \software{amsmath} \cite{amsmath} and \software{amsfonts} \cite{amsfonts} packages.
 \DescribeMacro{\mathbf}
-Bold math, via |\mathbf| is improved by the |bm| package \cite{bm}, \ie ($ A  b  \Gamma \delta \mathbf A \mathbf b \mathbf \Gamma \mathbf \delta$).
+Bold math, via |\mathbf| is improved by the \software{bm} package \cite{bm}, \ie ($ A  b  \Gamma \delta \mathbf A \mathbf b \mathbf \Gamma \mathbf \delta$).
 Macros switching to |bfseries| such as |\section|\marg{text} are ensured to also typeset math in bold.
 This may cause trouble if bold symbols carry an additional non-implicit meaning.
 \DescribeMacro{\text}
 The |\text|\marg{text} macro makes it possible to write text within math mode, \ie ($ \text A  \text b  \text \Gamma \text \delta \text{\textbf A} \text{\textbf b} \text{\textbf \Gamma} \text{\textbf \delta}$).
-The often used |\mathrm|\marg{text} and |{\rm|\meta{text}|}| macros are \emph{not} the correct tool for this purpose, as they switch to roman font shape.
-This behaviour conflicts \eg with the |sansserif| package option.
+This behaviour conflicts \eg with the \software{sansserif} package option.
 \DescribeMacro{\mathsf}
 The math sans serif alphabet is redefined to be italic sans serif if the main text is serif and italic serif if the main text is sans serif, \ie ($\mathsf A \mathsf b \mathsf \Gamma \mathsf \delta \mathbf{\mathsf A} \mathbf{\mathsf b} \mathbf{\mathsf \Gamma} \mathbf{\mathsf \delta}$).
 \DescribeMacro{\mathscr}
 The |\mathcal| font \ie ($\mathcal{ABCD}$) is accompanied by the |\mathscr| font \ie ($\mathscr{ABCD}$).
 \DescribeMacro{\mathbb}
-The |\mathbb| font is improved by the |doublestroke| package \cite{dsfont} and adjusted depending on the |sansserif| option \ie ($\mathbb{Ah1}$).
+The |\mathbb| font is improved by the \software{doublestroke} package \cite{dsfont} and adjusted depending on the |sansserif| option \ie ($\mathbb{Ah1}$).
 \DescribeMacro{\mathfrak}
 Finally, the |\mathfrak| font is also available \ie ($\mathfrak{AaBb12}$).
 Details about the font handling in \hologo{TeX} can be found in \ccite{fntguide}.
@@ -369,7 +391,7 @@
 Diagonal matrix |\diag| and signum |\sgn| operators are defined.
 
 \DescribeMacro{\mathdef}
-The |\mathdef|\marg{name}\oarg{arguments}\marg{code} macro (re-)defines macros only within math mode without changing the text mode definition.
+The |\mathdef|\marg{name}\oarg{arguments}\marg{code} macro \prefix{re}{defines} macros only within math mode without changing the text mode definition.
 
 \DescribeMacro{\i}
 \DescribeMacro{\d}
@@ -379,21 +401,20 @@
 For longer paper it can be useful to re-number the equation in accordance with the section numbering |\numberwithin{equation}{section}|.
 \DescribeMacro{subequations}
 In order to further reduce the size the of equation counter it can be useful to wrap |align| environments with multiple rows in a |subequations| environment.
-Both macros are provided by the |amsmath| package.
+Both macros are provided by the \software{amsmath} package.
 
 \DescribeMacro{eqnarray}
 The depreciated |eqnarray| environment is undefined as long this behaviour is not prevented by the |eqnarray| package option.
-The |split|, |multline|, |align|, |multlined|, |aligned|, |alignedat|, and |cases| environments of the |amsmath| and |mathtools| packages should be used instead.
+The |split|, |multline|, |align|, |multlined|, |aligned|, |alignedat|, and |cases| environments of the \software{amsmath} and \software{mathtools} packages should be used instead.
 
 \DescribeMacro{equation}
 Use the |equation| environment for short equations.
-
 \begin{columns}
-|\begin{equation}|
-
-| left = right \ .|
-
-|\end{equation}|
+\begin{verbatim}
+\begin{equation}
+  left = right \ .
+\end{equation}
+\end{verbatim}
 \column
 \begin{equation}
 \framebox[2em]{left\strut} = \framebox[7em]{right\strut} \ .
@@ -402,33 +423,29 @@
 
 \DescribeMacro{multline}
 Use the |multline| environment for longer equations.
-
 \begin{columns}
-|\begin{multline}|
-
-| left = right 1 \\|
-
-| + right 2 \ .|
-
-|\end{multline}|
+\begin{verbatim}
+\begin{multline}
+  left = right 1 \\
+  + right 2 \ .
+\end{multline}
+\end{verbatim}
 \column
 \begin{multline}
 \framebox[2em]{left\strut} = \framebox[7em]{right 1\strut} \\
 \framebox[7em]{+ right 2\strut} \ .
-  \end{multline}
+\end{multline}
 \end{columns}
 
 \DescribeMacro{split}
 Use the |split| sub environment for equations in which multiple equal signs should be aligned.
-
 \begin{columns}
-|\begin{equation} \begin{split}|
-
-| left &= right 1 \\|
-
-| &= right 2 \ .|
-
-|\end{split} \end{equation}|
+\begin{verbatim}
+\begin{equation} \begin{split}
+  left &= right 1 \\
+  &= right 2 \ .
+\end{split} \end{equation}
+\end{verbatim}
 \column
 \begin{equation}
 \begin{split}
@@ -440,18 +457,15 @@
 
 \DescribeMacro{align}
 Use the |align| environment for the vertical alignment and horizontal distribution of multiple equations.
-
 \begin{columns}
-|\begin{subequations}|
-|\begin{align}|
-
-| left &= right \ , &|
-| left &= right \ , \\|
-| left &= right \ , &|
-| left &= right \ .|
-
-|\end{align}|
-|\end{subequations}|
+\begin{verbatim}
+\begin{subequations} \begin{align}
+  left &= right \ , &
+  left &= right \ , \\
+  left &= right \ , &
+  left &= right \ .
+\end{align} \end{subequations}
+\end{verbatim}
 \column
 \begin{subequations}
 \begin{align}
@@ -468,15 +482,15 @@
 
 \DescribeMacro{multlined}
 Use the |multlined| environment if either |split| or |align| contain very long lines.
-
 \begin{columns}
-|\begin{equation} \begin{split}|
-
-| left &= right 1 \\ &=|
-| \begin{multlined}[t]|
-|  right 2 \\ + right 3 \ .|
-| \end{multlined}|
-|\end{split} \end{equation}|
+\begin{verbatim}
+\begin{equation} \begin{split}
+  left &= right 1 \\ &=
+  \begin{multlined}[t]
+     right 2 \\ + right 3 \ .
+  \end{multlined}
+\end{split} \end{equation}
+\end{verbatim}
 \column
 \begin{equation}
 \begin{split}
@@ -491,18 +505,16 @@
 
 \DescribeMacro{alignat}
 Use the |alignat| environment together with the |\mathllap| macro for the alignment of multiple equations with vastly different lengths.
-
 \begin{columns}
-|\begin{subequations}|
-|\begin{alignat}{2}|
-
-| left &= long right && \ , \\|
-
-| le. 2 &= ri. 2 \ , &|
-
-| \mathllap{le. 3 = ri. 3} & \ .|
-|\end{alignat}|
-|\end{subequations}|
+\begin{verbatim}
+\begin{subequations}
+\begin{alignat}{2}
+  left &= long right && \ , \\
+  le. 2 &= ri. 2 \ , &
+  \mathllap{le. 3 = ri. 3} & \ .
+\end{alignat}
+\end{subequations}
+\end{verbatim}
 \column
 \begin{subequations}
 \begin{alignat}{2}
@@ -520,7 +532,7 @@
 
 \subsubsection{Physics}
 
-Greek letters are adjusted to always be italic and upright in math and text mode, respectively, using the |fixmath| \cite{fixmath} and |alphabeta| \cite{alphabeta} packages.
+Greek letters are adjusted to always be italic and upright in math and text mode, respectively, using the \software{fixmath} \cite{fixmath} and \software{alphabeta} \cite{alphabeta} packages.
 This allows differentiations like
 \begin{align}
 \sigma &= \unit[5]{fb} \ , & &\text{at \unit[5]{\sigma} C.L.} \ , & \mu &= \unit[5]{cm} \ , & l &= \text{\unit[5]{\mu m}} \ ,
@@ -533,7 +545,7 @@
 \DescribeMacro{\pdv}
 \DescribeMacro{\comm}
 \DescribeMacro{\order}
-The |physics| package \cite{physics} provides additional macros such as
+The \software{physics} package \cite{physics} provides additional macros such as
 \begin{align}
 &\ev{\phi} \ ,
 &&\pdv[n]{f}{x} \ ,
@@ -545,7 +557,7 @@
 
 \DescribeMacro{\cancel}
 \DescribeMacro{\slashed}
-The |\cancel|\marg{characters} macro from the |cancel| \cite{cancel} package and the |\slashed| \marg{character} macro from the |slashed| \cite{slashed} package allow to $\cancel{\text{cancel}}$ math and use the Dirac slash notation \ie $\slashed \partial$, respectively.
+The |\cancel|\marg{characters} macro from the \software{cancel} package \cite{cancel} and the |\slashed| \marg{character} macro from the \software{slashed} package \cite{slashed} allow to $\cancel{\text{cancel}}$ math and use the Dirac slash notation \ie $\slashed \partial$, respectively.
 
 \DescribeMacro{\overleftright}
 A better looking over left right arrow is defined \ie $\overleftright{\partial}$.
@@ -552,7 +564,7 @@
 
 \DescribeMacro{\unit}
 \DescribeMacro{\inv}
-The correct spacing for units, \cf \cref{eq:greek}, is provided by the macro |\unit|\oarg{value} \marg{unit} from the |units| package \cite{units} which can also be used in text mode.
+The correct spacing for units, \cf \cref{eq:greek}, is provided by the macro |\unit|\oarg{value} \marg{unit} from the \software{units} package \cite{units} which can also be used in text mode.
 The macro |\inv|\oarg{power}\marg{text} allows to avoid math mode also for inverse units such as \unit[5]{\inv{fb}} typeset via |\unit[5]{\inv{fb}}|.
 
 \subsection{Floats}
@@ -578,12 +590,13 @@
 
 \begin{table}
 \begin{panels}{.6}
-\raggedright
-|\begin{panels}{.6}|\\
-|code|\\
-|\panel{.4}|\\
-|\begin{tabular}...\end{tabular}|\\
-|\end{panels}|\\
+\begin{verbatim}
+\begin{panels}{.6}
+  code
+\panel{.4}
+  \begin{tabular}...\end{tabular}
+\end{panels}
+\end{verbatim}
 \caption{Code for this panel environment.}
 \label{tab:panels}
 \panel{.4}
@@ -597,13 +610,13 @@
 \caption{The \protecting{|booktabs|} and \protecting{|multirow|} features.}
 \label{tab:booktabs}
 \end{panels}
-\caption{Example use of the \protecting{|panels|} environment in Panel \subref{tab:panels} and the features from the \protecting{|booktabs|} and \protecting{|multirow|} packages in Panel \subref{tab:booktabs}.
+\caption{Example use of the \protecting{|panels|} environment in Panel \subref{tab:panels} and the features from the \software{booktabs} and \software{multirow} packages in Panel \subref{tab:booktabs}.
 } \label{tab:table}
 \end{table}
 
 \DescribeEnv{panels}
 \DescribeMacro{\panel}
-The |panels| environment makes use of the |subcaption| package \cite{subcaption}.
+The |panels| environment makes use of the \software{subcaption} package \cite{subcaption}.
 It provides sub-floats and takes as mandatory argument either the number of sub-floats (default~2) or the width of the first sub-float as fraction of the |\linewidth|.
 Within the |\begin{panels}|\oarg{vertical alignment}\marg{width} environment the |\panel| macro initiates a new sub-float.
 In the case that the width of the first sub-float has been given as an optional argument to the |panels| environment the |\panel|\marg{width} macro takes the width of the next sub-float as mandatory argument.
@@ -610,11 +623,11 @@
 The example code is presented in \cref{tab:panels}.
 
 \DescribeEnv{tabular}
-The |booktabs| \cite{booktabs} and |multirow| \cite{multirow} packages are loaded enabling publication quality tabulars such as in \cref{tab:booktabs}.
+The \software{booktabs} \cite{booktabs} and \software{multirow} \cite{multirow} packages are loaded enabling publication quality tabulars such as in \cref{tab:booktabs}.
 
 \DescribeMacro{\graphic}
 \DescribeMacro{\graphics}
-The |graphicx| package \cite{graphicx} is loaded and the |\graphic|\oarg{width}\marg{figure} macro is defined, which is a wrapper for the |\includegraphics|\marg{figure} macro and takes the figure width as fraction of the |\linewidth| as optional argument (default~1).
+The \software{graphicx} package \cite{graphicx} is loaded and the |\graphic|\oarg{width}\marg{figure} macro is defined, which is a wrapper for the |\includegraphics|\marg{figure} macro and takes the figure width as fraction of the |\linewidth| as optional argument (default~1).
 If the graphics are located in a sub-folder its path can be indicated by |\graphics|\marg{subfolder}.
 
 \subsection{Bibliography}
@@ -621,7 +634,7 @@
 
 \DescribeMacro{\bibliography}
 \DescribeMacro{\printbibliography}
-The |biblatex| package \cite{biblatex} is loaded for bibliography management.
+The \software{biblatex} package \cite{biblatex} is loaded for bibliography management.
 The user has to add the line |\bibliography|\marg{my.bib} to the preamble of the document and |\printbibliography| at the end of the document.
 The bibliography is generated by \software{Biber} \cite{biber}.
 |biblatex| is extended to be able to cope with the |collaboration| and |reportNumber| fields provided by \online{https://inspirehep.net}{inspirehep.net} and a bug in the volume number is fixed.
@@ -628,24 +641,25 @@
 Additionally, the PubMed IDs are recognized and \online{https://ctan.org}{ctan.org}, \online{https://github.com}{github.com}, \online{https://gitlab.com}{gitlab.com}, \online{https://bitbucket.org}{bitbucket.org}, \online{https://www.launchpad.net}{launchpad.net}, \online{https://sourceforge.net}{sourceforge.net}, and \online{https://hepforge.org}{hepforge.org} are valid |eprinttype|s.
 \DescribeMacro{erratum}
 Errata can be included using the |related| feature.
+\begin{verbatim}
+\article{key1,
+  ...,
+  relatedtype="erratum",
+  related="key2",
+}
+\article{key2,
+  ...,
+}
+\end{verbatim}
 
-| \article{|\meta{key1}|,|\\
-|   |\dots|,|\\
-|   relatedtype="erratum",|\\
-|   related="|\meta{key2}|",|\\
-| }|\\
-| \article{|\meta{key2}|,|\\
-|   |\dots|,|\\
-| }|
-
 \section{Conclusion}
 
-The |hep-paper| package provides a matching selection of preloaded packages and additional macros enabling the user to focus on the content instead of the layout by reducing the amount of manual tasks.
+The \software{hep-paper} package provides a matching selection of preloaded packages and additional macros enabling the user to focus on the content instead of the layout by reducing the amount of manual tasks.
 The majority of the loaded packages are fairly lightweight, the others can be deactivated with package options.
 
 \DescribeMacro{arxiv-collector}
 \nolinkurl{arxiv.org} \cite{arxiv} requires the setup dependent |bbl| files instead of the original |bib| files, which causes trouble if the local \hologo{LaTeX} version differs from the one used by arXiv.
-The |arxiv-collector| python script \cite{arxiv-collector} alleviates this problem by collecting all files necessary for publication on arXiv (including figures).
+The \software{arxiv-collector} python script \cite{arxiv-collector} alleviates this problem by collecting all files necessary for publication on arXiv (including figures).
 
 % \ifshort
 \printbibliography
@@ -668,9 +682,51 @@
 %<*package>
 % \fi
 %
+% \section{Allocation of math alphabets}
+%
+% Of the 16 available math alphabets, \hologo{TeX} loads four alphabets by default
+% \begin{enumdescript}[start=0]
+% \item{OT1} \label{it:math text} Text (latin, greek, numerals, text symbols)
+% \item{OML} \label{it:math italic} Math Italic (latin, greek, numerals, text symbols)
+% \item{OMS} \label{it:math symbol} Symbol (|\mathcal|, operators)
+% \item{OMX} \label{it:math extension} Math Extension (big operators, delimiters)
+% \end{enumdescript}
+% The text font \ref{it:math text}\strut\ of \CM is \textbf{cmr10} |\OT1/cmr/m/n/10|, which is relaced by \LM to be \textbf{rm-lmr10} |\OT1/lmr/m/n/10|, the |sansserif| option uses \textbf{rm-lmss10} |\OT1/lmss/m/n/10|.
+% The italic math font \ref{it:math italic} of \CM is \textbf{cmmi10} |\OML/cmm/m/it/|\allowbreak|10|, and is repalced by \LM to be \textbf{lmmi10} |\OML/lmm/m/it/10|, the |sansserif| options uses \textbf{cmbrmi10} |\OML/cmbrm/m/it/10| from the \software{cmbright} package \cite{cmbright}.
+% The symbol font \ref{it:math symbol}\strut\ of \CM is \textbf{cmsy10} |\OMS/cmsy/m/n/10|, and is repalced by \LM to be \textbf{lmsy10} |\OMS/lmsy/m/n/10|, the |sansserif| options uses \textbf{cmsssy10} |\OMS/cmsssy/m/n/10| from the \software{sansmathfonts} package \cite{sansmathfonts}.
+% The extension font \ref{it:math extension}\strut\ of \CM is \textbf{cmex10} |\OMX/cmex/m/n/5|, and is replaced by the \software{exscale} package \cite{exscale} to be \textbf{cmex10} |\OMX/cmex/m/n/10|, the |sansserif| option loads \textbf{cmssex10} |\OMX/cmssex/m/n/10|.
+% The \software{amssymb} (\software{amsfonts}) packages \cite{amssymb} load two more symbol fonts
+% \begin{enumdescript}[start=4]
+% \item{msam10} \label{it:math ams a} |\U/msa/m/n/10| AMS symbol font A (special math operators)
+% \item{msbm10} \label{it:math ams b} |\U/msb/m/n/10| AMS symbol font B (|\mathbb|, negated operators)
+% \end{enumdescript}
+% The |sansserif| option replaces them with \textbf{ssmsam10} |\U/ssmsa/m/n/10| and \textbf{ssmsbm10} |\U/ssmsb/m/n/10| from the \software{sansmathfonts} package \cite{sansmathfonts}, respectively.
+% The \software{bm} package \cite{bm} loads the bold version for the fonts \labelcref{it:math text,it:math italic,it:math symbol}.
+%
+% Other math alphabets are only loaded on demand, \eg |\mathsf| uses a sans serif font and |\mathbf| without \software{bm} uses a bold font.
+% The |\mathscr| macro uses the script font from the \software{mathrsfs} package \cite{mathrsfs}
+% \begin{enumdescript}[start=9]
+% \item{rsfs10} |\U/rsfs/m/n/10| Math script font (capital letters)
+% \end{enumdescript}
+% The |\mathbb| macro loads the double stroke font from the \software{dsfont} package \cite{dsfont}, this can be prevented with the |symbols=ams| option.
+% \begin{enumdescript}[start=10]
+% \item{dsrom10} |\U/dsrom/m/n/10| Double stroke font
+% \end{enumdescript}
+% The |\mathfrak| macro loads the fractur font from the \software{amssymb} package \cite{amssymb}
+% \begin{enumdescript}[start=11]
+% \item{eufm10} |\U/euf/m/n/10| Math fraktur (Basic Latin)
+% \end{enumdescript}
+%
+% The \software{hep-paper} package uses nine of the available 16 math alphabets.
+% This number can be reduced by three using |\newcommand{\bmmax}{0}| from the \software{bm} package \cite{bm}.
+%
+% The |symbols=minion| options replaces the fonts \labelcref{it:math symbol,it:math extension,it:math ams a,it:math ams b} with corresponding fonts from the \software{MnSymbol} package \cite{MnSymbol}.
+% Additionally, two more symbol alphabets are allocated, the \software{bm} package \cite{bm} loads one more font and now |\mathcal| triggers the use of one additional alphabet.
+% Hence, the minion option uses three to four more math alphabets than a usual setup.
+%
 % \section{Options}
 %
-% Load the |pdftexcmds| \cite{pdftexcmds} and |kvoptions| \cite{kvoptions} packages and define a |hep| namespace.
+% Load the \software{pdftexcmds} \cite{pdftexcmds} and \software{kvoptions} \cite{kvoptions} packages and define a |hep| namespace.
 %    \begin{macrocode}
 \RequirePackage{pdftexcmds}
 \RequirePackage{kvoptions}
@@ -697,7 +753,7 @@
 % \end{macro}
 %
 % \begin{macro}{lang}
-% Define the |lang| option, which takes the values provided by the |babel| package \cite{babel}.
+% Define the |lang| option, which takes the values provided by the \software{babel} package \cite{babel}.
 % Make |british| the default language.
 %    \begin{macrocode}
 \DeclareStringOption[british]{lang}
@@ -720,6 +776,13 @@
 %    \end{macrocode}
 % \end{macro}
 %
+% \begin{macro}{symbols}
+% Provide the option |symbols| allowing to switch the symbol font.
+%    \begin{macrocode}
+\DeclareStringOption[true]{symbols}
+%    \end{macrocode}
+% \end{macro}
+%
 % \subsection{Deactivation}
 %
 % \begin{macro}{defaults}
@@ -737,7 +800,7 @@
 % \end{macro}
 %
 % \begin{macro}{bibliography}
-% Provide the option |bibliography| for passing a |style| string to the |biblatex| package \cite{biblatex} or disabling the automatic loading of |biblatex|.
+% Provide the option |bibliography| for passing a |style| string to the \software{biblatex} package \cite{biblatex} or disabling the automatic loading of |biblatex|.
 %    \begin{macrocode}
 \DeclareStringOption[numeric-comp]{bibliography}
 %    \end{macrocode}
@@ -744,7 +807,7 @@
 % \end{macro}
 %
 % \begin{macro}{glossaries}
-% Provide the option |glossaries| able to turn of the use of the |glossaries| package \cite{glossaries}.
+% Provide the option |glossaries| able to turn of the use of the \software{glossaries} package \cite{glossaries}.
 %    \begin{macrocode}
 \DeclareBoolOption[true]{glossaries}
 %    \end{macrocode}
@@ -751,7 +814,7 @@
 % \end{macro}
 %
 % \begin{macro}{references}
-% Provide the option |references| for preventing the |cleveref| package from being loaded redefinitions of reference macros.
+% Provide the option |references| for preventing the \software{cleveref} package from being loaded redefinitions of reference macros.
 %    \begin{macrocode}
 \DeclareBoolOption[true]{references}
 %    \end{macrocode}
@@ -774,7 +837,7 @@
 % \end{macro}
 %
 % \begin{macro}{jhep}
-% Provide the option |jhep| for |JHEP| \cite{jhep} compatibility mode.
+% Provide the option |jhep| for JHEP \cite{jhep} compatibility mode.
 %    \begin{macrocode}
 \DeclareBoolOption[false]{jhep}
 %    \end{macrocode}
@@ -781,7 +844,7 @@
 % \end{macro}
 %
 % \begin{macro}{jcap}
-% Provide the option |jcap| for |JCAP| \cite{jcap} compatibility mode.
+% Provide the option |jcap| for JCAP \cite{jcap} compatibility mode.
 %    \begin{macrocode}
 \DeclareBoolOption[false]{jcap}
 %    \end{macrocode}
@@ -788,7 +851,7 @@
 % \end{macro}
 %
 % \begin{macro}{pos}
-% Provide the option |pos| for |PoS| compatibility mode.
+% Provide the option |pos| for PoS compatibility mode.
 %    \begin{macrocode}
 \DeclareBoolOption[false]{pos}
 %    \end{macrocode}
@@ -816,6 +879,22 @@
 \ProcessKeyvalOptions*
 %    \end{macrocode}
 %
+% Read the class options regarding font and paper size.
+%    \begin{macrocode}
+\def\hep at get@class#1.cls#2\relax{\def\hep at class{#1}}
+\def\hep at getclass{\expandafter\hep at get@class\@filelist\relax}
+\hep at getclass
+\@ifclasswith{\hep at class}{10pt}{\setkeys{hep}{font=10pt}}{}
+\@ifclasswith{\hep at class}{12pt}{\setkeys{hep}{font=12pt}}{}
+\@ifclasswith{\hep at class}{a5paper}{\setkeys{hep}{paper=a5}}{}
+\@ifclasswith{\hep at class}{b5paper}{\setkeys{hep}{paper=b5}}{}
+\@ifclasswith{\hep at class}{letterpaper}{\setkeys{hep}{paper=letter}}{}
+\@ifclasswith{\hep at class}{legalpaper}{\setkeys{hep}{paper=legal}}{}
+\@ifclasswith{\hep at class}{executivepaper}{%
+  \setkeys{hep}{paper=executive}%
+}{}
+%    \end{macrocode}
+%
 % \subsection{Set compatibility}
 %
 % Set the |pos| compatibility options.
@@ -832,6 +911,7 @@
 \@ifclassloaded{beamer}{\setkeys{hep}{beamer}}{}
 \ifhep at beamer
   \setkeys{hep}{defaults, title=false, references=false, sansserif}
+  \@ifpackageloaded{beamerbasefont}{\usefonttheme{professionalfonts}}{}
 \fi
 %    \end{macrocode}
 %
@@ -880,24 +960,15 @@
 
 % \section{Text}
 %
-% Load the |alphabeta| package \cite{alphabeta} first in order to archive the correct behaviour.
-% The |alphabeta| package provides upright Greek letters in text mode.
-%    \begin{macrocode}
-\RequirePackage{alphabeta}
-%    \end{macrocode}
-%
 % Set the whole text to sans serif if requested.
-% Load the |sansmathfonts| package \cite{sansmathfonts} first.
-% Although, most fonts will later be overwritten by the |lmodern| package \cite{lmodern} some mathematical objects are ensured to be in sans serif.
 %    \begin{macrocode}
 \ifhep at serif\else
-  \RequirePackage{sansmathfonts}
-  \renewcommand\familydefault{\sfdefault}
+  \renewcommand{\familydefault}{\sfdefault}
 \fi
 %    \end{macrocode}
 %
 % \begin{macro}{\ifxetexorluatex}
-% Load the |ifluatex| \cite{ifluatex} and |ifxetex| \cite{ifxetex} packages.
+% Load the \software{ifluatex} \cite{ifluatex} and \software{ifxetex} \cite{ifxetex} packages.
 % Define the |\ifxetexorluatex| conditional checking if the package is executed by \hologo{LuaLaTeX} or \hologo{XeLaTeX}.
 %    \begin{macrocode}
 \RequirePackage{ifluatex}
@@ -912,7 +983,7 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% Pick the correct font encoding depending on the engine used and load the |fontenc| package \cite{fontenc} with this encoding.
+% Pick the correct font encoding depending on the engine used and load the \software{fontenc} package \cite{fontenc} with this encoding.
 % For details of the font encoding see \cite{encguide}.
 %    \begin{macrocode}
 \ifxetexorluatex
@@ -922,21 +993,22 @@
 \fi
 \RequirePackage[\hep at encoding]{fontenc}
 %    \end{macrocode}
-% Fix the remaining coputer modern fonts \cite{fix-cm}, load the |lmodern| font \cite{lmodern}, the |textcomp| extension \cite{textcomp}, and the |microtype| font optimization \cite{microtype}.
+% Fix the remaining \CM fonts \cite{fix-cm}, load the \software{lmodern} font \cite{lmodern}, the |textcomp| extension \cite{textcomp}, and the \software{microtype} font optimization \cite{microtype}.
 %    \begin{macrocode}
 \RequirePackage{fix-cm}
 \RequirePackage{lmodern}
+\renewcommand{\ttdefault}{lmvtt}
 \RequirePackage{textcomp}
 \RequirePackage{microtype}
 %    \end{macrocode}
 %
-% Define bold and sans serif small caps font shapes using the fontspec package \cite{fontspec}.
+% Define bold and sans serif small caps font shapes using the \software{fontspec} package \cite{fontspec}.
 % The font abbreviations are
 % \begin{description}[nosep]
-%  \item[lmr] Latin modern roman font
-%  \item[lmss] Latin modern sans serif font
-%  \item[cmss] Computer modern sans serif font
-%  \item[xcmss] Extended computer modern sans serif font (from the |sansmathfonts| package \cite{sansmathfonts})
+%  \item[lmr] \LM regular font
+%  \item[lmss] \LM sans serif font
+%  \item[cmss] \CM sans serif font
+%  \item[xcmss] Extended \CM sans serif font (from the \software{sansmathfonts} package \cite{sansmathfonts})
 %  \item[bx] Bold extended series
 %  \item[b] Bold series
 %  \item[m] Medium weight and width series
@@ -968,8 +1040,8 @@
   \DeclareFontShape{\hep at encoding}{lmss}{m}{sc}{<->ssub*xcmss/m/sc}{}
 \fi
 %    \end{macrocode}
-
-% Load the |inputenc| \cite{inputenc} package.
+%
+% Load the \software{inputenc} package \cite{inputenc}.
 %    \begin{macrocode}
 \ifxetexorluatex\else
   \RequirePackage[utf8]{inputenc}
@@ -976,7 +1048,7 @@
 \fi
 %    \end{macrocode}
 %
-% Load the |babel| \cite{babel} package for hyphenation and the recommended |csquotes| package \cite{csquotes}.
+% Load the \software{babel} package \cite{babel} for hyphenation and the recommended \software{csquotes} package \cite{csquotes}.
 %    \begin{macrocode}
 \RequirePackage[\hep at lang]{babel}
 \RequirePackage{csquotes}
@@ -983,7 +1055,7 @@
 %    \end{macrocode}
 %
 % \begin{macro}{\underline}
-% Load the |ulem| package \cite{ulem} for hyphenable underlined text.
+% Load the \software{ulem} package \cite{ulem} for hyphenable underlined text.
 %    \begin{macrocode}
 \RequirePackage[normalem]{ulem}
 \let\underline\uline
@@ -1013,7 +1085,7 @@
 % \subsection{Text macros}
 %
 %\begin{macro}{\vs}
-% Load the |foreign| package \cite{foreign} in order to highlight abbreviations and vocabularies from foreign languages.
+% Load the \software{foreign} package \cite{foreign} in order to highlight abbreviations and vocabularies from foreign languages.
 % Add the missing |\vs| command.
 %    \begin{macrocode}
 \ifnum\pdf at strcmp{\hep at lang}{american}=0
@@ -1030,12 +1102,12 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% The |foreign| package relies on the |xspace| package \cite{xspace}.
-% Ensure that |\xspace| is compatible with the |\enquote| macro from the |csquote| package.
+% The \software{foreign} package relies on the \software{xspace} package \cite{xspace}.
+% Ensure that |\xspace| is compatible with the |\enquote| macro from the \software{csquote} package.
 %    \begin{macrocode}
 \xspaceaddexceptions{\csq at qclose@i}
 %    \end{macrocode}
-
+%
 %\begin{macro}{\no}
 % Define the macro |\no|\marg{number} for the use of \textnumero\ with appropriate spacing.
 %    \begin{macrocode}
@@ -1044,7 +1116,7 @@
 % \end{macro}
 %
 %\begin{macro}{\software}
-% Define a macro for software with optional version information |\software|\linebreak[1]\oarg{version}\linebreak[1]\marg{name}, using the |relsize| package \cite{relsize}.
+% Define a macro for software with optional version information |\software|\linebreak[1]\oarg{version}\linebreak[1]\marg{name}, using the \software{relsize} package \cite{relsize}.
 %    \begin{macrocode}
 \RequirePackage{relsize}
 \newcommand{\software}[2][\hspace{-\fontdimen2\font}]{%
@@ -1054,15 +1126,26 @@
 % \end{macro}
 %
 % \begin{macro}{\online}
+% \begin{macro}{\email}
 % Define the |\online|\marg{text}\marg{url} macro combining the features of the |\href| and the |\url| macros.
+% Define a macro for typesetting emails.
 %    \begin{macrocode}
 \newcommand{\online}[2]{\href{#1}{\nolinkurl{#2}}}
+\newcommand{\email}[1]{\online{mailto:#1}{#1}}
 %    \end{macrocode}
 % \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\prefix}
+% Define the |\prefix|\marg{prefix}\marg{word} macro ensuring the correct linebreak in \prefix{prefix}{word}.
+%    \begin{macrocode}
+\newcommand{\prefix}[2]{(#1\mbox{-)}\allowbreak #2}
+%    \end{macrocode}
+% \end{macro}
 
 % \subsection{Lists}
 %
-% Load the |enumitem| package \cite{enumitem}.
+% Load the \software{enumitem} package \cite{enumitem}.
 %    \begin{macrocode}
 \RequirePackage[inline]{enumitem}
 %    \end{macrocode}
@@ -1095,7 +1178,7 @@
 
 % \section{Geometry}
 %
-% Load the |geometry| package \cite{geometry} and adjust the text width and height to the values of the |a4wide| package \cite{a4wide}.
+% Load the \software{geometry} package \cite{geometry} and adjust the text width and height.
 % This step must happen after readjusting the font size in \cref{sec:font size}.
 %    \begin{macrocode}
 \ifhep at defaults\else
@@ -1109,10 +1192,10 @@
   }
 \fi
 %    \end{macrocode}
-
+%
 %\begin{macro}{\useparskip}
 %\begin{macro}{\useparindent}
-% Load the |parskip| package \cite{parskip} if requested and provide two commands switching between the two paragraph modes.
+% Load the \software{parskip} package \cite{parskip} if requested and provide two commands switching between the two paragraph modes.
 %    \begin{macrocode}
 \ifhep at parindent\else
 \RequirePackage{parskip}
@@ -1134,15 +1217,13 @@
 
 % \section{Math}
 %
-% Load the |mathtools| package \cite{mathtools} which loads the |amsmath| package \cite{amsmath}.
-% Additionally, load the |amssymb| package \cite{amsfonts} which provides further math symbols and also loads the |amsfont| package \cite{amsfonts}.
+% Load the \software{mathtools} package \cite{mathtools} which loads the \software{amsmath} package \cite{amsmath}.
 % Allow page breaks within equations if necessary.
 %    \begin{macrocode}
 \RequirePackage{mathtools}
-\RequirePackage{amssymb}
 \allowdisplaybreaks[1]
 %    \end{macrocode}
-
+%
 % \begin{macro}{\diag}
 % \begin{macro}{\sgn}
 % Provide the |\diag| and |\sgn| operators
@@ -1152,10 +1233,10 @@
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
-
+%
 % \begin{macro}{\mathdef}
-% Define the |\mathdef|\marg{name}\oarg{arguments}\marg{macro} macro which (re-)defines macros in math mode only.
-% This macro is implemented using the |xparse| package \cite{xparse}.
+% Define the |\mathdef|\marg{name}\oarg{arguments}\marg{macro} macro which \prefix{re}{defines} macros in math mode only.
+% This macro is implemented using the \software{xparse} package \cite{xparse}.
 %    \begin{macrocode}
 \RequirePackage{xparse}
 \DeclareDocumentCommand{\mathdef}{mO{0}m}{%
@@ -1172,7 +1253,7 @@
 }
 %    \end{macrocode}
 % \end{macro}
-
+%
 % \begin{macro}{\i}
 % Provide an upright imaginary unit in math mode.
 %    \begin{macrocode}
@@ -1179,10 +1260,10 @@
 \AtBeginDocument{\mathdef{\i}{\operatorname{i}}}
 %    \end{macrocode}
 % \end{macro}
-
+%
 % \begin{macro}{\overline}
-% Redefine |\overline| to be a text macro using the |ulem| package \cite{ulem}.
-% Extend it as a math macro with the original definition from |amsmath| \cite{amsmath}.
+% Redefine |\overline| to be a text macro using the \software{ulem} package \cite{ulem}.
+% Extend it as a math macro with the original definition from the \software{amsmath} package \cite{amsmath}.
 %    \begin{macrocode}
 \def\overline#1{{\renewcommand{\ULdepth}{-1.9ex}{}\uline{#1}}}
 \DeclareRobustCommand{\over at line}[1]{\@@overline{#1}}
@@ -1189,10 +1270,10 @@
 \mathdef{\overline}{\over at line}
 %    \end{macrocode}
 % \end{macro}
-
+%
 % \begin{macro}{\left}
 % \begin{macro}{\right}
-% Load the |mleftright| package \cite{mleftright} and adjust the spacing around |\left| and |\right|.
+% Load the \software{mleftright} package \cite{mleftright} and adjust the spacing around |\left| and |\right|.
 %    \begin{macrocode}
 \RequirePackage{mleftright}
 \mleftright
@@ -1199,8 +1280,7 @@
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
-
-
+%
 % \begin{macro}{eqnarray}
 % Undefine the |eqnarray| environment if not prevented by package option.
 %    \begin{macrocode}
@@ -1210,61 +1290,154 @@
 \fi
 %    \end{macrocode}
 % \end{macro}
-
+%
 % \subsection{Math fonts}
 %
-% \begin{macro}{\mathbf}
-% Load the |bm| package \cite{bm} for superior boldmath after limiting the number of allocated math alphabets.
-% Make math symbols bold whenever they appear in bold macros such as |\section|\marg{text}.
+% Define conditionals based on the |symbols| package option.
 %    \begin{macrocode}
-\ifhep at serif\providecommand{\bmmax}{2}\else\providecommand{\bmmax}{1}\fi
-\RequirePackage{bm}
-\let\mathbf\bm
-\g at addto@macro\bfseries{\boldmath}
+\newif\ifhep at symbols
+\ifnum\pdf at strcmp{\hep at symbols}{false}=0\else\hep at symbolstrue\fi
+\newif\ifhep at ams
+\ifnum\pdf at strcmp{\hep at symbols}{ams}=0 \hep at amstrue\fi
+\newif\ifhep at minion
+\ifnum\pdf at strcmp{\hep at symbols}{minion}=0 \hep at miniontrue\fi
 %    \end{macrocode}
-% \end{macro}
 %
+% Load the \software{fixmath} \cite{fixmath} and \software{alphabeta} \cite{alphabeta} packages ensuring that upper Greek letters in math mode are italic and providing upright Greek letters in text mode, respectively.
+%    \begin{macrocode}
+\ifhep at symbols
+  \RequirePackage{alphabeta}
+  \RequirePackage{fixmath}
+%    \end{macrocode}
+%
+% Either load the \software{MnSymbol} package \cite{MnSymbol} or the the \software{exscale} package in order to fix Latin Modern |lmex| fonts.
+% Additionally, load the \software{amssymb} package \cite{amsfonts} which provides further math symbols and also loads the \software{amsfonts} package \cite{amsfonts}.
+%    \begin{macrocode}
+  \ifhep at minion
+    \RequirePackage{MnSymbol}
+  \else
+    \RequirePackage{exscale}
+    \RequirePackage{amssymb}
+  \fi
+\fi
+%    \end{macrocode}
+%
 % \begin{macro}{\mathsf}
-% Load the |fixmath| package \cite{fixmath} which ensures that upper Greek letters in math mode are italic.
-% Ensure that also math mode is sans serif using the |sfmath| package \cite{sfmath} if the sans serif option is used.
+% If the |sansserif| package option is active use the \software{cmbright} font \cite{cmbright} and code adjusted from the \software{sansmathfonts} package \cite{sansmathfonts}.
 % Ensure that |\mathsf| is italic as well as sans serif and sans for sans and sans serif documents, respectively.
-% The font abbreviations are
-% \begin{description}[nosep]
-%  \item[OML] \hologo{TeX} math italic font encoding
-%  \item[cmm] Computer modern math italic font
-%  \item[cmbr] Computer modern bright font
-%  \item[bx] Bold extended series
-%  \item[m] Medium weight and width series
-%  \item[it] Italic font shape
-% \end{description}
 %    \begin{macrocode}
 \ifhep at serif
-  \RequirePackage{fixmath}
-  \newcommand\hep at sf@font{cmbr}
+  \newcommand\hep at font@sf{cmbrm}
+  \DeclareMathAlphabet{\mathsf}{OML}{\hep at font@sf}{m}{it}
+  \SetMathAlphabet{\mathsf}{bold}{OML}{\hep at font@sf}{b}{it}
 \else
-  \RequirePackage[slantedGreek]{sfmath}
-  \RequirePackage{sansmathfonts}
-  \newcommand\hep at sf@font{cmm}
+  \newcommand\hep at font@sf{lmr}
+  \newcommand\hep at font@text{lmss}
+  \newcommand\hep at font@math{cmbrm}
+  \newcommand\hep at font@symbol{cmsssy}
+  \newcommand\hep at font@extra{cmssex}
+  \newcommand\hep at font@amsa{ssmsa}
+  \newcommand\hep at font@amsb{ssmsb}
+%    \end{macrocode}
+% Declare font substitutions.
+%    \begin{macrocode}
+  \DeclareFontSubstitution{OML}{\hep at font@math}{m}{it}
+  \ifhep at symbols\ifhep at minion\else
+    \DeclareFontSubstitution{OMS}{\hep at font@symbol}{m}{n}
+    \DeclareFontSubstitution{OMX}{\hep at font@extra}{m}{n}
+  \fi\fi
+%    \end{macrocode}
+% Declare the symbol fonts.
+%    \begin{macrocode}
+  \DeclareSymbolFont{operators}{OT1}{\hep at font@text}{m}{n}
+  \DeclareSymbolFont{letters}{OML}{\hep at font@math}{m}{it}
+  \ifhep at symbols\ifhep at minion\else
+    \DeclareSymbolFont{symbols}{OMS}{\hep at font@symbol}{m}{n}
+    \DeclareSymbolFont{largesymbols}{OMX}{\hep at font@extra}{m}{n}
+  \fi\fi
+%    \end{macrocode}
+% Set bold symbol fonts.
+%    \begin{macrocode}
+  \SetSymbolFont{operators}{bold}{OT1}{\hep at font@text}{b}{n}
+  \SetSymbolFont{letters}{bold}{OML}{\hep at font@math}{b}{it}
+  \ifhep at symbols\ifhep at minion\else
+    \SetSymbolFont{symbols}{bold}{OMS}{\hep at font@symbol}{b}{n}
+  \fi\fi
+%    \end{macrocode}
+% Adjust the fonts loaded by the \software{amsfonts} \cite{amsfonts} and \software{esint} \cite{esint} packages.
+%    \begin{macrocode}
+  \ifhep at symbols\ifhep at minion\else
+    \DeclareSymbolFont{AMSa}{U}{\hep at font@amsa}{m}{n}
+    \DeclareSymbolFont{AMSb}{U}{\hep at font@amsb}{m}{n}
+  \fi\fi
+  \AtBeginDocument{%
+    \@ifpackageloaded{esint}{%
+      \DeclareSymbolFont{largesymbolsA}{U}{ssesint}{m}{n}
+    }{}
+  }
+%    \end{macrocode}
+% Declare the symbol font alphabets.
+%    \begin{macrocode}
+  \DeclareSymbolFontAlphabet{\mathrm}{operators}
+  \DeclareSymbolFontAlphabet{\mathnormal}{letters}
+  \ifhep at minion\else
+    \DeclareSymbolFontAlphabet{\mathcal}{symbols}
+  \fi
+%    \end{macrocode}
+% Declare |\mathit|.
+%    \begin{macrocode}
+  \DeclareMathAlphabet{\mathit}{OML}{\hep at font@text}{m}{it}
+  \SetMathAlphabet\mathit{bold}{OML}{\hep at font@text}{bx}{it}
+%    \end{macrocode}
+% Declare |\mathtt|.
+%    \begin{macrocode}
+  \DeclareMathAlphabet{\mathtt}{OT1}{cmtl}{m}{n}
+%    \end{macrocode}
+%    \begin{macrocode}
+%    \end{macrocode}
+% Declare |\mathsf|.
+%    \begin{macrocode}
+  \DeclareMathAlphabet{\mathsf}{OML}{\hep at font@sf}{m}{it}
+  \SetMathAlphabet{\mathsf}{bold}{OML}{\hep at font@sf}{bx}{it}
+%    \end{macrocode}
+% \end{macro}
+% End of |sansserif|.
+%    \begin{macrocode}
 \fi
-\SetMathAlphabet{\mathsf}{normal}{OML}{\hep at sf@font}{m}{it}
-\SetMathAlphabet{\mathsf}{bold}{OML}{\hep at sf@font}{bx}{it}
 %    \end{macrocode}
+%
+% \begin{macro}{\mathbf}
+% Load the \software{bm} package \cite{bm} for superior boldmath.
+% Make math symbols bold whenever they appear in bold macros such as |\section|\marg{text}.
+%    \begin{macrocode}
+\ifhep at symbols
+  \RequirePackage{bm}
+  \AtBeginDocument{\let\mathbf\bm}
+  \g at addto@macro\bfseries{\boldmath}
+%    \end{macrocode}
 % \end{macro}
+%
 % \begin{macro}{\mathscr}
-% Load the |mathrsfs| package for the |\mathscr| math script font.
+% Provid the |\mathscr| math script font from the \software{mathrsfs} package \cite{mathrsfs}.
 %    \begin{macrocode}
-\DeclareMathAlphabet{\mathscr}{U}{rsfs}{m}{n}
+  \DeclareMathAlphabet{\mathscr}{U}{rsfs}{m}{n}
 %    \end{macrocode}
 % \end{macro}
 % \begin{macro}{\mathbb}
-% Load the |dsfont| package \cite{dsfont} and adjust the |\mathbb| math blackboard style font according to the (sans-) serif option.
+% Redefine the the |\mathbb| math blackboard style font according to the \prefix{sans}{serif} option with the font from the \software{dsfont} package \cite{dsfont}.
 %    \begin{macrocode}
-\ifhep at serif
-  \newcommand\hep at bb@font{dsrom}
-\else
-  \newcommand\hep at bb@font{dsss}
+  \ifhep at minion
+    \DeclareMathAlphabet{\mathbb}{U}{%
+      \ifhep at serif dsrom\else dsss\fi%
+    }{m}{n}
+  \else
+    \ifhep at ams\else
+      \SetMathAlphabet{\mathbb}{normal}{U}{%
+        \ifhep at serif dsrom\else dsss\fi%
+      }{m}{n}
+    \fi
+  \fi
 \fi
-\SetMathAlphabet{\mathbb}{normal}{U}{\hep at bb@font}{m}{n}
 %    \end{macrocode}
 % \end{macro}
 
@@ -1273,9 +1446,9 @@
 % \begin{macro}{\cancel}
 % \begin{macro}{\slashed}
 % \begin{macro}{\unit}
-% Load the |physics| package \cite{physics} which provides macros useful for publications in physics.
-% Additionally, load the |cancel| \cite{cancel} and |slashed| \cite{slashed} packages which provide the |\cancel| and |\slashed| macros.
-% Finally, load the |units| package \cite{units} which provides the |\units| and |\nicefrac| macros.
+% Load the \software{physics} package \cite{physics} which provides macros useful for publications in physics.
+% Additionally, load the \software{cancel} \cite{cancel} and \software{slashed} \cite{slashed} packages which provide the |\cancel| and |\slashed| macros.
+% Finally, load the \software{units} package \cite{units} which provides the |\units| and |\nicefrac| macros.
 %    \begin{macrocode}
 \RequirePackage{physics}
 \RequirePackage{cancel}
@@ -1285,7 +1458,7 @@
 % \end{macro}
 % \end{macro}
 % \end{macro}
-
+%
 % \begin{macro}{\inv}
 % Provide a macro for the inverse, useful in combination with the unit macro in text mode.
 %    \begin{macrocode}
@@ -1292,7 +1465,7 @@
 \newcommand{\inv}[2][1]{#2\ensuremath{^{-#1}}}
 %    \end{macrocode}
 % \end{macro}
-
+%
 % \begin{macro}{\d}
 % Provide a differential |\d|.
 %    \begin{macrocode}
@@ -1299,7 +1472,7 @@
 \AtBeginDocument{\mathdef{\d}{\dd}}
 %    \end{macrocode}
 % \end{macro}
-
+%
 % \begin{macro}{\oset}
 % Define a new overset macro |\oset|\oarg{offset}\marg{over}\marg{base}
 %    \begin{macrocode}
@@ -1329,7 +1502,7 @@
 \renewcommand{\textfraction}{.1} % .2
 \renewcommand{\floatpagefraction}{.8} % .5
 %    \end{macrocode}
-
+%
 % \begin{environment}{figure}
 % \begin{environment}{table}
 % Center the content of |figure| and |table| environments.
@@ -1376,7 +1549,7 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% Prevent the |caption| package \cite{caption} from complaining about the journal classes and packages.
+% Prevent the \software{caption} package \cite{caption} from complaining about the journal classes and packages.
 %    \begin{macrocode}
 \ifhep at journal
   \setlength\abovecaptionskip{\f at size\p@}
@@ -1395,7 +1568,7 @@
 \fi
 %    \end{macrocode}
 %
-% Load the |subcaption| package \cite{subcaption}.
+% Load the \software{subcaption} package \cite{subcaption}.
 % Provide the old |\subcaption at minipage| macro.
 %    \begin{macrocode}
 \RequirePackage[subrefformat=parens]{subcaption}
@@ -1438,8 +1611,8 @@
 %    \end{macrocode}
 % \end{macro}
 % \end{environment}
-
-% Reajust the captions to the revtex class using the |ragged2e| package \cite{ragged2e}.
+%
+% Reajust the captions to the revtex class using the \software{ragged2e} package \cite{ragged2e}.
 %    \begin{macrocode}
 \ifhep at revtex
   \RequirePackage{ragged2e}
@@ -1454,7 +1627,7 @@
 % \subsection{Tables}
 %
 % \begin{environment}{tabular}
-% Enhance tabulars with the |booktabs| and |multirow| packages \cite{booktabs, multirow}.
+% Enhance tabulars with the \software{booktabs} and \software{multirow} packages \cite{booktabs, multirow}.
 %    \begin{macrocode}
 \RequirePackage{booktabs}
 \RequirePackage{multirow}
@@ -1464,7 +1637,7 @@
 % \subsection{Figures}
 %
 % \begin{macro}{\graphic}
-% Provide the |\graphic| macro for the inclusion of figures using the |graphicx| package \cite{graphicx}.
+% Provide the |\graphic| macro for the inclusion of figures using the \software{graphicx} package \cite{graphicx}.
 %    \begin{macrocode}
 \RequirePackage{graphicx}
 \providecommand{\tikzsetnextfilename}[1]{}
@@ -1495,26 +1668,85 @@
 %    \end{macrocode}
 % \end{macro}
 %
+% \subsection{Titles}
+%
+% Extend the title using the \software{titling} package \cite{titling}.
+%    \begin{macrocode}
+\RequirePackage{titling}
+%    \end{macrocode}
+%
+% \begin{macro}{\preprintfont}
+% \begin{macro}{\titlefont}
+% \begin{macro}{\subtitlefont}
+% \begin{macro}{\authorfont}
+% \begin{macro}{\affiliationfont}
+% \begin{macro}{\datefont}
+% Allow to change the fontface of the individual parts of the title.
+%    \begin{macrocode}
+\let\hep at preprint@font\relax
+\newcommand{\preprintfont}[1]{\def\hep at preprint@font{#1}}
+\let\hep at title@font\relax
+\newcommand{\titlefont}[1]{\def\hep at title@font{#1}}
+\let\hep at subtitle@font\relax
+\newcommand{\subtitlefont}[1]{\def\hep at subtitle@font{#1}}
+\let\hep at author@font\relax
+\newcommand{\authorfont}[1]{\def\hep at author@font{#1}}
+\let\hep at affiliation@font\relax
+\newcommand{\affiliationfont}[1]{\def\hep at affiliation@font{#1}}
+\let\hep at date@font\relax
+\newcommand{\datefont}[1]{\def\hep at date@font{#1}}
+%    \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\subtitle}
+% Define a subtitle.
+%    \begin{macrocode}
+\newcommand{\presubtitle}[1]{\def\hep at pre@sub at title{#1}}
+\newcommand{\subtitle}[1]{\def\sub at title{#1}}
+\newcommand{\postsubtitle}[1]{\def\hep at post@sub at title{#1}}
+\renewcommand{\maketitlehookb}{%
+  \@ifundefined{sub at title}{}{%
+    \hep at pre@sub at title\sub at title\hep at post@sub at title%
+  }%
+}
+%    \end{macrocode}
+% \end{macro}
+%
+% Set standard values mostly taken from the \software{titling} package, add the font hook, and reduce the |date| font size.
+%    \begin{macrocode}
+\pretitle{\begin{center}\LARGE\hep at title@font}
+\posttitle{\par\end{center}}
+\presubtitle{\begin{center}\large\hep at subtitle@font}
+\postsubtitle{\par\end{center}}
+\preauthor{%
+  \begin{center}\large\hep at author@font\lineskip.5em\begin{tabular}[t]{c}%
+}
+\postauthor{\end{tabular}\par\end{center}}
+\predate{\begin{center}\hep at date@font}
+\postdate{\par\end{center}}
+%    \end{macrocode}
+%
 % \subsection{Authors}
 %
 % \begin{macro}{\author}
 % Allow absent author field.
+% Enable the handling of multiple authors with different affiliations using the \software{authblk} package \cite{authblk}.
 %    \begin{macrocode}
 \author{}
+\RequirePackage{authblk}
+\renewcommand{\Affilfont}{\small\hep at affiliation@font}
+\renewcommand\Authfont{\hep at author@font}
 %    \end{macrocode}
 % \end{macro}
 %
-% Enable the handling of multiple authors with different affiliations using the |authblk| package \cite{authblk}.
-%    \begin{macrocode}
-\RequirePackage{authblk}
-\renewcommand\Affilfont{\footnotesize}
-%    \end{macrocode}
-%
 % \begin{macro}{\email}
-% Define a macro for typesetting emails.
-% Redefine this macro to place the email address in a footnote if called from within the |\author| macro |\author{|$\langle name\rangle$ |\email{|$\langle email\rangle$|}}|.
+% Redefine the email macro to place the email address in a footnote if called from within the |\author| macro |\author{|$\langle name\rangle$ |\email{|$\langle email\rangle$|}}|.
 %    \begin{macrocode}
-\newcommand{\email}[1]{\online{mailto:#1}{#1}}
 \let\hep at author\author
 \def\author{%
   \renewcommand{\email}[1]{\unskip\thanks{\online{mailto:##1}{##1}}}%
@@ -1526,17 +1758,21 @@
 % \begin{macro}{\affiliation}
 % Define the |\affiliation| macro, ensure that linebreaks happen after a comma.
 %    \begin{macrocode}
-\newcommand\active at comma{,\penalty-5\relax}
-\newcommand\cat at comma@active{\catcode`\,\active}
-{\cat at comma@active\gdef,{\active at comma}}
-\newcommand\@affil[1]{%
+\newcommand\hep at active@comma{,\penalty-5\relax}
+\newcommand\hep at cat@comma at active{\catcode`\,\active}
+{\hep at cat@comma at active\gdef,{\hep at active@comma}}
+\newcommand\hep at affil[1]{%
   \endgroup\@flushglue=0pt plus .5\linewidth\affil{#1}%
 }
-\def\@affil at opt[#1]#2{%
+\def\hep at affil@opt[#1]#2{%
   \endgroup\@flushglue=0pt plus .5\linewidth\affil[#1]{#2}%
 }
-\DeclareRobustCommand\@affiliation{\@ifnextchar[{\@affil at opt}{\@affil}}
-\newcommand{\affiliation}{\begingroup\cat at comma@active\@affiliation}
+\DeclareRobustCommand\hep at affiliation{%
+  \@ifnextchar[{\hep at affil@opt}{\hep at affil}%
+}
+\newcommand{\affiliation}{%
+  \begingroup\hep at cat@comma at active\hep at affiliation%
+}
 %    \end{macrocode}
 % \end{macro}
 
@@ -1543,34 +1779,34 @@
 % \subsection{Preprint}
 %
 % \begin{macro}{\preprint}
-% Define the |\preprint| macro using the |varwidth| package \cite{varwidth}.
+% Define the |\preprint| macro using the \software{varwidth} package \cite{varwidth}.
 %    \begin{macrocode}
-\let\@preprint\relax
-\newcommand\preprint[1]{\long\gdef\@preprint{#1}}
+\let\hep at preprint\relax
+\newcommand\preprint[1]{\def\hep at preprint{#1}}
 \RequirePackage{varwidth}
-\newcommand{\@preprint at box}{%
+\newcommand{\hep at preprint@box}{%
   \begin{varwidth}{\textwidth}%
-    \textsc{\small\@preprint}%
+    \small\hep at preprint@font\hep at preprint%
   \end{varwidth}%
 }
+\preprintfont{\sc}
 %    \end{macrocode}
 % \end{macro}
-
-% \begin{macro}{\maketitle}
-% Places a preprint number in the top right corner of the title page using the |atbegshi| \cite{atbegshi} and |picture| \cite{picture} packages.
+%
+% \begin{macro}{\placepreprint}
+% Places a preprint number in the top right corner of the title page using the \software{atbegshi} \cite{atbegshi} and \software{picture} \cite{picture} packages.
 %    \begin{macrocode}
 \RequirePackage{atbegshi}
 \RequirePackage{picture}
-\let\hep at maketitle\maketitle
-\renewcommand{\maketitle}{%
-  \hep at maketitle%
+\newcommand{\placepreprint}{%
   \AtBeginShipoutFirst{%
     \put(
-      \textwidth+\oddsidemargin-\widthof{\@preprint at box},
-      -2pt-\topmargin-\heightof{\@preprint at box}
-    ){\normalfont\@preprint at box}
+      \textwidth+\oddsidemargin-\widthof{\hep at preprint@box},
+      -2pt-\topmargin-\heightof{\hep at preprint@box}
+    ){\normalfont\hep at preprint@box}
   }
 }
+\renewcommand{\maketitlehooka}{\placepreprint\vspace{-\bigskipamount}}
 %    \end{macrocode}
 % \end{macro}
 
@@ -1598,7 +1834,7 @@
 %    \end{macrocode}
 %
 % \begin{macro}{\bibliography}
-% Load the |biblatex| package \cite{biblatex} with the datamodel defined in \cref{sec:data model}.
+% Load the \software{biblatex} package \cite{biblatex} with the datamodel defined in \cref{sec:data model}.
 %    \begin{macrocode}
 \RequirePackage[style=\hep at bibliography, datamodel=hep-paper]{biblatex}
 %    \end{macrocode}
@@ -1897,7 +2133,7 @@
 
 % \section{Hyperlinks, Footnotes and References} \label{sec:hyperlinks}
 %
-% Load the |hyperref| package \cite{hyperref} enable Unicode encoding and hide links.
+% Load the \software{hyperref} package \cite{hyperref} enable Unicode encoding and hide links.
 %
 %    \begin{macrocode}
 \RequirePackage{hyperref}
@@ -1937,7 +2173,7 @@
 
 % \subsection{Footnotes}
 %
-% Place a hyperlink from the footnote back to its referencing label using the |footnotebackref| package \cite{footnotebackref}.
+% Place a hyperlink from the footnote back to its referencing label using the \software{footnotebackref} package \cite{footnotebackref}.
 %    \begin{macrocode}
 \def\BackrefFootnoteTag{}
 \RequirePackage{footnotebackref}
@@ -1959,7 +2195,7 @@
 %    \end{macrocode}
 %
 % \begin{macro}{\cref}
-% Improve reference using the |cleveref| package \cite{cleveref}.
+% Improve reference using the \software{cleveref} package \cite{cleveref}.
 %
 %    \begin{macrocode}
 \RequirePackage[noabbrev, nameinlink]{cleveref}
@@ -1985,21 +2221,20 @@
 % \end{macro}
 %
 % \begin{macro}{\ref}
-% Adjust |\ref|\marg{key} in order to prevent preceding line breaks and to enable the possibility to reference multiple references at once.
+% Adjust |\ref|\marg{key} in order to prevent preceding line breaks.
 %    \begin{macrocode}
 \let\hep at ref\ref
-\AtBeginDocument{\renewcommand\ref{\no at break@before\labelcref}}
+\AtBeginDocument{\renewcommand\ref{\no at break@before\hep at ref}}
 %    \end{macrocode}
 % \end{macro}
-% ! Bug ! in equations the additional brackets from the cleveref macro conflict with the traditional |(\ref|\marg{key}|)| approach
-
+%
 % \begin{macro}{\eqref}
-% Adjust |\eqref|\marg{key} in order to prevent preceding line breaks and to enable the possibility to reference multiple equations at once.
+% Adjust |\eqref|\marg{key} in order to prevent preceding line breaks.
 %    \begin{macrocode}
 \renewcommand\eqref{\no at break@before\labelcref}
 %    \end{macrocode}
 % \end{macro}
-
+%
 % \begin{macro}{\subref}
 % Adjust |\subref|\marg{key} in order to prevent preceding line breaks.
 %    \begin{macrocode}
@@ -2011,7 +2246,7 @@
 \endgroup}
 %    \end{macrocode}
 % \end{macro}
-
+%
 % \begin{macro}{\subcref}
 % Provide the |\subcref| macro.
 %    \begin{macrocode}
@@ -2018,7 +2253,7 @@
 \newcommand{\subcref}[1]{\cref{sub@#1}}
 %    \end{macrocode}
 % \end{macro}
-
+%
 % \begin{macro}{\eqcrefname}
 % Define the |\eqcrefname| macro for named equation types.
 %    \begin{macrocode}
@@ -2028,7 +2263,7 @@
 }
 %    \end{macrocode}
 % \end{macro}
-
+%
 % \begin{macro}{\labelcrefrange}
 % Define the missing |\labelcrefrange|\marg{key1}\marg{key2} macro.
 %    \begin{macrocode}
@@ -2052,7 +2287,7 @@
 \renewcommand\cite{\no at break@before\hep at cite}
 %    \end{macrocode}
 % \end{macro}
-
+%
 % Begin of bibliography if.
 %    \begin{macrocode}
 \ifnum\pdf at strcmp{\hep at bibliography}{false}=0\else
@@ -2094,7 +2329,7 @@
 
 % \section{Acronyms}
 %
-% Acronyms are implemented with the |glossaries-extra| package \cite{glossaries-extra} which is an extension of the |glossaries| package \cite{glossaries} and must be loaded after the |hyperref| pacakge in \cref{sec:hyperlinks}.
+% Acronyms are implemented with the \software{glossaries-extra} package \cite{glossaries-extra} which is an extension of the \software{glossaries} package \cite{glossaries} and must be loaded after the \software{hyperref} pacakge in \cref{sec:hyperlinks}.
 %    \begin{macrocode}
 \ifhep at glossaries
 \RequirePackage[nostyles]{glossaries-extra}
@@ -2127,9 +2362,9 @@
   }%
 }}
 %    \end{macrocode}
-
+%
 % \begin{macro}{\begin at sentence}
-% Mark the beginning of a paragraph as if it would follow a full stop using the |everyhook| package \cite{everyhook}.
+% Mark the beginning of a paragraph as if it would follow a full stop using the \software{everyhook} package \cite{everyhook}.
 %    \begin{macrocode}
 \RequirePackage[excludeor]{everyhook}
 \newcommand{\begin at sentence}{1001}
@@ -2136,7 +2371,7 @@
 \PushPostHook{par}{{\spacefactor=\begin at sentence}}
 %    \end{macrocode}
 % \end{macro}
-
+%
 % \begin{macro}{\frenchspacing}
 % Adjust the |\frenchspacing| macro to be compatibel with this idea.
 %    \begin{macrocode}
@@ -2147,7 +2382,7 @@
 }
 %    \end{macrocode}
 % \end{macro}
-
+%
 % \begin{macro}{\if at begin@of at sentence}
 % Provide a macro checking for the beginning of a sentence by examining the length of the preceeding space.
 %    \begin{macrocode}
@@ -2159,7 +2394,7 @@
 }}
 %    \end{macrocode}
 % \end{macro}
-
+%
 % \begin{macro}{\acronym}
 % The |\acronym|\meta{*}\oarg{typeset abbreviation}\marg{abbreviation}\meta{*}\marg{definition}\oarg{plural\linebreak[4] definition} macro is defined.
 % \begin{enumerate}[nosep, label=\#\arabic*]

Modified: trunk/Master/texmf-dist/source/latex/hep-paper/hep-paper.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/hep-paper/hep-paper.ins	2020-10-01 21:05:35 UTC (rev 56502)
+++ trunk/Master/texmf-dist/source/latex/hep-paper/hep-paper.ins	2020-10-01 21:05:52 UTC (rev 56503)
@@ -1,4 +1,3 @@
-%%
 %% Copyright (C) 2019-2020 by Jan Hajer
 %%
 %% This file may be distributed and/or modified under the
@@ -10,7 +9,7 @@
 %%
 %% and version 1.3c or later is part of all distributions of
 %% LaTeX version 2005/12/01 or later.
-%%
+
 \input docstrip.tex
 \keepsilent
 \usedir{tex/latex/hep-paper}

Modified: trunk/Master/texmf-dist/tex/latex/hep-paper/hep-paper.dbx
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hep-paper/hep-paper.dbx	2020-10-01 21:05:35 UTC (rev 56502)
+++ trunk/Master/texmf-dist/tex/latex/hep-paper/hep-paper.dbx	2020-10-01 21:05:52 UTC (rev 56503)
@@ -14,8 +14,9 @@
 %% http://www.latex-project.org/lppl.txt
 %% and version 1.3c or later is part of all distributions of
 %% LaTeX version 2005/12/01 or later.
-\ProvidesFile{hep-paper.dbx}[2020/08/01 v1.4 HEP-Paper biblatex data model]
 
+\ProvidesFile{hep-paper.dbx}[2020/10/01 v1.5 HEP-Paper biblatex data model]
+
 \DeclareDatamodelFields[type=field, datatype=literal]{
   collaboration, reportnumber, pmid, pmcid, pmc,
 }

Modified: trunk/Master/texmf-dist/tex/latex/hep-paper/hep-paper.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hep-paper/hep-paper.sty	2020-10-01 21:05:35 UTC (rev 56502)
+++ trunk/Master/texmf-dist/tex/latex/hep-paper/hep-paper.sty	2020-10-01 21:05:52 UTC (rev 56503)
@@ -14,8 +14,9 @@
 %% http://www.latex-project.org/lppl.txt
 %% and version 1.3c or later is part of all distributions of
 %% LaTeX version 2005/12/01 or later.
+
 \NeedsTeXFormat{LaTeX2e}[2005/12/01]
-\ProvidesPackage{hep-paper}[2020/08/01 v1.4 Publications in High Energy Physics]
+\ProvidesPackage{hep-paper}[2020/10/01 v1.5 Publications in High Energy Physics]
 
 \RequirePackage{pdftexcmds}
 \RequirePackage{kvoptions}
@@ -30,6 +31,7 @@
 \DeclareComplementaryOption{sansserif}{serif}
 \DeclareBoolOption[true]{parindent}
 \DeclareComplementaryOption{parskip}{parindent}
+\DeclareStringOption[true]{symbols}
 \DeclareBoolOption[false]{defaults}
 \DeclareBoolOption[true]{title}
 \DeclareStringOption[numeric-comp]{bibliography}
@@ -43,6 +45,18 @@
 \DeclareBoolOption[false]{eqnarray}
 \DeclareBoolOption[false]{manualplacement}
 \ProcessKeyvalOptions*
+\def\hep at get@class#1.cls#2\relax{\def\hep at class{#1}}
+\def\hep at getclass{\expandafter\hep at get@class\@filelist\relax}
+\hep at getclass
+\@ifclasswith{\hep at class}{10pt}{\setkeys{hep}{font=10pt}}{}
+\@ifclasswith{\hep at class}{12pt}{\setkeys{hep}{font=12pt}}{}
+\@ifclasswith{\hep at class}{a5paper}{\setkeys{hep}{paper=a5}}{}
+\@ifclasswith{\hep at class}{b5paper}{\setkeys{hep}{paper=b5}}{}
+\@ifclasswith{\hep at class}{letterpaper}{\setkeys{hep}{paper=letter}}{}
+\@ifclasswith{\hep at class}{legalpaper}{\setkeys{hep}{paper=legal}}{}
+\@ifclasswith{\hep at class}{executivepaper}{%
+  \setkeys{hep}{paper=executive}%
+}{}
 \@ifclassloaded{PoS}{\setkeys{hep}{pos}}{}
 \ifhep at pos
   \setkeys{hep}{defaults, title=false}
@@ -51,6 +65,7 @@
 \@ifclassloaded{beamer}{\setkeys{hep}{beamer}}{}
 \ifhep at beamer
   \setkeys{hep}{defaults, title=false, references=false, sansserif}
+  \@ifpackageloaded{beamerbasefont}{\usefonttheme{professionalfonts}}{}
 \fi
 \@ifclassloaded{revtex4}{\setkeys{hep}{revtex}}{}
 \@ifclassloaded{revtex4-1}{\setkeys{hep}{revtex}}{}
@@ -81,10 +96,8 @@
   \hoffset 0in
 \fi
 
-\RequirePackage{alphabeta}
 \ifhep at serif\else
-  \RequirePackage{sansmathfonts}
-  \renewcommand\familydefault{\sfdefault}
+  \renewcommand{\familydefault}{\sfdefault}
 \fi
 \RequirePackage{ifluatex}
 \RequirePackage{ifxetex}
@@ -103,6 +116,7 @@
 \RequirePackage[\hep at encoding]{fontenc}
 \RequirePackage{fix-cm}
 \RequirePackage{lmodern}
+\renewcommand{\ttdefault}{lmvtt}
 \RequirePackage{textcomp}
 \RequirePackage{microtype}
 \ifxetexorluatex
@@ -128,7 +142,6 @@
   \DeclareFontShape{\hep at encoding}{lmss}{b}{sc}{<->ssub*xcmss/bx/sc}{}
   \DeclareFontShape{\hep at encoding}{lmss}{m}{sc}{<->ssub*xcmss/m/sc}{}
 \fi
-
 \ifxetexorluatex\else
   \RequirePackage[utf8]{inputenc}
 \fi
@@ -163,7 +176,6 @@
 \RequirePackage[all, \hep at lang@foreign]{foreign}
 \DeclareRobustCommand\vs{\xperiodafter{{\foreignabbrfont{vs}}}}
 \xspaceaddexceptions{\csq at qclose@i}
-
 \newcommand{\no}[1]{\textnumero~#1}
 \RequirePackage{relsize}
 \newcommand{\software}[2][\hspace{-\fontdimen2\font}]{%
@@ -170,6 +182,8 @@
   {\smaller\textsc{#2}~#1}%
 }
 \newcommand{\online}[2]{\href{#1}{\nolinkurl{#2}}}
+\newcommand{\email}[1]{\online{mailto:#1}{#1}}
+\newcommand{\prefix}[2]{(#1\mbox{-)}\allowbreak #2}
 
 \RequirePackage[inline]{enumitem}
 \newlist{inlinelist}{enumerate*}{1}
@@ -197,7 +211,6 @@
     includeheadfoot
   }
 \fi
-
 \ifhep at parindent\else
 \RequirePackage{parskip}
 \newcommand{\useparskip}{%
@@ -214,12 +227,9 @@
 \fi
 
 \RequirePackage{mathtools}
-\RequirePackage{amssymb}
 \allowdisplaybreaks[1]
-
 \DeclareMathOperator{\diag}{diag}
 \DeclareMathOperator{\sgn}{sgn}
-
 \RequirePackage{xparse}
 \DeclareDocumentCommand{\mathdef}{mO{0}m}{%
   \expandafter\let\csname text\string#1\endcsname=#1
@@ -233,52 +243,104 @@
     \next
   }%
 }
-
 \AtBeginDocument{\mathdef{\i}{\operatorname{i}}}
-
 \def\overline#1{{\renewcommand{\ULdepth}{-1.9ex}{}\uline{#1}}}
 \DeclareRobustCommand{\over at line}[1]{\@@overline{#1}}
 \mathdef{\overline}{\over at line}
-
 \RequirePackage{mleftright}
 \mleftright
-
 \ifhep at eqnarray\else
   \let\eqnarray\@undefined
   \let\endeqnarray\@undefined
 \fi
-
-\ifhep at serif\providecommand{\bmmax}{2}\else\providecommand{\bmmax}{1}\fi
-\RequirePackage{bm}
-\let\mathbf\bm
-\g at addto@macro\bfseries{\boldmath}
-\ifhep at serif
+\newif\ifhep at symbols
+\ifnum\pdf at strcmp{\hep at symbols}{false}=0\else\hep at symbolstrue\fi
+\newif\ifhep at ams
+\ifnum\pdf at strcmp{\hep at symbols}{ams}=0 \hep at amstrue\fi
+\newif\ifhep at minion
+\ifnum\pdf at strcmp{\hep at symbols}{minion}=0 \hep at miniontrue\fi
+\ifhep at symbols
+  \RequirePackage{alphabeta}
   \RequirePackage{fixmath}
-  \newcommand\hep at sf@font{cmbr}
-\else
-  \RequirePackage[slantedGreek]{sfmath}
-  \RequirePackage{sansmathfonts}
-  \newcommand\hep at sf@font{cmm}
+  \ifhep at minion
+    \RequirePackage{MnSymbol}
+  \else
+    \RequirePackage{exscale}
+    \RequirePackage{amssymb}
+  \fi
 \fi
-\SetMathAlphabet{\mathsf}{normal}{OML}{\hep at sf@font}{m}{it}
-\SetMathAlphabet{\mathsf}{bold}{OML}{\hep at sf@font}{bx}{it}
-\DeclareMathAlphabet{\mathscr}{U}{rsfs}{m}{n}
 \ifhep at serif
-  \newcommand\hep at bb@font{dsrom}
+  \newcommand\hep at font@sf{cmbrm}
+  \DeclareMathAlphabet{\mathsf}{OML}{\hep at font@sf}{m}{it}
+  \SetMathAlphabet{\mathsf}{bold}{OML}{\hep at font@sf}{b}{it}
 \else
-  \newcommand\hep at bb@font{dsss}
+  \newcommand\hep at font@sf{lmr}
+  \newcommand\hep at font@text{lmss}
+  \newcommand\hep at font@math{cmbrm}
+  \newcommand\hep at font@symbol{cmsssy}
+  \newcommand\hep at font@extra{cmssex}
+  \newcommand\hep at font@amsa{ssmsa}
+  \newcommand\hep at font@amsb{ssmsb}
+  \DeclareFontSubstitution{OML}{\hep at font@math}{m}{it}
+  \ifhep at symbols\ifhep at minion\else
+    \DeclareFontSubstitution{OMS}{\hep at font@symbol}{m}{n}
+    \DeclareFontSubstitution{OMX}{\hep at font@extra}{m}{n}
+  \fi\fi
+  \DeclareSymbolFont{operators}{OT1}{\hep at font@text}{m}{n}
+  \DeclareSymbolFont{letters}{OML}{\hep at font@math}{m}{it}
+  \ifhep at symbols\ifhep at minion\else
+    \DeclareSymbolFont{symbols}{OMS}{\hep at font@symbol}{m}{n}
+    \DeclareSymbolFont{largesymbols}{OMX}{\hep at font@extra}{m}{n}
+  \fi\fi
+  \SetSymbolFont{operators}{bold}{OT1}{\hep at font@text}{b}{n}
+  \SetSymbolFont{letters}{bold}{OML}{\hep at font@math}{b}{it}
+  \ifhep at symbols\ifhep at minion\else
+    \SetSymbolFont{symbols}{bold}{OMS}{\hep at font@symbol}{b}{n}
+  \fi\fi
+  \ifhep at symbols\ifhep at minion\else
+    \DeclareSymbolFont{AMSa}{U}{\hep at font@amsa}{m}{n}
+    \DeclareSymbolFont{AMSb}{U}{\hep at font@amsb}{m}{n}
+  \fi\fi
+  \AtBeginDocument{%
+    \@ifpackageloaded{esint}{%
+      \DeclareSymbolFont{largesymbolsA}{U}{ssesint}{m}{n}
+    }{}
+  }
+  \DeclareSymbolFontAlphabet{\mathrm}{operators}
+  \DeclareSymbolFontAlphabet{\mathnormal}{letters}
+  \ifhep at minion\else
+    \DeclareSymbolFontAlphabet{\mathcal}{symbols}
+  \fi
+  \DeclareMathAlphabet{\mathit}{OML}{\hep at font@text}{m}{it}
+  \SetMathAlphabet\mathit{bold}{OML}{\hep at font@text}{bx}{it}
+  \DeclareMathAlphabet{\mathtt}{OT1}{cmtl}{m}{n}
+  \DeclareMathAlphabet{\mathsf}{OML}{\hep at font@sf}{m}{it}
+  \SetMathAlphabet{\mathsf}{bold}{OML}{\hep at font@sf}{bx}{it}
 \fi
-\SetMathAlphabet{\mathbb}{normal}{U}{\hep at bb@font}{m}{n}
+\ifhep at symbols
+  \RequirePackage{bm}
+  \AtBeginDocument{\let\mathbf\bm}
+  \g at addto@macro\bfseries{\boldmath}
+  \DeclareMathAlphabet{\mathscr}{U}{rsfs}{m}{n}
+  \ifhep at minion
+    \DeclareMathAlphabet{\mathbb}{U}{%
+      \ifhep at serif dsrom\else dsss\fi%
+    }{m}{n}
+  \else
+    \ifhep at ams\else
+      \SetMathAlphabet{\mathbb}{normal}{U}{%
+        \ifhep at serif dsrom\else dsss\fi%
+      }{m}{n}
+    \fi
+  \fi
+\fi
 
 \RequirePackage{physics}
 \RequirePackage{cancel}
 \RequirePackage{slashed}
 \RequirePackage{units}
-
 \newcommand{\inv}[2][1]{#2\ensuremath{^{-#1}}}
-
 \AtBeginDocument{\mathdef{\d}{\dd}}
-
 \newcommand{\oset}[3][-1pt]{%
   \raisebox{1pt}{\ensuremath{\mathop{#3}\limits^{%
         \vbox to#1{\kern-2\ex@\hbox{$\scriptscriptstyle#2$}\vss}%
@@ -293,7 +355,6 @@
 \renewcommand{\dbltopfraction}{.9} % .7
 \renewcommand{\textfraction}{.1} % .2
 \renewcommand{\floatpagefraction}{.8} % .5
-
 \let\@figure@\figure%
 \let\@end at figure@\endfigure%
 \let\@table@\table%
@@ -362,7 +423,6 @@
     \begin at subcaption@minipage[#1]{#2\linewidth}%
   \fi%
 }{\endminipage}
-
 \ifhep at revtex
   \RequirePackage{ragged2e}
   \DeclareCaptionFormat{revtex}{#1#2\justifying{#3}}
@@ -384,48 +444,82 @@
 
 \ifhep at title
 \date{}
+\RequirePackage{titling}
+\let\hep at preprint@font\relax
+\newcommand{\preprintfont}[1]{\def\hep at preprint@font{#1}}
+\let\hep at title@font\relax
+\newcommand{\titlefont}[1]{\def\hep at title@font{#1}}
+\let\hep at subtitle@font\relax
+\newcommand{\subtitlefont}[1]{\def\hep at subtitle@font{#1}}
+\let\hep at author@font\relax
+\newcommand{\authorfont}[1]{\def\hep at author@font{#1}}
+\let\hep at affiliation@font\relax
+\newcommand{\affiliationfont}[1]{\def\hep at affiliation@font{#1}}
+\let\hep at date@font\relax
+\newcommand{\datefont}[1]{\def\hep at date@font{#1}}
+\newcommand{\presubtitle}[1]{\def\hep at pre@sub at title{#1}}
+\newcommand{\subtitle}[1]{\def\sub at title{#1}}
+\newcommand{\postsubtitle}[1]{\def\hep at post@sub at title{#1}}
+\renewcommand{\maketitlehookb}{%
+  \@ifundefined{sub at title}{}{%
+    \hep at pre@sub at title\sub at title\hep at post@sub at title%
+  }%
+}
+\pretitle{\begin{center}\LARGE\hep at title@font}
+\posttitle{\par\end{center}}
+\presubtitle{\begin{center}\large\hep at subtitle@font}
+\postsubtitle{\par\end{center}}
+\preauthor{%
+  \begin{center}\large\hep at author@font\lineskip.5em\begin{tabular}[t]{c}%
+}
+\postauthor{\end{tabular}\par\end{center}}
+\predate{\begin{center}\hep at date@font}
+\postdate{\par\end{center}}
 \author{}
 \RequirePackage{authblk}
-\renewcommand\Affilfont{\footnotesize}
-\newcommand{\email}[1]{\online{mailto:#1}{#1}}
+\renewcommand{\Affilfont}{\small\hep at affiliation@font}
+\renewcommand\Authfont{\hep at author@font}
 \let\hep at author\author
 \def\author{%
   \renewcommand{\email}[1]{\unskip\thanks{\online{mailto:##1}{##1}}}%
   \hep at author
 }
-\newcommand\active at comma{,\penalty-5\relax}
-\newcommand\cat at comma@active{\catcode`\,\active}
-{\cat at comma@active\gdef,{\active at comma}}
-\newcommand\@affil[1]{%
+\newcommand\hep at active@comma{,\penalty-5\relax}
+\newcommand\hep at cat@comma at active{\catcode`\,\active}
+{\hep at cat@comma at active\gdef,{\hep at active@comma}}
+\newcommand\hep at affil[1]{%
   \endgroup\@flushglue=0pt plus .5\linewidth\affil{#1}%
 }
-\def\@affil at opt[#1]#2{%
+\def\hep at affil@opt[#1]#2{%
   \endgroup\@flushglue=0pt plus .5\linewidth\affil[#1]{#2}%
 }
-\DeclareRobustCommand\@affiliation{\@ifnextchar[{\@affil at opt}{\@affil}}
-\newcommand{\affiliation}{\begingroup\cat at comma@active\@affiliation}
+\DeclareRobustCommand\hep at affiliation{%
+  \@ifnextchar[{\hep at affil@opt}{\hep at affil}%
+}
+\newcommand{\affiliation}{%
+  \begingroup\hep at cat@comma at active\hep at affiliation%
+}
 
-\let\@preprint\relax
-\newcommand\preprint[1]{\long\gdef\@preprint{#1}}
+\let\hep at preprint\relax
+\newcommand\preprint[1]{\def\hep at preprint{#1}}
 \RequirePackage{varwidth}
-\newcommand{\@preprint at box}{%
+\newcommand{\hep at preprint@box}{%
   \begin{varwidth}{\textwidth}%
-    \textsc{\small\@preprint}%
+    \small\hep at preprint@font\hep at preprint%
   \end{varwidth}%
 }
-
+\preprintfont{\sc}
 \RequirePackage{atbegshi}
 \RequirePackage{picture}
-\let\hep at maketitle\maketitle
-\renewcommand{\maketitle}{%
-  \hep at maketitle%
+\newcommand{\placepreprint}{%
   \AtBeginShipoutFirst{%
     \put(
-      \textwidth+\oddsidemargin-\widthof{\@preprint at box},
-      -2pt-\topmargin-\heightof{\@preprint at box}
-    ){\normalfont\@preprint at box}
+      \textwidth+\oddsidemargin-\widthof{\hep at preprint@box},
+      -2pt-\topmargin-\heightof{\hep at preprint@box}
+    ){\normalfont\hep at preprint@box}
   }
 }
+\renewcommand{\maketitlehooka}{\placepreprint\vspace{-\bigskipamount}}
 
 \@ifundefined{abstract}{}{%
   \let\hep at abstract\abstract%
@@ -608,10 +702,8 @@
   \fi%
 }
 \let\hep at ref\ref
-\AtBeginDocument{\renewcommand\ref{\no at break@before\labelcref}}
-
+\AtBeginDocument{\renewcommand\ref{\no at break@before\hep at ref}}
 \renewcommand\eqref{\no at break@before\labelcref}
-
 \let\hep at subref\subref
 \renewcommand\subref{\no at break@before\hep at subref}
 \renewcommand*\subcaption at ref[2]{\begingroup%
@@ -618,14 +710,11 @@
   \caption at setoptions{sub}%
   \subcaption at reffmt\p at subref{\hep at ref#1{sub@#2}}%
 \endgroup}
-
 \newcommand{\subcref}[1]{\cref{sub@#1}}
-
 \NewDocumentCommand{\eqcrefname}{mmo}{
   \crefname{#1}{#2}{\IfValueTF{#3}{#3}{#2s}}
   \creflabelformat{#1}{(##2##1##3)}
 }
-
 \DeclareRobustCommand{\labelcrefrange}[2]{%
   \@crefrangenostar{labelcref}{#1}{#2}%
 }
@@ -633,7 +722,6 @@
 
 \let\hep at cite\cite
 \renewcommand\cite{\no at break@before\hep at cite}
-
 \ifnum\pdf at strcmp{\hep at bibliography}{false}=0\else
 \NewBibliographyString{refname}
 \NewBibliographyString{refsname}
@@ -678,17 +766,14 @@
     \glsdohypertarget{#1}{#2}%
   }%
 }}
-
 \RequirePackage[excludeor]{everyhook}
 \newcommand{\begin at sentence}{1001}
 \PushPostHook{par}{{\spacefactor=\begin at sentence}}
-
 \def\frenchspacing{%
   \sfcode`\.\begin at sentence \sfcode`\?\begin at sentence
   \sfcode`\!\begin at sentence \sfcode`\:\begin at sentence
   \sfcode`\;\@m \sfcode`\,\@m
 }
-
 \newcommand{\if at begin@of at sentence}[2]{\leavevmode\protecting{%
   \ifboolexpr{ test {\ifnumcomp{\spacefactor}{=}{3000}} or%
                test {\ifnumcomp{\spacefactor}{=}{2000}} or%
@@ -695,7 +780,6 @@
                test {\ifnumcomp{\spacefactor}{=}{\begin at sentence}}%
   }{#1}{#2}%
 }}
-
 \NewDocumentCommand{\acronym}{somsmo}{
   \newabbreviation[
     type=\acronymtype,



More information about the tex-live-commits mailing list.