summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-07-14 21:09:21 +0000
committerKarl Berry <karl@freefriends.org>2023-07-14 21:09:21 +0000
commitbbb03c1fc0127127c603a65b7d7bd6ee4a1ebe15 (patch)
tree5898e50cdde69ff40c4e74419b16ea4b25a852ef /Master/texmf-dist/source
parent0c96e0274d668f42cffaf17536417a5af6a3ba48 (diff)
hep-* (14jul23)
git-svn-id: svn://tug.org/texlive/trunk@67632 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/fonts/hep-font/hep-font-implementation.dtx72
-rw-r--r--Master/texmf-dist/source/fonts/hep-font/hep-font.ins4
-rw-r--r--Master/texmf-dist/source/fonts/hep-math-font/hep-math-font-implementation.dtx55
-rw-r--r--Master/texmf-dist/source/fonts/hep-math-font/hep-math-font.ins4
-rw-r--r--Master/texmf-dist/source/latex/hep-acronym/hep-acronym-implementation.dtx156
-rw-r--r--Master/texmf-dist/source/latex/hep-acronym/hep-acronym.ins4
-rw-r--r--Master/texmf-dist/source/latex/hep-bibliography/hep-bibliography-implementation.dtx244
-rw-r--r--Master/texmf-dist/source/latex/hep-bibliography/hep-bibliography.ins4
-rw-r--r--Master/texmf-dist/source/latex/hep-float/hep-float-implementation.dtx250
-rw-r--r--Master/texmf-dist/source/latex/hep-float/hep-float.ins5
-rw-r--r--Master/texmf-dist/source/latex/hep-math/hep-math-implementation.dtx96
-rw-r--r--Master/texmf-dist/source/latex/hep-math/hep-math.ins4
-rw-r--r--Master/texmf-dist/source/latex/hep-paper/hep-paper-implementation.dtx55
-rw-r--r--Master/texmf-dist/source/latex/hep-paper/hep-paper.ins4
-rw-r--r--Master/texmf-dist/source/latex/hep-reference/hep-reference-implementation.dtx85
-rw-r--r--Master/texmf-dist/source/latex/hep-reference/hep-reference.ins4
-rw-r--r--Master/texmf-dist/source/latex/hep-text/hep-text-implementation.dtx32
-rw-r--r--Master/texmf-dist/source/latex/hep-text/hep-text.ins4
-rw-r--r--Master/texmf-dist/source/latex/hep-title/hep-title-implementation.dtx37
-rw-r--r--Master/texmf-dist/source/latex/hep-title/hep-title.ins4
20 files changed, 789 insertions, 334 deletions
diff --git a/Master/texmf-dist/source/fonts/hep-font/hep-font-implementation.dtx b/Master/texmf-dist/source/fonts/hep-font/hep-font-implementation.dtx
index e5e80643dc9..53f4d712103 100644
--- a/Master/texmf-dist/source/fonts/hep-font/hep-font-implementation.dtx
+++ b/Master/texmf-dist/source/fonts/hep-font/hep-font-implementation.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2019 by Jan Hajer
+% Copyright (C) 2019-2023 by Jan Hajer
% -----------------------------------
%
% This file may be distributed and/or modified under the
@@ -18,33 +18,28 @@
% \iffalse
%
%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-%<package>\ProvidesPackage{hep-font}[2022/11/01 v1.1 hep-font]
-%<documentation>\ProvidesFile{hep-font-documentation.tex}[2022/11/01 v1.1 hep-font documentation]
+%<package>\ProvidesPackage{hep-font}[2023/07/01 v1.2 hep-font]
+%<documentation>\ProvidesFile{hep-font-documentation.tex}[2023/07/01 v1.2 hep-font documentation]
%
%<*documentation>
-
-\RequirePackage[l2tabu, orthodox]{nag}
-
\documentclass{ltxdoc}
+
+\renewcommand\theCodelineNo{\rmfamily\tstyle\footnotesize\arabic{CodelineNo}}
+\AtBeginEnvironment{macrocode}{\renewcommand{\ttdefault}{clmt}}
+\renewcommand{\MacroFont}{\codestyle}
\AtBeginDocument{\DeleteShortVerb{\|}}
\AtBeginDocument{\MakeShortVerb{\"}}
-
\EnableCrossrefs
\CodelineIndex
\RecordChanges
-\usepackage[parskip]{hep-paper}
+\usepackage{hologo}
+\usepackage[parskip,oldstyle,font=10pt]{hep-paper}
\bibliography{bibliography}
-
\acronym{CM}{computer modern}
\acronym{LM}{latin modern}
\acronym{NFSS}{new font selection scheme}
-
-\usepackage{hologo}
-
-\MacroIndent=1.5em
-\AtBeginEnvironment{macrocode}{\renewcommand{\ttdefault}{clmt}}
%</documentation>
%<*driver>
@@ -57,7 +52,7 @@
%
% \fi
%
-% \CheckSum{496}
+% \CheckSum{498}
%
% \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
@@ -76,7 +71,7 @@
% Right brace \} Tilde \~}
%
% \changes{v1.0}{2021/09/01}{Initial version of the style file.}
-% \changes{v1.1}{2022/11/01}{Bug fixes.}
+% \changes{v1.1}{2023/07/01}{Bug fixes.}
%
% \ifshort
%<*documentation>
@@ -164,14 +159,14 @@ Finally the \software{inputenc} package \cite{inputenc} with the "utf8" option i
% \end{macrocode}
%
% \begin{macro}{size}
-% Define the "size" switching taking the font size as an argument.
+% Define the "size" option switching taking the font size as an argument.
% \begin{macrocode}
\DeclareStringOption[11pt]{size}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{sans}
-% Define the "sans" switching to sans serif font.
+% Define the "sans" option switching to sans serif font.
% \begin{macrocode}
\DeclareBoolOption[false]{sans}
\DeclareComplementaryOption{serif}{sans}
@@ -199,6 +194,7 @@ Finally the \software{inputenc} package \cite{inputenc} with the "utf8" option i
\@ifclasswith{\hepfont@class}{10pt}{\setkeys{hepfont}{size=10pt}}{}
\@ifclasswith{\hepfont@class}{11pt}{\setkeys{hepfont}{size=11pt}}{}
\@ifclasswith{\hepfont@class}{12pt}{\setkeys{hepfont}{size=12pt}}{}
+\@ifpackageloaded{jheppub}{\setkeys{hepfont}{size=default}}{}
% \end{macrocode}
%
% \begin{macro}{\ifxetexorluatex}
@@ -264,28 +260,27 @@ Finally the \software{inputenc} package \cite{inputenc} with the "utf8" option i
\RequirePackage{cfr-lm}
\fi
% \end{macrocode}
+% Ensure that the table of contest uses tabular figures using the \software{xpatch} package \cite{xpatch}.
+% \begin{macrocode}
+\RequirePackage{xpatch}
+\xpretocmd{\@dottedtocline}{\tstyle}{}{}
+\xpatchcmd{\@dottedtocline}{\normalfont}{\normalfont\tstyle}{}{}
+\xpretocmd{\l@section}{\tstyle}{}{}
+\xpretocmd{\l@chapter}{\tstyle}{}{}
+\xpretocmd{\l@part}{\tstyle}{}{}
+% \end{macrocode}
% Ensure that the "verbatim" environment uses proportional font and provide an inline "\code" macro.
% Work around a bug in \software{nfssext-cfr} which defines a global "\set" macro and breaks other macros of the same name.
% \begin{macrocode}
-% \let\hep@verbatim\verbatim
-% \renewcommand\verbatim{\hep@verbatim\tmstyle}
-% \RequirePackage{etoolbox}
-% \AtBeginDocument{
-% \ifdefined\set
-% \AtBeginEnvironment{verbatim}{\global\let\hep@set\set\tmstyle}
-% \AfterEndEnvironment{verbatim}{\renewcommand\set{\hep@set}}
-% \else
-% \AtBeginEnvironment{verbatim}{\tmstyle}
-% \fi
-% }
-\let\verbatim@font\tmstyle
+\newcommand{\codestyle}{\tmstyle\lstyle}
+\let\verbatim@font\codestyle
\RequirePackage{xparse}
-\ProvideDocumentCommand{\code}{v}{{\tmstyle #1}}
+\ProvideDocumentCommand{\code}{v}{{\codestyle #1}}
% \end{macrocode}
% Adjust the figures according to the "lining" option and ensure that tables always use lining.
% \begin{macrocode}
-% \RequirePackage{etoolbox}
-% \AtBeginEnvironment{tabular}{\tlstyle}
+\g@addto@macro\@floatboxreset{\tlstyle}
+% \g@addto@macro\@subfloatboxreset{\tlstyle}
% \end{macrocode}
%
% Load the \software{textcomp} extension \cite{textcomp} and define helper functions.
@@ -547,7 +542,9 @@ Latin modern extended by computer modern.
## Introduction
-The `hep-font` package loads standard font packages and extends the usual Latin Modern implementations by replacing missing fonts with Computer Modern counterparts.
+The `hep-font` package loads standard font packages and extends the usual
+Latin Modern implementations by replacing missing fonts with Computer
+Modern counterparts.
The package is loaded with `\usepackage{hep-font}`.
@@ -557,8 +554,11 @@ Jan Hajer
## License
-This file may be distributed and/or modified under the conditions of the `LaTeX` Project Public License, either version 1.3c of this license or (at your option) any later version.
-The latest version of this license is in `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.
+This file may be distributed and/or modified under the conditions of the
+`LaTeX` Project Public License, either version 1.3c of this license or
+(at your option) any later version. The latest version of this license is
+in `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.
% \end{macrocode}
%
%</readme>
diff --git a/Master/texmf-dist/source/fonts/hep-font/hep-font.ins b/Master/texmf-dist/source/fonts/hep-font/hep-font.ins
index 1bd0446a1e4..6ab796da16f 100644
--- a/Master/texmf-dist/source/fonts/hep-font/hep-font.ins
+++ b/Master/texmf-dist/source/fonts/hep-font/hep-font.ins
@@ -1,4 +1,4 @@
-%% Copyright (C) 2019-2020 by Jan Hajer
+%% Copyright (C) 2019-2023 by Jan Hajer
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -16,7 +16,7 @@
\preamble
This is a generated file.
-Copyright (C) 2019-2020 by Jan Hajer
+Copyright (C) 2019-2023 by Jan Hajer
This file may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
version 1.3c of this license or (at your option) any later
diff --git a/Master/texmf-dist/source/fonts/hep-math-font/hep-math-font-implementation.dtx b/Master/texmf-dist/source/fonts/hep-math-font/hep-math-font-implementation.dtx
index ba55da5855b..15ddf262a41 100644
--- a/Master/texmf-dist/source/fonts/hep-math-font/hep-math-font-implementation.dtx
+++ b/Master/texmf-dist/source/fonts/hep-math-font/hep-math-font-implementation.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2019 by Jan Hajer
+% Copyright (C) 2019-2023 by Jan Hajer
% -----------------------------------
%
% This file may be distributed and/or modified under the
@@ -18,33 +18,28 @@
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-%<package>\ProvidesPackage{hep-math-font}[2022/11/01 v1.1 selection of math fonts for latin modern]
-%<documentation>\ProvidesFile{hep-math-font-documentation.tex}[2022/11/01 v1.1 hep-math-Font documentation]
+%<package>\ProvidesPackage{hep-math-font}[2023/07/01 v1.2 selection of math fonts for latin modern]
+%<documentation>\ProvidesFile{hep-math-font-documentation.tex}[2023/07/01 v1.2 hep-math-Font documentation]
%
%<*documentation>
-
-\RequirePackage[l2tabu, orthodox]{nag}
-
\documentclass{ltxdoc}
+
+\renewcommand\theCodelineNo{\rmfamily\tstyle\footnotesize\arabic{CodelineNo}}
+\AtBeginEnvironment{macrocode}{\renewcommand{\ttdefault}{clmt}}
+\renewcommand{\MacroFont}{\codestyle}
\AtBeginDocument{\DeleteShortVerb{\|}}
\AtBeginDocument{\MakeShortVerb{\"}}
-
\EnableCrossrefs
\CodelineIndex
\RecordChanges
-\usepackage[parskip]{hep-paper}
+\usepackage{hologo}
+\usepackage{fonttable}
+\usepackage[parskip,oldstyle,font=10pt]{hep-paper}
\bibliography{bibliography}
-
\acronym{CM}{computer modern}
\acronym{LM}{latin modern}
-
-\usepackage{hologo}
-\usepackage{fonttable}
-
-\MacroIndent=1.5em
-\AtBeginEnvironment{macrocode}{\renewcommand{\ttdefault}{clmt}}
%</documentation>
%<*driver>
@@ -57,7 +52,7 @@
%
% \fi
%
-% \CheckSum{794}
+% \CheckSum{802}
%
% \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
@@ -76,7 +71,7 @@
% Right brace \} Tilde \~}
%
% \changes{v1.0}{2021/09/01}{Initial version of the style file.}
-% \changes{v1.1}{2022/11/01}{Bug fixes.}
+% \changes{v1.1}{2023/07/01}{Bug fixes.}
%
% \ifshort
%<*documentation>
@@ -344,7 +339,11 @@ Hence, the minion option uses three to four more math alphabets than a usual set
% \begin{macrocode}
\RequirePackage{pdftexcmds}
\newif\ifhepmathfont@symbols
-\ifnum\pdf@strcmp{\hepmathfont@symbols}{false}=0\else\hepmathfont@symbolstrue\fi
+\ifnum
+ \pdf@strcmp{\hepmathfont@symbols}{false}=0
+\else
+ \hepmathfont@symbolstrue
+\fi
\newif\ifhep@ams
\ifnum\pdf@strcmp{\hepmathfont@symbols}{ams}=0 \hep@amstrue\fi
\newif\ifhep@minion
@@ -372,6 +371,9 @@ Hence, the minion option uses three to four more math alphabets than a usual set
\newcommand\hep@font@sf{cmssm}
\DeclareMathAlphabet{\mathsf}{OML}{\hep@font@sf}{m}{it}
\SetMathAlphabet{\mathsf}{bold}{OML}{\hep@font@sf}{b}{it}
+ \newcommand\hep@textfont@sf{lmss}
+ \DeclareMathAlphabet{\mathsftext}{OT1}{\hep@textfont@sf}{m}{n}
+ \SetMathAlphabet{\mathsftext}{bold}{OT1}{\hep@textfont@sf}{bx}{n}
% \end{macrocode}
% \end{macro}
% Define fonts for sans-serif documents.
@@ -603,7 +605,7 @@ Hence, the minion option uses three to four more math alphabets than a usual set
% \subsubsection{TextCompositeCommands for the generic macros}
%
% The NFSS TextComposite mechanism looks for the next token without expanding it.
-% In order to let compositions like "\ensuregreek{\'\Alpha}" or "\ensuregreek{\>''\alpha}" work as expected we define TextComposites with the `letter name commands`.
+% In order to let compositions like "\ensuregreek{\'\Alpha}" or "\ensuregreek"\allowbreak"{\>''\alpha}" work as expected we define TextComposites with the `letter name commands`.
% (Composition only works if the active font encoding is LGR).
% \begin{macrocode}
\@ifl@aded{def}{tuenc-greek}{\input{alphabeta-tuenc.def}}{}
@@ -807,9 +809,11 @@ Extended Greek and sans-serif math
## Introduction
-The `hep-math-font` package adjust the math fonts to be sans-serif if the document is sans-serif.
-Additionally Greek letters are redefined to be always italic and upright in math and text mode respectively.
-Some math font macros are adjusted to give more consistently the naively expected results.
+The `hep-math-font` package adjust the math fonts to be sans-serif if the
+document is sans-serif. Additionally Greek letters are redefined to be
+always italic and upright in math and text mode respectively. Some math
+font macros are adjusted to give more consistently the naively expected
+results.
The package is loaded using `\usepackage{hep-math-font}`.
@@ -819,8 +823,11 @@ Jan Hajer
## License
-This file may be distributed and/or modified under the conditions of the `LaTeX` Project Public License, either version 1.3c of this license or (at your option) any later version.
-The latest version of this license is in `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.
+This file may be distributed and/or modified under the conditions of the
+`LaTeX` Project Public License, either version 1.3c of this license or
+(at your option) any later version. The latest version of this license is
+in `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.
% \end{macrocode}
%
%</readme>
diff --git a/Master/texmf-dist/source/fonts/hep-math-font/hep-math-font.ins b/Master/texmf-dist/source/fonts/hep-math-font/hep-math-font.ins
index e91d18fb925..d812ead0158 100644
--- a/Master/texmf-dist/source/fonts/hep-math-font/hep-math-font.ins
+++ b/Master/texmf-dist/source/fonts/hep-math-font/hep-math-font.ins
@@ -1,4 +1,4 @@
-%% Copyright (C) 2019-2020 by Jan Hajer
+%% Copyright (C) 2019-2023 by Jan Hajer
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -16,7 +16,7 @@
\preamble
This is a generated file.
-Copyright (C) 2019-2020 by Jan Hajer
+Copyright (C) 2019-2023 by Jan Hajer
This file may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
version 1.3c of this license or (at your option) any later
diff --git a/Master/texmf-dist/source/latex/hep-acronym/hep-acronym-implementation.dtx b/Master/texmf-dist/source/latex/hep-acronym/hep-acronym-implementation.dtx
index ded23522db7..43a4dd900eb 100644
--- a/Master/texmf-dist/source/latex/hep-acronym/hep-acronym-implementation.dtx
+++ b/Master/texmf-dist/source/latex/hep-acronym/hep-acronym-implementation.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2019 by Jan Hajer
+% Copyright (C) 2019-2023 by Jan Hajer
% -----------------------------------
%
% This file may be distributed and/or modified under the
@@ -18,29 +18,27 @@
% \iffalse
%
%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-%<package>\ProvidesPackage{hep-acronym}[2022/11/01 v1.1 Acronyms using glossaries]
-%<documentation>\ProvidesFile{hep-acronym-documentation.tex}[2022/11/01 v1.1 hep-acronym documentation]
+%<package>\ProvidesPackage{hep-acronym}[2023/07/01 v1.2 Acronyms using glossaries]
+%<documentation>\ProvidesFile{hep-acronym-documentation.tex}[2023/07/01 v1.2 hep-acronym documentation]
%
%<*documentation>
-
\RequirePackage[l2tabu, orthodox]{nag}
\documentclass{ltxdoc}
+
+\renewcommand\theCodelineNo{\rmfamily\tstyle\footnotesize\arabic{CodelineNo}}
+\AtBeginEnvironment{macrocode}{\renewcommand{\ttdefault}{clmt}}
+\renewcommand{\MacroFont}{\codestyle}
\AtBeginDocument{\DeleteShortVerb{\|}}
\AtBeginDocument{\MakeShortVerb{\"}}
-
\EnableCrossrefs
\CodelineIndex
\RecordChanges
\usepackage{hologo}
-\usepackage[parskip]{hep-paper}
+\usepackage[parskip,oldstyle,font=10pt]{hep-paper}
\bibliography{bibliography}
-
\acronym{PDF}{portable document format}
-
-\MacroIndent=1.5em
-\AtBeginEnvironment{macrocode}{\renewcommand{\ttdefault}{clmt}}
%</documentation>
%<*driver>
@@ -72,7 +70,7 @@
% Right brace \} Tilde \~}
%
% \changes{v1.0}{2021/09/01}{Initial version of the style file.}
-% \changes{v1.1}{2022/11/01}{Bug fixes.}
+% \changes{v1.1}{2023/07/01}{Bug fixes.}
%
% \ifshort
%<*documentation>
@@ -101,7 +99,7 @@ Acronyms are implemented using the \software{glossaries-extra} package \cite{glo
It can be loaded using "\usepackage{hep-acronym}".
\DescribeMacro{\acronym}
-The "\acronym"\meta{*}\oarg{typeset abbreviation}\marg{abbreviation}\meta{*}\marg{definition}\oarg{plural\linebreak[4]definition} macro generates the singular "\"\meta{abbreviation} and plural "\"\meta{abbreviation}"s" macros.
+The "\acronym"\meta{*}\oarg{typeset abbreviation}\marg{abbreviation}\meta{*}\marg{definition}\oarg{plural definition} macro generates the singular "\"\meta{abbreviation} and plural "\"\meta{abbreviation}"s" macros.
The first star prevents the addition of an \enquote{s} to the abbreviation plural.
The second star restores the \hologo{TeX} default of swallowing subsequent white space.
@@ -119,12 +117,13 @@ The "\sentence" macro ensures that the directly following abbreviation is capita
The "\shortacronym" and "\longacronym" macros are drop-in replacements of the "\acronym" macro showing only the short or long form of their acronym.
\DescribeMacro{\resetacronym}
-\DescribeMacro{\dummyacronym}
The first use form of the acronym can be enforced by resetting the acronym counter with "\resetacronym"\marg{key}.
+\DescribeMacro{\dummyacronym}
If the acronym counter equals one at the end of the document the short form of the acronym is not introduced.
Placing a "\dummyacronym"\marg{key} at the end of the document ensures that the short form is introduced.
+\DescribeMacro{warning}
In order to reduce the number of potentially conflicting packages the \software{glossaries} package is loaded without any glossary style.
In the case that the glossary should be printed additional packages must be loaded via \eg "\usepackage{glossary-list}".
@@ -147,11 +146,32 @@ In the case that the glossary should be printed additional packages must be load
%
%<*package>
%
+% Define a hepacronym namespace for the options using the \software{kvoptions} package \cite{kvoptions}.
+% \begin{macrocode}
+\RequirePackage{kvoptions}
+\SetupKeyvalOptions{
+ family=hepacronym,
+ prefix=hepacronym@
+}
+% \end{macrocode}
+%
+% \begin{macro}{hyper}
+% Define the "hyper" option controlling the hyperlink to the first appearance of the acronyms.
+% \begin{macrocode}
+\DeclareBoolOption[true]{hyper}
+% \end{macrocode}
+% \end{macro}
+%
+% Process options.
+% \begin{macrocode}
+\ProcessKeyvalOptions*
+% \end{macrocode}
+%
% Load the base package \cite{glossaries, glossaries-extra} and set the abbreviation style.
% \begin{macrocode}
\PassOptionsToPackage{nostyles}{glossaries-extra}
\RequirePackage{glossaries-extra}
-\setabbreviationstyle{long-hyphen-short-hyphen}
+% \setabbreviationstyle{long-hyphen-short-hyphen}
% \end{macrocode}
% Use the entry count feature.
% \begin{macrocode}
@@ -191,6 +211,12 @@ In the case that the glossary should be printed additional packages must be load
\@ifpackageloaded{hyperref}{\pdfstringdefDisableCommands{#1}}{}%
}
% \end{macrocode}
+% Deactivate hyperrefs if requested.
+% \begin{macrocode}
+\ifhepacronym@hyper\else
+ \glsdisablehyper
+\fi
+% \end{macrocode}
%
% \begin{macro}{\begin@sentence}
% Mark the beginning of a paragraph as if it would follow a full stop using the \software{everyhook} package \cite{everyhook}.
@@ -290,7 +316,7 @@ In the case that the glossary should be printed additional packages must be load
% Provide the singular acronym macro in math mode.
% \begin{macrocode}
\expandafter\mathdef\csname#3\endcsname{%
- \text{\glsxtrshort{#3}}\@gls@increment@currcount{#3}%
+ \mathinner{\text{\glsxtrshort{#3}}}\@gls@increment@currcount{#3}%
}
% \end{macrocode}
% Provide the plural acronym macro.
@@ -309,7 +335,7 @@ In the case that the glossary should be printed additional packages must be load
% Provide the plural acronym macro in math mode.
% \begin{macrocode}
\expandafter\mathdef\csname#3s\endcsname{%
- \text{\glsxtrshortpl{#3}}\@gls@increment@currcount{#3}%
+ \mathinner{\text{\glsxtrshortpl{#3}}}\@gls@increment@currcount{#3}%
}
% \end{macrocode}
% Provide an enforced long form.
@@ -364,7 +390,7 @@ In the case that the glossary should be printed additional packages must be load
% Provide the singular acronym macro in math mode.
% \begin{macrocode}
\expandafter\mathdef\csname#3\endcsname{%
- \text{\IfNoValueTF{#2}{#3}{#2}}%
+ \mathinner{\text{\IfNoValueTF{#2}{#3}{#2}}}%
}
% \end{macrocode}
% Provide the plural acronym macro.
@@ -383,7 +409,7 @@ In the case that the glossary should be printed additional packages must be load
% Provide the plural acronym macro in math mode.
% \begin{macrocode}
\expandafter\mathdef\csname#3s\endcsname{%
- \text{\IfBooleanTF{#1}{#3}{\IfNoValueTF{#2}{#3s}{#2s}}}%
+ \mathinner{\text{\IfBooleanTF{#1}{#3}{\IfNoValueTF{#2}{#3s}{#2s}}}}%
}%
% \end{macrocode}
% Ensure that long form also exists.
@@ -438,6 +464,89 @@ In the case that the glossary should be printed additional packages must be load
}
% \end{macrocode}
% \end{macro}
+
+% \begin{macro}{\acronymalternative}
+% Allow for alternative long text in abbreviation.
+% \begin{macrocode}
+\NewDocumentCommand{\acronymalternative}{mmsm}{%
+% \end{macrocode}
+% Store it in the "useri" field.
+% \begin{macrocode}
+ \GlsXtrSetField{#1}{useri}{#4}%
+% \end{macrocode}
+% Define the acronym
+% \begin{macrocode}
+ \expandafter\newcommand\csname#2\endcsname[1][]{%
+% \end{macrocode}
+% Redirect the relevant macros to the useri field.
+% \begin{macrocode}
+ \let\hep@glsaccesslong\glsaccesslong%
+ \let\hep@Glsaccesslong\Glsaccesslong%
+ \let\glsaccesslong\glsuseri%
+ \let\Glsaccesslong\Glsuseri%
+% \end{macrocode}
+% Execute abbreviation macros.
+% \begin{macrocode}
+ \if@begin@of@sentence{%
+ \ifglsused{#1}{\cgls{#1}[##1]}{\cGls{#1}[##1]}%
+ }{\cgls{#1}[##1]}%
+% \end{macrocode}
+% Undo the redirection.
+% \begin{macrocode}
+ \let\glsaccesslong\hep@glsaccesslong%
+ \let\Glsaccesslong\hep@Glsaccesslong%
+% \end{macrocode}
+% Spacing code.
+% \begin{macrocode}
+ \ifnum\glsentrycurrcount{#1}>1\relax%
+ \IfBooleanTF{#3}{}{\@\xspace}%
+ \else\@\xspace\fi%
+ }
+% \end{macrocode}
+% Redirect \PDF code to original acronym.
+% \begin{macrocode}
+ \hep@disable{\expandafter\def\csname#2\endcsname{%
+ \csname#1\endcsname }%
+ }
+% \end{macrocode}
+% Redirect math macro to original acronym.
+% \begin{macrocode}
+ \expandafter\mathdef\csname#2\endcsname{%
+ \mathinner{\text{\glsxtrshort{#1}}}\@gls@increment@currcount{#1}%
+ }
+% \end{macrocode}
+% Provie long version of acronym.
+% \begin{macrocode}
+ \expandafter\newcommand\csname#2long\endcsname[1][]{%
+% \end{macrocode}
+% Redirect relevant macros.
+% \begin{macrocode}
+ \let\hep@glsentrydesc\glsentrydesc%
+ \let\hep@Glsentrydesc\Glsentrydesc%
+ \renewrobustcmd*{\glsentrydesc}[1]{\@gls@entry@field{#1}{useri}}%
+ \renewrobustcmd*{\Glsentrydesc}[1]{\@Gls@entry@field{#1}{useri}}%
+% \end{macrocode}
+% Execute relevant macro.
+% \begin{macrocode}
+ \if@begin@of@sentence{\Glsdesc*{#1}[##1]}{\glsdesc*{#1}[##1]}%
+ \IfBooleanTF{#3}{}{\@\xspace}%
+% \end{macrocode}
+% Undo redefinition.
+% \begin{macrocode}
+ \let\glsentrydesc\hep@glsentrydesc%
+ \let\Glsentrydesc\hep@Glsentrydesc%
+ }
+% \end{macrocode}
+% Provie \PDF code.
+% \begin{macrocode}
+ \hep@disable{%
+ \expandafter\def\csname#2long\endcsname{%
+ \@Gls@entry@field{#1}{useri} %
+ }%
+ }%
+}
+% \end{macrocode}
+% \end{macro}
% Silence warning if no acronyms are defined.
% \begin{macrocode}
\renewcommand*{\@gls@write@entrycounts}{%
@@ -562,8 +671,8 @@ An acronym extension for glossaries
## Introduction
-The `hep-acronym` package provides an acronym macro based on the `glossaries` package.
-It can be loaded using `\usepackage{hep-acronym}`.
+The `hep-acronym` package provides an acronym macro based on the
+`glossaries` package. It can be loaded using `\usepackage{hep-acronym}`.
## Author
@@ -571,8 +680,11 @@ Jan Hajer
## License
-This file may be distributed and/or modified under the conditions of the `LaTeX` Project Public License, either version 1.3c of this license or (at your option) any later version.
-The latest version of this license is in `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.
+This file may be distributed and/or modified under the conditions of the
+`LaTeX` Project Public License, either version 1.3c of this license or
+(at your option) any later version. The latest version of this license is
+in `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.
% \end{macrocode}
%
%</readme>
diff --git a/Master/texmf-dist/source/latex/hep-acronym/hep-acronym.ins b/Master/texmf-dist/source/latex/hep-acronym/hep-acronym.ins
index ca6cb5b42a9..6cb8e09ed69 100644
--- a/Master/texmf-dist/source/latex/hep-acronym/hep-acronym.ins
+++ b/Master/texmf-dist/source/latex/hep-acronym/hep-acronym.ins
@@ -1,4 +1,4 @@
-%% Copyright (C) 2019 by Jan Hajer
+%% Copyright (C) 2019-2023 by Jan Hajer
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -16,7 +16,7 @@
\preamble
This is a generated file.
-Copyright (C) 2019 by Jan Hajer
+Copyright (C) 2019-2023 by Jan Hajer
This file may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
version 1.3c of this license or (at your option) any later
diff --git a/Master/texmf-dist/source/latex/hep-bibliography/hep-bibliography-implementation.dtx b/Master/texmf-dist/source/latex/hep-bibliography/hep-bibliography-implementation.dtx
index 96a94f48ca0..db8c66d224e 100644
--- a/Master/texmf-dist/source/latex/hep-bibliography/hep-bibliography-implementation.dtx
+++ b/Master/texmf-dist/source/latex/hep-bibliography/hep-bibliography-implementation.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2019 by Jan Hajer
+% Copyright (C) 2019-2023 by Jan Hajer
% -----------------------------------
%
% This file may be distributed and/or modified under the
@@ -18,31 +18,28 @@
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-%<package>\ProvidesPackage{hep-bibliography}[2022/11/01 v1.1 HEP-Bibliography]
-%<datamodel>\ProvidesFile{hep-bibliography.dbx}[2022/11/01 v1.1 HEP-Bibliography biblatex data model]
-%<documentation>\ProvidesFile{hep-bibliography-documentation.tex}[2022/11/01 v1.1 HEP-Bibliography documentation]
+%<package>\ProvidesPackage{hep-bibliography}[2023/07/01 v1.2 HEP-Bibliography]
+%<datamodel>\ProvidesFile{hep-bibliography.dbx}[2023/07/01 v1.2 HEP-Bibliography biblatex data model]
+%<documentation>\ProvidesFile{hep-bibliography-documentation.tex}[2023/07/01 v1.2 HEP-Bibliography documentation]
%
%<*documentation>
-
\RequirePackage[l2tabu, orthodox]{nag}
\documentclass{ltxdoc}
+
+\renewcommand\theCodelineNo{\rmfamily\tstyle\footnotesize\arabic{CodelineNo}}
+\AtBeginEnvironment{macrocode}{\renewcommand{\ttdefault}{clmt}}
+\renewcommand{\MacroFont}{\codestyle}
\AtBeginDocument{\DeleteShortVerb{\|}}
\AtBeginDocument{\MakeShortVerb{\"}}
-
\EnableCrossrefs
\CodelineIndex
\RecordChanges
-\usepackage[parskip]{hep-paper}
+\usepackage{hologo}
+\usepackage[parskip,oldstyle,font=10pt]{hep-paper}
\bibliography{bibliography}
-
\acronym{URL}{uniform resource locator}
-
-\usepackage{hologo}
-
-\MacroIndent=1.5em
-\AtBeginEnvironment{macrocode}{\renewcommand{\ttdefault}{clmt}}
%</documentation>
%<*driver>
@@ -74,7 +71,7 @@
% Right brace \} Tilde \~}
%
% \changes{v1.0}{2021/09/01}{Initial version of the style file.}
-% \changes{v1.1}{2022/11/01}{Bug fixes.}
+% \changes{v1.1}{2023/07/01}{Bug fixes.}
%
% \ifshort
%<*documentation>
@@ -108,7 +105,7 @@ The \software{biblatex} package \cite{biblatex} is loaded for bibliography manag
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.
-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.
+Additionally, \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}
@@ -199,7 +196,10 @@ Errata can be included using the "related" feature.
% \begin{macro}{\bibliography}
% Load the \software{biblatex} package \cite{biblatex} with the datamodel defined in \cref{sec:data model}.
% \begin{macrocode}
-\PassOptionsToPackage{style=\hepbib@style, datamodel=hep-bibliography}{biblatex}
+\PassOptionsToPackage{
+ style=\hepbib@style,
+ datamodel=hep-bibliography
+}{biblatex}
\RequirePackage{biblatex}
% \end{macrocode}
% \end{macro}
@@ -228,39 +228,81 @@ Errata can be included using the "related" feature.
safeinputenc,
giveninits=true,
maxbibnames=7,
- backref=true
}
% \end{macrocode}
%
-% Hide the backrefs but use the information to link the index to the page of first citation.
+%
+% Redefine the "pages" filed such that leading zeros are stripped from the page numbers.
+% \begin{macrocode}
+\newcommand\hep@strip@zero[1]{\expandafter\hep@strip@zero@helper#1}
+\newcommand\hep@strip@zero@helper[1]{%
+ \ifx0#1\expandafter\hep@strip@zero@helper\else#1\fi%
+}
+\DeclareFieldFormat{pages}{%
+ \mkpageprefix[bookpagination][{\mknormrange[][\hep@strip@zero]}]{#1}%
+}
+% \end{macrocode}
+%
+% Define an internal bibhypertarget.
% \begin{macrocode}
-\renewbibmacro*{pageref}{}%
-\def\blxjk@grabfirslisttitem#1#2\@nil{#1}
-\DeclareFieldFormat{labelnumberwidth}{%
- \iflistundef{pageref}{%
- \mkbibbrackets{#1}%
- }{%
- \edef\blxjk@firstpage{%
- \expandafter\blxjk@grabfirslisttitem\abx@list@pageref{}\@nil%
- }%
- \ifhyperref{%
- \hyperlink{page.\blxjk@firstpage}{\mkbibbrackets{#1}}%
- }{%
- \mkbibbrackets{#1}%
- }%
+\DeclareFieldFormat{bibhypertarget}{%
+ \bibhypertarget{\thefield{entrykey}:\the\value{instcount}}{#1}%
+}
+% \end{macrocode}
+% Redefine the citation command to set the bibhypertarget and call the cite:save macro.
+% \begin{macrocode}
+\renewbibmacro*{cite:comp}{%
+ \printtext[bibhypertarget]{%
+ \stepcounter{cbx@tempcntb}%
+ \iffieldundef{shorthand}{%
+ \ifbool{bbx:subentry}{%
+ \iffieldundef{entrysetcount}{%
+ \usebibmacro{cite:comp:comp}}{\usebibmacro{cite:comp:inset}%
+ }%
+ }{\usebibmacro{cite:comp:comp}}%
+ }{\usebibmacro{cite:comp:shand}}%
}%
+ \usebibmacro{cite:save}%
+}
+% \end{macrocode}
+% Define the cite:safe macro
+% \begin{macrocode}
+\newbibmacro*{cite:save}{%
+ \ifcsundef{cbx@\thefield{entrykey}}{%
+ \csxdef{cbx@\thefield{entrykey}}{\the\value{instcount}}%
+ }{}%
+}
+% \end{macrocode}
+% Link from the bibliography to the first cite.
+% \begin{macrocode}
+\newbibmacro{cbx:linktofirstcite}[1]{%
+ \ifcsdef{cbx@\thefield{entrykey}}{%
+ \bibhyperlink{%
+ \thefield{entrykey}:\csuse{cbx@\thefield{entrykey}}%
+ }{#1}%
+ }{#1}%
+}
+% \end{macrocode}
+% Ensure table style numbers in the bibliography labels.
+% \begin{macrocode}
+\providecommand{\tstyle}{}
+\DeclareFieldFormat{labelnumberwidth}{%
+ \usebibmacro{cbx:linktofirstcite}{\mkbibbrackets{\tstyle#1}}%
+}
+% \end{macrocode}
+% Deactivate counting during caption measurement.
+% \begin{macrocode}
+\AtBeginDocument{\@ifpackageloaded{caption}{%
+ \g@addto@macro\caption@prepareslc{\let\blx@citeprint\relax}}{}%
}
% \end{macrocode}
%
% Shrink the biblography in two column mode.
% \begin{macrocode}
-% \newif\ifhep@journal\hep@journalfalse
-% \ifhep@journal\else
- \if@twocolumn
- \AtBeginBibliography{\small}
- \setlength\biblabelsep{\labelsep}
- \fi
-% \fi
+\if@twocolumn
+ \AtBeginBibliography{\small}
+ \setlength\biblabelsep{\labelsep}
+\fi
% \end{macrocode}
%
% \begin{macro}{translationof}
@@ -295,16 +337,16 @@ Errata can be included using the "related" feature.
% \subsection{Sourcemap}
%
-% \begin{macro}{\reg@exp@one}
-% \begin{macro}{\reg@exp@two}
-% \begin{macro}{\reg@exp@url}
-% \begin{macro}{\reg@exp@pmc}
+% \begin{macro}{\hep@reg@exp@one}
+% \begin{macro}{\hep@reg@exp@two}
+% \begin{macro}{\hep@reg@exp@url}
+% \begin{macro}{\hep@reg@exp@pmc}
% Define regular expressions in order to deal with inconsistent journal title and volume naming as well as \URL protocols and the PMCID.
% \begin{macrocode}
-\newcommand{\reg@exp@one}{\regexp{\A(\p{L}+)?\d+(\p{L}+)?\Z}}
-\newcommand{\reg@exp@two}{\regexp{\A(\p{L}+)?(\d+)(\p{L}+)?\Z}}
-\newcommand{\reg@exp@url}{\regexp{\A(ht|f)tp(s)?:\/\/}}
-\newcommand{\reg@exp@pmc}{\regexp{\A(PMC)?}}
+\newcommand{\hep@reg@exp@one}{\regexp{\A(\p{L}+)?\d+(\p{L}+)?\Z}}
+\newcommand{\hep@reg@exp@two}{\regexp{\A(\p{L}+)?(\d+)(\p{L}+)?\Z}}
+\newcommand{\hep@reg@exp@url}{\regexp{\A(ht|f)tp(s)?:\/\/}}
+\newcommand{\hep@reg@exp@pmc}{\regexp{\A(PMC)?}}
% \end{macrocode}
% \end{macro}
% \end{macro}
@@ -340,8 +382,8 @@ Errata can be included using the "related" feature.
% \begin{macrocode}
\map[overwrite]{
\pertype{article}
- \step[fieldsource=volume, match=\reg@exp@one, final]
- \step[fieldsource=volume, match=\reg@exp@two, replace={$2}]
+ \step[fieldsource=volume, match=\hep@reg@exp@one, final]
+ \step[fieldsource=volume, match=\hep@reg@exp@two, replace={$2}]
\step[fieldsource=journal, fieldtarget=journaltitle]
\step[fieldset=journaltitle, fieldvalue={\space$1$2}, append=true]
}
@@ -353,7 +395,8 @@ Errata can be included using the "related" feature.
\map{
\step[fieldsource=url, final=true]
\step[fieldset=protocollessurl, origfieldval, final=true]
- \step[fieldsource=protocollessurl, match=\reg@exp@url, replace={}]
+ \step[fieldsource=protocollessurl,
+ match=\hep@reg@exp@url, replace={}]
}
% \end{macrocode}
% \end{macro}
@@ -363,7 +406,7 @@ Errata can be included using the "related" feature.
\map{
\step[fieldsource=pmcid, final=true]
\step[fieldset=pmc, origfieldval, final=true]
- \step[fieldsource=pmc, match=\reg@exp@pmc, replace={}]
+ \step[fieldsource=pmc, match=\hep@reg@exp@pmc, replace={}]
}
}%
}
@@ -431,10 +474,10 @@ Errata can be included using the "related" feature.
% \end{macrocode}
% \end{macro}
%
-% \begin{macro}{\bib@online}
-% Private "\bib@online" macro
+% \begin{macro}{\hep@bib@online}
+% Private "\hep@bib@online" macro
% \begin{macrocode}
-\newcommand{\bib@online}[2]{%
+\newcommand{\hep@bib@online}[2]{%
\ifhyperref{\online{#1}{#2}}{\nolinkurl{#2}}%
}
% \end{macrocode}
@@ -446,11 +489,11 @@ Errata can be included using the "related" feature.
% \begin{macrocode}
\DeclareFieldFormat{pmid}{%
\mkbibacro{PM}\addcolon\space%
- \bib@online{https://www.ncbi.nlm.nih.gov/pubmed/#1}{#1}%
+ \hep@bib@online{https://www.ncbi.nlm.nih.gov/pubmed/#1}{#1}%
}
\DeclareFieldFormat{pmc}{%
\mkbibacro{PMC}\addcolon\space%
- \bib@online{https://www.ncbi.nlm.nih.gov/pmc/articles/PMC#1}{#1}%
+ \hep@bib@online{https://www.ncbi.nlm.nih.gov/pmc/articles/PMC#1}{#1}%
}
% \end{macrocode}
% \end{macro}
@@ -479,22 +522,38 @@ Errata can be included using the "related" feature.
% \subsection{Eprints}
%
-% \begin{macro}{\new@eprint}
-% Private "\new@eprint" macro
+% \begin{macro}{\hep@eprint}
+% Private "\hep@eprint" macro
% \begin{macrocode}
-\NewDocumentCommand{\new@eprint}{smm}{
+\NewDocumentCommand{\hep@eprint}{smm}{
\DeclareFieldFormat{eprint:#2}{%
\newcommand{\@path}{\IfBooleanT{#1}{\thefield{eprintclass}/}##1}%
- #2\addcolon\space\bib@online{#3/\@path}{\@path}%
+ #2\addcolon\space\hep@bib@online{#3/\@path}{\@path}%
}%
}
% \end{macrocode}
% \end{macro}
%
+% \begin{macro}{CDS}
+% Add CERN Document server as a eprint option
+% \begin{macrocode}
+\hep@eprint{CDS}{https://cds.cern.ch/record}
+\DeclareFieldAlias{eprint:cds}{eprint:CDS}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{HEPData}
+% Add the repository for publication-related High-Energy Physics data as a eprint option
+% \begin{macrocode}
+\hep@eprint{HEPData}{https://www.hepdata.net/record}
+\DeclareFieldAlias{eprint:hepdata}{eprint:HEPData}
+% \end{macrocode}
+% \end{macro}
+%
% \begin{macro}{CTAN}
% Add CTAN as a eprint option
% \begin{macrocode}
-\new@eprint{CTAN}{https://ctan.org/pkg}
+\hep@eprint{CTAN}{https://ctan.org/pkg}
\DeclareFieldAlias{eprint:ctan}{eprint:CTAN}
% \end{macrocode}
% \end{macro}
@@ -502,7 +561,7 @@ Errata can be included using the "related" feature.
% \begin{macro}{GitHub}
% Add GitHub as a eprint option
% \begin{macrocode}
-\new@eprint*{GitHub}{https://github.com}
+\hep@eprint*{GitHub}{https://github.com}
\DeclareFieldAlias{eprint:github}{eprint:GitHub}
% \end{macrocode}
% \end{macro}
@@ -510,7 +569,7 @@ Errata can be included using the "related" feature.
% \begin{macro}{GitLab}
% Add GitLab as a eprint option
% \begin{macrocode}
-\new@eprint*{GitLab}{https://gitlab.com}
+\hep@eprint*{GitLab}{https://gitlab.com}
\DeclareFieldAlias{eprint:gitlab}{eprint:GitLab}
% \end{macrocode}
% \end{macro}
@@ -518,7 +577,7 @@ Errata can be included using the "related" feature.
% \begin{macro}{Bitbucket}
% Add Bitbucket as a eprint option
% \begin{macrocode}
-\new@eprint*{Bitbucket}{https://bitbucket.org}
+\hep@eprint*{Bitbucket}{https://bitbucket.org}
\DeclareFieldAlias{eprint:bitbucket}{eprint:Bitbucket}
% \end{macrocode}
% \end{macro}
@@ -526,7 +585,7 @@ Errata can be included using the "related" feature.
% \begin{macro}{Launchpad}
% Add Launchpad as a eprint option
% \begin{macrocode}
-\new@eprint{Launchpad}{https://launchpad.net}
+\hep@eprint{Launchpad}{https://launchpad.net}
\DeclareFieldAlias{eprint:launchpad}{eprint:Launchpad}
% \end{macrocode}
% \end{macro}
@@ -534,7 +593,7 @@ Errata can be included using the "related" feature.
% \begin{macro}{SourceForge}
% Add SourceForge as a eprint option
% \begin{macrocode}
-\new@eprint{SourceForge}{https://sourceforge.net/projects}
+\hep@eprint{SourceForge}{https://sourceforge.net/projects}
\DeclareFieldAlias{eprint:sourceforge}{eprint:SourceForge}
% \end{macrocode}
% \end{macro}
@@ -543,7 +602,7 @@ Errata can be included using the "related" feature.
% Add HEPForge as a eprint option
% \begin{macrocode}
\DeclareFieldFormat{eprint:hepforge}{%
- HEPForge\addcolon\space\bib@online{https://#1/hepforge.org}{#1}%
+ HEPForge\addcolon\space\hep@bib@online{https://#1/hepforge.org}{#1}%
}
\DeclareFieldAlias{eprint:HEPForge}{eprint:hepforge}
% \end{macrocode}
@@ -665,7 +724,8 @@ Errata can be included using the "related" feature.
@article{Aad:2012tfa,
author = "Aad, Georges and others",
collaboration = "ATLAS",
- title = "{Observation of a new particle in the search for the Standard Model Higgs boson with the ATLAS detector at the LHC}",
+ title = "{Observation of a new particle in the search for
+ the Standard Model Higgs boson with the ATLAS detector at the LHC}",
eprint = "1207.7214",
archivePrefix = "arXiv",
primaryClass = "hep-ex",
@@ -680,7 +740,8 @@ Errata can be included using the "related" feature.
@article{Chatrchyan:2012ufa,
author = "Chatrchyan, Serguei and others",
collaboration = "CMS",
- title = "{Observation of a New Boson at a Mass of 125 GeV with the CMS Experiment at the LHC}",
+ title = "{Observation of a New Boson at a Mass of 125 GeV with the
+ CMS Experiment at the LHC}",
eprint = "1207.7235",
archivePrefix = "arXiv",
primaryClass = "hep-ex",
@@ -741,7 +802,8 @@ Errata can be included using the "related" feature.
}
@article{Sjostrand:2006za,
- author = "Sjostrand, Torbjorn and Mrenna, Stephen and Skands, Peter Z.",
+ author = "Sjostrand, Torbjorn and Mrenna, Stephen
+ and Skands, Peter Z.",
title = "{PYTHIA 6.4 Physics and Manual}",
eprint = "hep-ph/0603175",
archivePrefix = "arXiv",
@@ -756,7 +818,8 @@ Errata can be included using the "related" feature.
@article{Spergel:2003cb,
author = "Spergel, D. N. and others",
collaboration = "WMAP",
- title = "{First year Wilkinson Microwave Anisotropy Probe (WMAP) observations: Determination of cosmological parameters}",
+ title = "{First year Wilkinson Microwave Anisotropy Probe (WMAP)
+ observations: Determination of cosmological parameters}",
eprint = "astro-ph/0302209",
archivePrefix = "arXiv",
doi = "10.1086/377226",
@@ -770,7 +833,8 @@ Errata can be included using the "related" feature.
author = "Agostinelli, S. and others",
collaboration = "GEANT4",
title = "{GEANT4--a simulation toolkit}",
- reportNumber = "SLAC-PUB-9350, FERMILAB-PUB-03-339, CERN-IT-2002-003",
+ reportNumber = "SLAC-PUB-9350, FERMILAB-PUB-03-339,
+ CERN-IT-2002-003",
doi = "10.1016/S0168-9002(03)01368-8",
journal = "Nucl. Instrum. Meth. A",
volume = "506",
@@ -794,7 +858,8 @@ Errata can be included using the "related" feature.
@article{Perlmutter:1998np,
author = "Perlmutter, S. and others",
collaboration = "Supernova Cosmology Project",
- title = "{Measurements of $\Omega$ and $\Lambda$ from 42 high redshift supernovae}",
+ title = "{Measurements of $\Omega$ and $\Lambda$ from 42 high
+ redshift supernovae}",
eprint = "astro-ph/9812133",
archivePrefix = "arXiv",
reportNumber = "LBNL-41801, LBL-41801",
@@ -808,7 +873,8 @@ Errata can be included using the "related" feature.
@article{Riess:1998cb,
author = "Riess, Adam G. and others",
collaboration = "Supernova Search Team",
- title = "{Observational evidence from supernovae for an accelerating universe and a cosmological constant}",
+ title = "{Observational evidence from supernovae for an accelerating
+ universe and a cosmological constant}",
eprint = "astro-ph/9805201",
archivePrefix = "arXiv",
doi = "10.1086/300499",
@@ -832,7 +898,8 @@ Errata can be included using the "related" feature.
}
@article{Gubser:1998bc,
- author = "Gubser, S. S. and Klebanov, Igor R. and Polyakov, Alexander M.",
+ author = "Gubser, S. S. and Klebanov, Igor R.
+ and Polyakov, Alexander M.",
title = "{Gauge theory correlators from noncritical string theory}",
eprint = "hep-th/9802109",
archivePrefix = "arXiv",
@@ -846,7 +913,8 @@ Errata can be included using the "related" feature.
@article{Maldacena:1997re,
author = "Maldacena, Juan Martin",
- title = "{The Large N limit of superconformal field theories and supergravity}",
+ title = "{The Large N limit of superconformal field
+ theories and supergravity}",
eprint = "hep-th/9711200",
archivePrefix = "arXiv",
reportNumber = "HUTP-97-A097, HUTP-98-A097",
@@ -858,8 +926,10 @@ Errata can be included using the "related" feature.
}
@article{Schlegel:1997yv,
- author = "Schlegel, David J. and Finkbeiner, Douglas P. and Davis, Marc",
- title = "{Maps of dust IR emission for use in estimation of reddening and CMBR foregrounds}",
+ author = "Schlegel, David J. and Finkbeiner, Douglas P.
+ and Davis, Marc",
+ title = "{Maps of dust IR emission for use in estimation
+ of reddening and CMBR foregrounds}",
eprint = "astro-ph/9710327",
archivePrefix = "arXiv",
doi = "10.1086/305772",
@@ -872,7 +942,8 @@ Errata can be included using the "related" feature.
@article{Guth:1980zm,
author = "Guth, Alan H.",
editor = "Fang, Li-Zhi and Ruffini, R.",
- title = "{The Inflationary Universe: A Possible Solution to the Horizon and Flatness Problems}",
+ title = "{The Inflationary Universe: A Possible Solution
+ to the Horizon and Flatness Problems}",
reportNumber = "SLAC-PUB-2576",
doi = "10.1103/PhysRevD.23.347",
journal = "Phys. Rev. D",
@@ -907,7 +978,8 @@ Errata can be included using the "related" feature.
@article{Kobayashi:1973fv,
author = "Kobayashi, Makoto and Maskawa, Toshihide",
- title = "{CP Violation in the Renormalizable Theory of Weak Interaction}",
+ title = "{CP Violation in the Renormalizable Theory of
+ Weak Interaction}",
reportNumber = "KUNS-242",
doi = "10.1143/PTP.49.652",
journal = "Prog. Theor. Phys.",
@@ -966,8 +1038,9 @@ Bibliographies for high energy physics
## Introduction
-The `hep-bibliography` package extends the `biblatex` package with some functionality mostly useful for high energy physics.
-In particular it makes full use of all `bibtex` fields provided by `inspirehep.net`.
+The `hep-bibliography` package extends the `biblatex` package with some
+functionality mostly useful for high energy physics. In particular it
+makes full use of all `bibtex` fields provided by `inspirehep.net`.
The package can be loaded via `\usepackage{hep-bibliography}`.
@@ -977,8 +1050,11 @@ Jan Hajer
## License
-This file may be distributed and/or modified under the conditions of the `LaTeX` Project Public License, either version 1.3c of this license or (at your option) any later version.
-The latest version of this license is in `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.
+This file may be distributed and/or modified under the conditions of the
+`LaTeX` Project Public License, either version 1.3c of this license or
+(at your option) any later version. The latest version of this license is
+in `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.
% \end{macrocode}
%
%</readme>
diff --git a/Master/texmf-dist/source/latex/hep-bibliography/hep-bibliography.ins b/Master/texmf-dist/source/latex/hep-bibliography/hep-bibliography.ins
index 06c54faa88f..89fadae4cfd 100644
--- a/Master/texmf-dist/source/latex/hep-bibliography/hep-bibliography.ins
+++ b/Master/texmf-dist/source/latex/hep-bibliography/hep-bibliography.ins
@@ -1,4 +1,4 @@
-%% Copyright (C) 2019-2020 by Jan Hajer
+%% Copyright (C) 2019-2023 by Jan Hajer
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -16,7 +16,7 @@
\preamble
This is a generated file.
-Copyright (C) 2019-2020 by Jan Hajer
+Copyright (C) 2019-2023 by Jan Hajer
This file may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
version 1.3c of this license or (at your option) any later
diff --git a/Master/texmf-dist/source/latex/hep-float/hep-float-implementation.dtx b/Master/texmf-dist/source/latex/hep-float/hep-float-implementation.dtx
index 55811d9c1d4..7bb77d67c1e 100644
--- a/Master/texmf-dist/source/latex/hep-float/hep-float-implementation.dtx
+++ b/Master/texmf-dist/source/latex/hep-float/hep-float-implementation.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2019 by Jan Hajer
+% Copyright (C) 2019-2023 by Jan Hajer
% -----------------------------------
%
% This file may be distributed and/or modified under the
@@ -18,29 +18,25 @@
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-%<package>\ProvidesPackage{hep-float}[2022/11/01 v1.1 Float adjustments ]
-%<documentation>\ProvidesFile{hep-float-documentation.tex}[2022/11/01 v1.1 hep-float documentation]
+%<package>\ProvidesPackage{hep-float}[2023/07/01 v1.2 Float adjustments]
+%<documentation>\ProvidesFile{hep-float-documentation.tex}[2023/07/01 v1.2 hep-float documentation]
%
%<*documentation>
-
-\RequirePackage[l2tabu, orthodox]{nag}
-
\documentclass{ltxdoc}
+
+\renewcommand\theCodelineNo{\rmfamily\tstyle\footnotesize\arabic{CodelineNo}}
+\AtBeginEnvironment{macrocode}{\renewcommand{\ttdefault}{clmt}}
+\renewcommand{\MacroFont}{\codestyle}
\AtBeginDocument{\DeleteShortVerb{\|}}
\AtBeginDocument{\MakeShortVerb{\"}}
-
\EnableCrossrefs
\CodelineIndex
\RecordChanges
-\usepackage[parskip, oldstyle]{hep-paper}
-
-\bibliography{bibliography}
-
\usepackage{hologo}
-\MacroIndent=1.5em
-\AtBeginEnvironment{macrocode}{\renewcommand{\ttdefault}{clmt}}
+\usepackage[parskip,oldstyle,font=10pt]{hep-paper}
+\bibliography{bibliography}
%</documentation>
%<*driver>
@@ -72,7 +68,7 @@
% Right brace \} Tilde \~}
%
% \changes{v1.0}{2021/09/01}{Initial version of the style file.}
-% \changes{v1.1}{2022/11/01}{Bug fixes.}
+% \changes{v1.1}{2023/07/01}{Bug fixes.}
%
% \ifshort
%<*documentation>
@@ -224,17 +220,17 @@ If the graphics are located in a sub-folder its path can be indicated by "\graph
\let\end@hep@table\endtable%
\ifhepfloat@manualplacement%
\renewenvironment{figure}[1][tbp]{%
- \hep@figure[#1]\centering%
+ \hep@figure[#1]\centering\small%
}{\end@hep@figure}%
\renewenvironment{table}[1][tbp]{%
- \hep@table[#1]\centering%
+ \hep@table[#1]\centering\small%
}{\end@hep@table}%
\else%
\renewenvironment{figure}[1][]{%
- \hep@figure\centering%
+ \hep@figure\centering\small%
}{\end@hep@figure}%
\renewenvironment{table}[1][]{%
- \hep@table\centering%
+ \hep@table\centering\small%
}{\end@hep@table}
\fi%
% \end{macrocode}
@@ -242,6 +238,79 @@ If the graphics are located in a sub-folder its path can be indicated by "\graph
% \end{environment}
%
%
+% \subsection{floats}
+%
+% \begin{environment}{figures}
+% \begin{macro}{\figure}
+% Define the "figures" environment that places figures next to each other.
+% \begin{macrocode}
+\newcommand{\figurehspace}{0.0333}
+\newcommand{\figurevspace}{.5\baselineskip}
+\newenvironment{figures}[2][b]{%
+ \begin{figure}
+ \let\oldcaption\caption
+ \renewcommand{\caption}[1]{%
+ \renewcommand{\caption}{\oldcaption}%
+ \captionof{figure}{##1}\vspace{\figurevspace}%
+ }
+ \ifdim#2pt>1pt%
+ \newcommand{\hep@figure@space}{\figurehspace\linewidth/#2}%
+ \renewcommand{\figure}[1][b]{%
+ \end{minipage}\hfill%
+ \begin{minipage}[##1]{\linewidth/#2-\hep@figure@space}%
+ }
+ \begin{minipage}[#1]{\linewidth/#2-\hep@figure@space}
+ \else%
+ \newcommand{\hep@figure@space}[1]{##1\linewidth*\real{\figurehspace}}
+ \renewcommand{\figure}[2][b]{%
+ \end{minipage}\hfill%
+ \begin{minipage}[##1]{##2\linewidth-\hep@figure@space{##2}}%
+ }
+ \begin{minipage}[#1]{#2\linewidth-\hep@figure@space{#2}}
+ \fi%
+}{%
+\end{minipage}\end{figure}%
+}
+% \end{macrocode}
+% \end{macro}
+% \end{environment}
+% \begin{environment}{tables}
+% \begin{macro}{\table}
+% Define the "tables" environment that places tables next to each other.
+% \begin{macrocode}
+\newcommand{\tablehspace}{0.0333}
+\newcommand{\tablevspace}{.5\baselineskip}
+\newenvironment{tables}[2][b]{%
+ \begin{table}
+ \let\oldcaption\caption
+ \renewcommand{\caption}[1]{%
+ \renewcommand{\caption}{\oldcaption}%
+ \captionof{table}{##1}\vspace{\tablevspace}%
+ }
+ \ifdim#2pt>1pt%
+ \newcommand{\hep@table@space}{\tablehspace\linewidth/#2}%
+ \renewcommand{\table}[1][b]{%
+ \end{minipage}\hfill%
+ \begin{minipage}[##1]{\linewidth/#2-\hep@table@space}\centering%
+ }
+ \begin{minipage}[#1]{\linewidth/#2-\hep@table@space}\centering
+ \else%
+ \newcommand{\hep@table@space}[1]{##1\linewidth*\real{\tablehspace}}
+ \renewcommand{\table}[2][b]{%
+ \end{minipage}\hfill%
+ \begin{minipage}[##1]{##2\linewidth-\hep@table@space{##2}}%
+ \centering%
+ }
+ \begin{minipage}[#1]{#2\linewidth-\hep@table@space{#2}}%
+ \centering
+ \fi%
+}{%
+\end{minipage}\end{table}%
+}
+% \end{macrocode}
+% \end{macro}
+% \end{environment}
+%
% \subsection{Sub-floats}
%
% Load the \software{subcaption} package \cite{subcaption}.
@@ -298,18 +367,19 @@ If the graphics are located in a sub-folder its path can be indicated by "\graph
% Define the "\panel" macro for the case that the width of the panel is given.
% \begin{macrocode}
\else%
+ \newcommand{\hep@panel@space}[1]{##1\linewidth*\real{\panelhspace}}%
\newcommand{\panel}[2][b]{%
\endminipage\hfill\begin@subcaption@minipage[#1]{%
- ##2\linewidth-##2\linewidth*\real{\panelhspace}%
+ ##2\linewidth-\hep@panel@space{##2}%
}%
}%
\begin@subcaption@minipage[#1]{%
- #2\linewidth-#2\linewidth*\real{\panelhspace}%
+ #2\linewidth-\hep@panel@space{#2}%
}%
\fi%
-}{
-\endsubcaptionblock
-\vspace{-\panelvspace}
+}{%
+\endsubcaptionblock%
+\vspace{-\panelvspace}%
}
% \end{macrocode}
% \end{macro}
@@ -349,6 +419,127 @@ If the graphics are located in a sub-folder its path can be indicated by "\graph
%
%</package>
%
+% \section{Test}
+%
+%<*test>
+%
+% \begin{macrocode}
+\documentclass{article}
+
+\usepackage[showframe]{geometry}
+\usepackage{hep-float}
+
+\begin{document}
+
+\begin{figure}
+\graphic[.5]{example-image-4x3}
+\caption{test}
+\end{figure}
+
+\begin{figures}{.3}
+\graphic{example-image-4x3}
+\caption{one}
+\figure{.4}
+\graphic{example-image-16x9}
+\caption{two}
+\figure{.3}
+\graphic{example-image-4x3}
+\caption{three}
+\figure{.3}
+\graphic{example-image-4x3}
+\caption{one}
+\figure{.4}
+\graphic{example-image-16x9}
+\caption{two}
+\figure{.3}
+\graphic{example-image-4x3}
+\caption{three}
+\end{figures}
+
+\begin{figures}{3}
+\graphic{example-image-1x1}
+\caption{one}
+\figure
+\graphic{example-image-1x1}
+\caption{two}
+\figure
+\graphic{example-image-1x1}
+\caption{three}
+\figure
+\graphic{example-image-1x1}
+\caption{one}
+\figure
+\graphic{example-image-1x1}
+\caption{two}
+\figure
+\graphic{example-image-1x1}
+\caption{three}
+\end{figures}
+
+
+\begin{figure}
+\begin{panels}{3}
+\graphic{example-image-1x1}
+\caption{a}
+\panel
+\graphic{example-image-1x1}
+\caption{b}
+\panel
+\graphic{example-image-1x1}
+\caption{c}
+\panel
+\graphic{example-image-1x1}
+\caption{d}
+\panel
+\graphic{example-image-1x1}
+\caption{e}
+\panel
+\graphic{example-image-1x1}
+\caption{f}
+\end{panels}
+\caption{Panels}
+\end{figure}
+
+\begin{figure}
+\begin{panels}{.3}
+\graphic{example-image-4x3}
+\caption{a}
+\panel{.4}
+\graphic{example-image-16x9}
+\caption{b}
+\panel{.3}
+\graphic{example-image-4x3}
+\caption{c}
+\panel{.225}
+\graphic{example-image-1x1}
+\caption{d}
+\panel{.4}
+\graphic{example-image-16x9}
+\caption{e}
+\panel{.225}
+\graphic[.8]{example-image-1x1}
+\caption{f}
+\end{panels}
+\caption{Panels 2}
+\end{figure}
+
+\begin{tables}{2}
+\begin{tabular}{cc}\toprule
+a & b \\
+\bottomrule\end{tabular}
+\caption{a}
+\table
+\begin{tabular}{cc}\toprule
+a & b \\
+\bottomrule\end{tabular}
+\caption{b}
+\end{tables}
+
+\end{document}
+% \end{macrocode}
+%
+%</test>
+%
% \section{Readme}
%
%<*readme>
@@ -360,9 +551,9 @@ Convenience package for float placement
## Introduction
-The `hep-float` package redefines some `LaTeX` float placement defaults and defines convenience wrappers for floats.
-
-The `hep-float` package can be loaded with `\usepackage{hep-float}`.
+The `hep-float` package redefines some `LaTeX` float placement defaults
+and defines convenience wrappers for floats. The `hep-float` package can
+be loaded with `\usepackage{hep-float}`.
## Author
@@ -370,8 +561,11 @@ Jan Hajer
## License
-This file may be distributed and/or modified under the conditions of the `LaTeX` Project Public License, either version 1.3c of this license or (at your option) any later version.
-The latest version of this license is in `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.
+This file may be distributed and/or modified under the conditions of the
+`LaTeX` Project Public License, either version 1.3c of this license or
+(at your option) any later version. The latest version of this license is
+in `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.
% \end{macrocode}
%
%</readme>
diff --git a/Master/texmf-dist/source/latex/hep-float/hep-float.ins b/Master/texmf-dist/source/latex/hep-float/hep-float.ins
index be734d91b7a..0290c3c1add 100644
--- a/Master/texmf-dist/source/latex/hep-float/hep-float.ins
+++ b/Master/texmf-dist/source/latex/hep-float/hep-float.ins
@@ -1,4 +1,4 @@
-%% Copyright (C) 2019-2020 by Jan Hajer
+%% Copyright (C) 2019-2023 by Jan Hajer
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -16,7 +16,7 @@
\preamble
This is a generated file.
-Copyright (C) 2019-2020 by Jan Hajer
+Copyright (C) 2019-2023 by Jan Hajer
This file may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
version 1.3c of this license or (at your option) any later
@@ -29,6 +29,7 @@ LaTeX version 2005/12/01 or later.
\generate{
\file{hep-float-documentation.tex}{\from{hep-float-implementation.dtx}{documentation}}
\file{hep-float.sty}{\from{hep-float-implementation.dtx}{package}}
+ \file{hep-float-test.tex}{\from{hep-float-implementation.dtx}{test}}
\nopreamble\nopostamble\file{README-hep-float.md}{\from{hep-float-implementation.dtx}{readme}}
}
diff --git a/Master/texmf-dist/source/latex/hep-math/hep-math-implementation.dtx b/Master/texmf-dist/source/latex/hep-math/hep-math-implementation.dtx
index 26b9c0ea5bc..9c4284081b0 100644
--- a/Master/texmf-dist/source/latex/hep-math/hep-math-implementation.dtx
+++ b/Master/texmf-dist/source/latex/hep-math/hep-math-implementation.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2019 by Jan Hajer
+% Copyright (C) 2019-2023 by Jan Hajer
% -----------------------------------
%
% This file may be distributed and/or modified under the
@@ -18,23 +18,28 @@
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-%<package>\ProvidesPackage{hep-math}[2022/11/01 v1.1 Math and physics macros]
-%<documentation>\ProvidesFile{hep-math-documentation.tex}[2022/11/01 v1.1 hep-math documentation]
+%<package>\ProvidesPackage{hep-math}[2023/07/01 v1.2 Math and physics macros]
+%<documentation>\ProvidesFile{hep-math-documentation.tex}[2023/07/01 v1.2 hep-math documentation]
%
%<*documentation>
-
\RequirePackage[l2tabu, orthodox]{nag}
-
\documentclass{ltxdoc}
+
+\renewcommand\theCodelineNo{\rmfamily\tstyle\footnotesize\arabic{CodelineNo}}
+\AtBeginEnvironment{macrocode}{\renewcommand{\ttdefault}{clmt}}
+\renewcommand{\MacroFont}{\codestyle}
\AtBeginDocument{\DeleteShortVerb{\|}}
\AtBeginDocument{\MakeShortVerb{\"}}
-
\EnableCrossrefs
\CodelineIndex
\RecordChanges
-\usepackage[parskip,oldstyle]{hep-paper}
+\usepackage{hologo}
+
+\usepackage[parskip,oldstyle,font=10pt]{hep-paper}
+\bibliography{bibliography}
+\setlength{\fboxsep}{1pt}
\newenvironment{columns}[1][.5]{%
\par\vspace{-\bigskipamount}%
\begin{minipage}[t]{\linewidth}%
@@ -44,14 +49,6 @@
\begin{minipage}[t]{\linewidth-#1\linewidth}%
}%
}{\end{minipage}\end{minipage}\par}
-
-\bibliography{bibliography}
-
-\usepackage{hologo}
-
-\MacroIndent=1.5em
-\setlength{\fboxsep}{1pt}
-\AtBeginEnvironment{macrocode}{\renewcommand{\ttdefault}{clmt}}
%</documentation>
%<*driver>
@@ -64,7 +61,7 @@
%
% \fi
%
-% \CheckSum{657}
+% \CheckSum{702}
%
% \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
@@ -83,7 +80,7 @@
% Right brace \} Tilde \~}
%
% \changes{v1.0}{2021/09/01}{Initial version of the style file.}
-% \changes{v1.1}{2022/11/01}{Bug fixes.}
+% \changes{v1.1}{2023/07/01}{Bug fixes.}
%
% \ifshort
%<*documentation>
@@ -171,7 +168,7 @@ Finer details about mathematical typesetting can be found in \cite{gregorio:2020
\DescribeMacro{\differential}
\DescribeMacro{\newderivative}
\DescribeMacro{\newpartialderivative}
-The three macros "\differential"\marg{symbol}, "\newderivative""{\name}"\marg{symbol}, and "\newpartialderivative""{\name}"\marg{symbol} allow to define a differential with correct spacing, a derivative using this differential, and if necessary a partial derivative that can handle three dimensional derivatives.
+The three macros "\differential"\marg{symbol}, "\newderivative" "{\name}"\marg{symbol}, and "\newpartialderivative" "{\name}"\marg{symbol} allow to define a differential with correct spacing, a derivative using this differential, and if necessary a partial derivative that can handle three dimensional derivatives.
\DescribeMacro{\d}
\DescribeMacro{\dv}
@@ -185,7 +182,9 @@ $\dv xf$ & $\dv*xf$ & $\dv x*f$ & $\dv*x*f$
\end{tabular}
\end{center}
via "\dv*"\oarg{f}\marg{x}"*""^"\marg{n}.
-Upright differential can be produced via "\renewcommand" "{\diffsymbol}""{\mathrm d}".
+Upright differential can be produced via "\renewcommand""{\diffsymbol}" "{\mathrm d}".
+The differential takes care of the correct spacing as long as it is placed at the end of the integral $\int f(x)\d x$.
+In order to archive correct spacing when it is placed at the beginning of the integral it is advisable to place the whole expression in a "\mathop{\int\d x} f(x)" such that $\mathop{\int\d x} f(x)$.
\DescribeMacro{\pd}
\DescribeMacro{\pdv}
@@ -450,7 +449,8 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
% \begin{macro}{\i}
% Provide an upright imaginary unit in math mode.
% \begin{macrocode}
-\AtBeginDocument{\mathdef{\i}{\operatorname{i}}}
+\newcommand{\imaginaryunit}{\text{i}}
+\AtBeginDocument{\mathdef{\i}{\imaginaryunit}}
% \end{macrocode}
% \end{macro}
%
@@ -616,8 +616,25 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
%
% \begin{macro}{\unit}
% Load the \software{units} package \cite{units} which provides the "\units" and "\nicefrac" macros.
+% Patch the "\unit" macros to behave like "\mathinner" within an equation
% \begin{macrocode}
\RequirePackage{units}
+\let\oldunit\unit
+\renewcommand{\unit}[2][]{%
+ \ifthenelse{\boolean{mmode}}{%
+ \mathinner{\oldunit[#1]{#2}}%
+ }{%
+ \oldunit[#1]{#2}%
+ }%
+}
+\let\oldunitfrac\unitfrac
+\renewcommand{\unitfrac}[3][]{%
+ \ifthenelse{\boolean{mmode}}{%
+ \mathinner{\oldunitfrac[#1]{#2}{#3}}%
+ }{%
+ \oldunitfrac[#1]{#2}{#3}%
+ }%
+}
% \end{macrocode}
% \end{macro}
%
@@ -639,10 +656,11 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
% Provide a flat fraction.
% \begin{macrocode}
\DeclarePairedDelimiterX{\hep@flatfrac}[2]{.}{.}{%
- \kern-\nulldelimiterspace#1\delimsize/\hep@left@delim#2\kern-\nulldelimiterspace%
+ \kern-\nulldelimiterspace#1\delimsize/%
+ \hep@left@delim#2\kern-\nulldelimiterspace%
}
\NewDocumentCommand{\flatfrac}{somm}{%
- \mathop{
+ \mathinner{%
\IfBooleanTF{#1}{%
\hep@flatfrac*{#3}{#4}%
}{%
@@ -658,6 +676,17 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
%
% \subsubsection{Differentials and derivatives}
%
+% \begin{macro}{\int}
+% Redefine "\int".
+% \begin{macrocode}
+\let\hep@int\int
+\RenewDocumentCommand{\int}{oe{_^}}{%
+ \def\temp{\hep@int_{\IfValueT{#2}{#2}}^{\IfValueT{#3}{#3}}}%
+ \IfValueTF{#1}{\mathop{\temp#1}}{\temp}%
+}
+% \end{macrocode}
+% \end{macro}
+%
% \begin{macro}{\differential}
% Define a generic differential "\differential".
% \begin{macrocode}
@@ -837,6 +866,16 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
% \end{macro}
% \end{macro}
+% \begin{macro}{\floor}
+% \begin{macro}{\ceil}
+% Floor and ceiling paired delimiters.
+% \begin{macrocode}
+\DeclarePairedDelimiter\ceil{\lceil}{\rceil}
+\DeclarePairedDelimiter\floor{\lfloor}{\rfloor}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+
% \begin{macro}{\ordersymbol}
% \begin{macro}{\order}
% Order symbol and macro.
@@ -1017,7 +1056,8 @@ As a rule of thumb if you have to use "\notag", "\nonumber", or perform manual s
% Define the bra macro.
% \begin{macrocode}
\DeclarePairedDelimiterXPP\hep@bra[1]{%
- }{\langle}{\rvert}{\braketinnerspace}{\braketouterspace#1\braketinnerspace%
+ }{\langle}{\rvert}{\braketinnerspace%
+ }{\braketouterspace#1\braketinnerspace%
}
\NewDocumentCommand{\bra}{smt\ket sgt\ketbra sgg}{%
\IfBooleanTF{#6}{%
@@ -1135,7 +1175,8 @@ Extended math macros
## Introduction
-The `hep-math` package provides some additional features beyond the `mathtools` and `amsmath` packages.
+The `hep-math` package provides some additional features beyond the
+`mathtools` and `amsmath` packages.
To use the package place `\usepackage{hep-math}` in the preamble.
@@ -1145,8 +1186,11 @@ Jan Hajer
## License
-This file may be distributed and/or modified under the conditions of the `LaTeX` Project Public License, either version 1.3c of this license or (at your option) any later version.
-The latest version of this license is in `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.
+This file may be distributed and/or modified under the conditions of the
+`LaTeX` Project Public License, either version 1.3c of this license or
+(at your option) any later version. The latest version of this license is
+in `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.
% \end{macrocode}
%
%</readme>
diff --git a/Master/texmf-dist/source/latex/hep-math/hep-math.ins b/Master/texmf-dist/source/latex/hep-math/hep-math.ins
index 1d02e20dcee..aca65004d09 100644
--- a/Master/texmf-dist/source/latex/hep-math/hep-math.ins
+++ b/Master/texmf-dist/source/latex/hep-math/hep-math.ins
@@ -1,4 +1,4 @@
-%% Copyright (C) 2019-2020 by Jan Hajer
+%% Copyright (C) 2019-2023 by Jan Hajer
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -16,7 +16,7 @@
\preamble
This is a generated file.
-Copyright (C) 2019-2020 by Jan Hajer
+Copyright (C) 2019-2023 by Jan Hajer
This file may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
version 1.3c of this license or (at your option) any later
diff --git a/Master/texmf-dist/source/latex/hep-paper/hep-paper-implementation.dtx b/Master/texmf-dist/source/latex/hep-paper/hep-paper-implementation.dtx
index 1fe7658b0ab..b0b1b39ca60 100644
--- a/Master/texmf-dist/source/latex/hep-paper/hep-paper-implementation.dtx
+++ b/Master/texmf-dist/source/latex/hep-paper/hep-paper-implementation.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2019-2022 by Jan Hajer
+% Copyright (C) 2019-2023 by Jan Hajer
% -----------------------------------
%
% This file may be distributed and/or modified under the
@@ -18,31 +18,28 @@
% \iffalse
%
%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-%<package>\ProvidesPackage{hep-paper}[2022/11/01 v2.1 Publications in High Energy Physics]
-%<documentation>\ProvidesFile{hep-paper-documentation.tex}[2022/11/01 v2.1 HEP-Paper documentation]
+%<package>\ProvidesPackage{hep-paper}[2023/07/01 v2.2 Publications in High Energy Physics]
+%<documentation>\ProvidesFile{hep-paper-documentation.tex}[2023/07/01 v2.2 HEP-Paper documentation]
%
%<*documentation>
-%
\RequirePackage[l2tabu, orthodox]{nag}
\documentclass{ltxdoc}
+
+\renewcommand\theCodelineNo{\rmfamily\tstyle\footnotesize\arabic{CodelineNo}}
+\AtBeginEnvironment{macrocode}{\renewcommand{\ttdefault}{clmt}}
+\renewcommand{\MacroFont}{\codestyle}
\AtBeginDocument{\DeleteShortVerb{\|}}
\AtBeginDocument{\MakeShortVerb{\"}}
-
\EnableCrossrefs
\CodelineIndex
\RecordChanges
-\usepackage[parskip]{hep-paper}
+\usepackage{hologo}
+\usepackage[parskip,oldstyle,font=10pt]{hep-paper}
\bibliography{bibliography}
-
\acronym{PDF}{portable document format}
\acronym{LM}{latin modern}
-
-\usepackage{hologo}
-
-\MacroIndent=1.5em
-\AtBeginEnvironment{macrocode}{\renewcommand{\ttdefault}{clmt}}
%</documentation>
%<*driver>
@@ -65,7 +62,7 @@
% \changes{v1.7}{2021/06/01}{Introduction of dedicated style file for the title, acronyms and bibliography macros. Extension of the title macros.}
% \changes{v1.8}{2021/08/01}{Expand thanks to allow for reference label and fine tune the title page. Reimplement the must relevant macros from the physics package. Make mathrm produce upright Greek.}
% \changes{v2.0}{2021/09/01}{Move independent logic into dedicated packages.}
-% \changes{v2.1}{2022/11/01}{Bug fixes in the underlying packages.}
+% \changes{v2.1}{2023/07/01}{Bug fixes in the underlying packages.}
%
% \ifshort
%<*documentation>
@@ -703,13 +700,11 @@ The \software{arxiv-collector} python script \cite{arxiv-collector} alleviates t
\AtBeginDocument{\renewcommand{\foreignabbrfont}{}}
\fi
\ifhep@jhep
- \hoffset 0in
- \voffset 0in
- \RequirePackage{geometry}
- \AtBeginDocument{\newgeometry{
- textheight=.757\paperheight,
- textwidth=.72\paperwidth,
- }}
+ \PassOptionsToPackage{\hep@paper paper}{geometry}
+ \RequirePackage{geometry}
+ \geometry{
+ offset=0in,textheight=.762\paperheight,textwidth=.72\paperwidth
+ }
\fi
% \end{macrocode}
%
@@ -1058,7 +1053,8 @@ The \software{arxiv-collector} python script \cite{arxiv-collector} alleviates t
First affiliation\\
E-mail: \email{second@email.com}
}
-\author{Third author \thanks{\email{third@email.com}}\\Second affiliation}
+\author{Third author \thanks{\email{third@email.com}}\\
+Second affiliation}
\author{Fourth author\\Third affiliation}
\FullConference{Full conference}
\ShortTitle{Short title}
@@ -1185,10 +1181,14 @@ A `LaTeX` package for publications in High Energy Physics.
## Introduction
-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 `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.
-For usual publications it is enough to load additionally to the `article` class without optional arguments only the `hep-paper` package.
+For usual publications it is enough to load additionally to the `article`
+class without optional arguments only the `hep-paper` package.
\documentclass{article}
\usepackage{hep-paper}
@@ -1199,8 +1199,11 @@ Jan Hajer
## License
-This file may be distributed and/or modified under the conditions of the `LaTeX` Project Public License, either version 1.3c of this license or (at your option) any later version.
-The latest version of this license is in `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.
+This file may be distributed and/or modified under the conditions of the
+`LaTeX` Project Public License, either version 1.3c of this license or
+(at your option) any later version. The latest version of this license is
+in `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.
% \end{macrocode}
%
%</readme>
diff --git a/Master/texmf-dist/source/latex/hep-paper/hep-paper.ins b/Master/texmf-dist/source/latex/hep-paper/hep-paper.ins
index eddbb9aafee..b65927a2e61 100644
--- a/Master/texmf-dist/source/latex/hep-paper/hep-paper.ins
+++ b/Master/texmf-dist/source/latex/hep-paper/hep-paper.ins
@@ -1,4 +1,4 @@
-%% Copyright (C) 2019-2022 by Jan Hajer
+%% Copyright (C) 2019-2023 by Jan Hajer
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -16,7 +16,7 @@
\preamble
This is a generated file.
-Copyright (C) 2019-2022 by Jan Hajer
+Copyright (C) 2019-2023 by Jan Hajer
This file may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
version 1.3c of this license or (at your option) any later
diff --git a/Master/texmf-dist/source/latex/hep-reference/hep-reference-implementation.dtx b/Master/texmf-dist/source/latex/hep-reference/hep-reference-implementation.dtx
index 03722624cb2..507647ac989 100644
--- a/Master/texmf-dist/source/latex/hep-reference/hep-reference-implementation.dtx
+++ b/Master/texmf-dist/source/latex/hep-reference/hep-reference-implementation.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2019 by Jan Hajer
+% Copyright (C) 2019-2023 by Jan Hajer
% -----------------------------------
%
% This file may be distributed and/or modified under the
@@ -18,30 +18,26 @@
% \iffalse
%
%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-%<package>\ProvidesPackage{hep-reference}[2022/11/01 v1.1 Publications in High Energy Physics]
-%<documentation>\ProvidesFile{hep-reference-documentation.tex}[2022/11/01 v1.1 HEP-Paper documentation]
+%<package>\ProvidesPackage{hep-reference}[2023/07/01 v1.2 Convenience macros for references]
+%<documentation>\ProvidesFile{hep-reference-documentation.tex}[2023/07/01 v1.2 HEP-reference documentation]
%
%<*documentation>
-%
-\RequirePackage[l2tabu, orthodox]{nag}
\documentclass{ltxdoc}
+
+\renewcommand\theCodelineNo{\rmfamily\tstyle\footnotesize\arabic{CodelineNo}}
+\AtBeginEnvironment{macrocode}{\renewcommand{\ttdefault}{clmt}}
+\renewcommand{\MacroFont}{\codestyle}
\AtBeginDocument{\DeleteShortVerb{\|}}
\AtBeginDocument{\MakeShortVerb{\"}}
-
\EnableCrossrefs
\CodelineIndex
\RecordChanges
-\usepackage[parskip]{hep-paper}
+\usepackage{hologo}
+\usepackage[parskip,oldstyle,font=10pt]{hep-paper}
\bibliography{bibliography}
-
\shortacronym{PDF}{portable document format}
-
-\usepackage{hologo}
-
-\MacroIndent=1.5em
-\AtBeginEnvironment{macrocode}{\renewcommand{\ttdefault}{clmt}}
%</documentation>
%<*driver>
@@ -54,7 +50,7 @@
%
% \fi
%
-% \CheckSum{179}
+% \CheckSum{180}
%
% \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
@@ -73,7 +69,7 @@
% Right brace \} Tilde \~}
%
% \changes{v1.0}{2011/08/01}{Initial version of the style file.}
-% \changes{v1.1}{2022/11/01}{Bug fixes.}
+% \changes{v1.1}{2023/07/01}{Bug fixes.}
%
% \ifshort
%<*documentation>
@@ -147,8 +143,8 @@ Additionally the reference back to the text where they are called from.
}
\AtBeginDocument{\@ifpackageloaded{doc}{\hypersetup{hidelinks}}{}}
% \end{macrocode}
-% Set the \PDF meta data according to the paper information and ensure that unnecessary information is suppressed.
%
+% Ensure that unnecessary information is suppressed.
% \begin{macrocode}
\pdfstringdefDisableCommands{\def\varepsilon{\textepsilon}}
\pdfstringdefDisableCommands{\def\to{\textrightarrow}}
@@ -160,11 +156,22 @@ Additionally the reference back to the text where they are called from.
\pdfstringdefDisableCommands{\let\footnote\@gobble}
\pdfstringdefDisableCommands{\let\\\@gobble}
}
-\AtBeginDocument{\hypersetup{pdftitle={\@title}}}
-\AtBeginDocument{\hypersetup{pdfauthor={\@author}}}
-\AtBeginDocument{\@ifundefined{hep@key@words}{}{%
- \hypersetup{pdfkeywords={\hep@key@words}}%
-}}
+% \end{macrocode}
+%
+% Set the \PDF meta data according to the paper information
+%
+% \begin{macrocode}
+\AtBeginDocument{
+ \@ifundefined{hep@sub@title}{
+ \hypersetup{pdftitle={\@title}}
+ }{
+ \hypersetup{pdftitle={\@title: \hep@sub@title}}
+ }
+ \hypersetup{pdfauthor={\@author}}
+ \@ifundefined{hep@key@words}{}{%
+ \hypersetup{pdfkeywords={\hep@key@words}}%
+ }
+}
% \end{macrocode}
% \subsection{Footnotes}
@@ -207,16 +214,17 @@ Additionally the reference back to the text where they are called from.
% \begin{macro}{\usecommand}
% Define the "\usecommand" macro providing an anonymous function.
% \begin{macrocode}
-\providecommand\use@command{}
+\providecommand\hep@use@command{}
\newcommand\usecommand[2][1]{%
- \renewcommand\use@command[#1]{#2}\use@command%
+ \renewcommand\hep@use@command[#1]{#2}\hep@use@command%
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\textlabel}
-% Define the "\textlabel" macro allowing to link to a piece of text.
+% Define the "\textlabel" macro allowing to link to a piece of text using the \software{etoolbox} pcakage \cite{etoolbox}.
% \begin{macrocode}
+\RequirePackage{etoolbox}
\NewDocumentCommand\textlabel{O{}mO{}m}{%
\protected@write\@auxout{}{%
\string\newlabel{#2}{%
@@ -335,13 +343,17 @@ Additionally the reference back to the text where they are called from.
\section{Section} \label{sec:Section}
-Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis section \ref{sec:Section}
+Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
+Etiam lobortis section \ref{sec:Section}
-Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis \cref{sec:Section}
+Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
+Etiam lobortis \cref{sec:Section}
-Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam loborti equation \eqref{eq:Equation}
+Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
+Etiam loborti equation \eqref{eq:Equation}
-Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam loborti reference \cite{cite}
+Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
+Etiam loborti reference \cite{cite}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
\footnote{
@@ -373,13 +385,9 @@ A `LaTeX` package for publications in High Energy Physics.
## Introduction
-The `hep-reference` 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-reference` preferably loads third party packages as long as they are lightweight enough.
-
-For usual publications it is enough to load additionally to the `article` class without optional arguments only the `hep-reference` package.
-
- \documentclass{article}
- \usepackage{hep-reference}
+The `hep-reference` package applies some light convenience modifications
+to the reference, citation and footnote macros after loading standard
+classes improving on the default LaTeX behaviour.
## Author
@@ -387,8 +395,11 @@ Jan Hajer
## License
-This file may be distributed and/or modified under the conditions of the `LaTeX` Project Public License, either version 1.3c of this license or (at your option) any later version.
-The latest version of this license is in `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.
+This file may be distributed and/or modified under the conditions of the
+`LaTeX` Project Public License, either version 1.3c of this license or
+(at your option) any later version. The latest version of this license is
+in `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.
% \end{macrocode}
%
%</readme>
diff --git a/Master/texmf-dist/source/latex/hep-reference/hep-reference.ins b/Master/texmf-dist/source/latex/hep-reference/hep-reference.ins
index c2ed685ccfc..40390ff9771 100644
--- a/Master/texmf-dist/source/latex/hep-reference/hep-reference.ins
+++ b/Master/texmf-dist/source/latex/hep-reference/hep-reference.ins
@@ -1,4 +1,4 @@
-%% Copyright (C) 2019-2020 by Jan Hajer
+%% Copyright (C) 2019-2023 by Jan Hajer
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -16,7 +16,7 @@
\preamble
This is a generated file.
-Copyright (C) 2019-2020 by Jan Hajer
+Copyright (C) 2019-2023 by Jan Hajer
This file may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
version 1.3c of this license or (at your option) any later
diff --git a/Master/texmf-dist/source/latex/hep-text/hep-text-implementation.dtx b/Master/texmf-dist/source/latex/hep-text/hep-text-implementation.dtx
index cb1228d9fad..cec31e76362 100644
--- a/Master/texmf-dist/source/latex/hep-text/hep-text-implementation.dtx
+++ b/Master/texmf-dist/source/latex/hep-text/hep-text-implementation.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2019 by Jan Hajer
+% Copyright (C) 2019-2023 by Jan Hajer
% -----------------------------------
%
% This file may be distributed and/or modified under the
@@ -18,30 +18,31 @@
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-%<package>\ProvidesPackage{hep-text}[2022/11/01 v1.1 Some text macros]
-%<documentation>\ProvidesFile{hep-text-documentation.tex}[2022/11/01 v1.1 HEP-Text documentation]
+%<package>\ProvidesPackage{hep-text}[2023/07/01 v1.2 Some text macros]
+%<documentation>\ProvidesFile{hep-text-documentation.tex}[2023/07/01 v1.2 HEP-Text documentation]
%
%<*documentation>
\RequirePackage[l2tabu, orthodox]{nag}
-
\documentclass{ltxdoc}
+
+\renewcommand\theCodelineNo{\rmfamily\tstyle\footnotesize\arabic{CodelineNo}}
+\AtBeginEnvironment{macrocode}{\renewcommand{\ttdefault}{clmt}}
+\renewcommand{\MacroFont}{\codestyle}
\AtBeginDocument{\DeleteShortVerb{\|}}
\AtBeginDocument{\MakeShortVerb{\"}}
-
\EnableCrossrefs
\CodelineIndex
\RecordChanges
-\usepackage[parskip]{hep-paper}
+\usepackage{hologo}
+\usepackage[parskip,oldstyle,font=10pt]{hep-paper}
\bibliography{bibliography}
\acronym{CM}{computer modern}
\acronym{LM}{latin modern}
-\usepackage{hologo}
-
\newenvironment{columns}[1][.5]{%
\par\vspace{-\bigskipamount}%
\begin{minipage}[t]{\linewidth}%
@@ -51,9 +52,6 @@
\begin{minipage}[t]{\linewidth-#1\linewidth}%
}%
}{\end{minipage}\end{minipage}\par}
-
-\MacroIndent=1.5em
-\AtBeginEnvironment{macrocode}{\renewcommand{\ttdefault}{clmt}}
%</documentation>
%<*driver>
@@ -85,7 +83,7 @@
% Right brace \} Tilde \~}
%
% \changes{v1.0}{2019/01/01}{Initial version of the style file.}
-% \changes{v1.1}{2022/11/01}{Bug fixes.}
+% \changes{v1.1}{2023/07/01}{Bug fixes.}
%
% \ifshort
%<*documentation>
@@ -365,7 +363,8 @@ List and text extensions
## Introduction
-The `hep-text` package extends `LaTeX` lists using the `enumitem package and provides some text macros.
+The `hep-text` package extends `LaTeX` lists using the `enumitem package
+and provides some text macros.
The package can be loaded by `\usepackage{hep-text}`.
@@ -375,8 +374,11 @@ Jan Hajer
## License
-This file may be distributed and/or modified under the conditions of the `LaTeX` Project Public License, either version 1.3c of this license or (at your option) any later version.
-The latest version of this license is in `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.
+This file may be distributed and/or modified under the conditions of the
+`LaTeX` Project Public License, either version 1.3c of this license or
+(at your option) any later version. The latest version of this license is
+in `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.
% \end{macrocode}
%
%</readme>
diff --git a/Master/texmf-dist/source/latex/hep-text/hep-text.ins b/Master/texmf-dist/source/latex/hep-text/hep-text.ins
index 1b8b9381d57..d94b15b0016 100644
--- a/Master/texmf-dist/source/latex/hep-text/hep-text.ins
+++ b/Master/texmf-dist/source/latex/hep-text/hep-text.ins
@@ -1,4 +1,4 @@
-%% Copyright (C) 2019-2020 by Jan Hajer
+%% Copyright (C) 2019-2023 by Jan Hajer
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -16,7 +16,7 @@
\preamble
This is a generated file.
-Copyright (C) 2019-2020 by Jan Hajer
+Copyright (C) 2019-2023 by Jan Hajer
This file may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
version 1.3c of this license or (at your option) any later
diff --git a/Master/texmf-dist/source/latex/hep-title/hep-title-implementation.dtx b/Master/texmf-dist/source/latex/hep-title/hep-title-implementation.dtx
index da2445a4d12..195f54ec915 100644
--- a/Master/texmf-dist/source/latex/hep-title/hep-title-implementation.dtx
+++ b/Master/texmf-dist/source/latex/hep-title/hep-title-implementation.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2019 by Jan Hajer
+% Copyright (C) 2019-2023 by Jan Hajer
% -----------------------------------
%
% This file may be distributed and/or modified under the
@@ -18,32 +18,31 @@
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
-%<package>\ProvidesPackage{hep-title}[2022/11/01 v1.1 Extend title page macros]
-%<documentation>\ProvidesFile{hep-title-documentation.tex}[2022/11/01 v1.1 hep-title documentation]
+%<package>\ProvidesPackage{hep-title}[2023/07/01 v1.2 Extend title page macros]
+%<documentation>\ProvidesFile{hep-title-documentation.tex}[2023/07/01 v1.2 hep-title documentation]
%
%<*documentation>
\RequirePackage[l2tabu, orthodox]{nag}
\documentclass{ltxdoc}
+
+\renewcommand\theCodelineNo{\rmfamily\tstyle\footnotesize\arabic{CodelineNo}}
+\AtBeginEnvironment{macrocode}{\renewcommand{\ttdefault}{clmt}}
+\renewcommand{\MacroFont}{\codestyle}
\AtBeginDocument{\DeleteShortVerb{\|}}
\AtBeginDocument{\MakeShortVerb{\"}}
-
\EnableCrossrefs
\CodelineIndex
\RecordChanges
-\usepackage[parskip]{hep-paper}
+\usepackage{hologo}
+\usepackage[parskip,oldstyle,font=10pt]{hep-paper}
\bibliography{bibliography}
\acronym{PDF}{portable document format}
-\usepackage{hologo}
-
-\MacroIndent=1.5em
-\AtBeginEnvironment{macrocode}{\renewcommand{\ttdefault}{clmt}}
-
%</documentation>
%<*driver>
@@ -75,7 +74,7 @@
% Right brace \} Tilde \~}
%
% \changes{v1.0}{2021/09/01}{Initial version of the style file.}
-% \changes{v1.1}{2022/11/01}{Bug fixes.}
+% \changes{v1.1}{2023/07/01}{Bug fixes.}
%
% \ifshort
%<*documentation>
@@ -152,7 +151,7 @@ Their font can be adjusted by the "\editorfont"\marg{font} and "\endorserfont"\m
\DescribeMacro{\editortitlefont}
\DescribeMacro{\endorsertitlefont}
The titles of these lines can be adjusted using the "\editortitle"\marg{singluar}\marg{plural} and "\endorsertitle"\marg{singluar}\marg{plural} macros.
-Their font can be adjust with the "\editortitlefont"\marg{font} and "\endorsertitlefont"\marg{font}.
+Their font can be adjust with the "\editortitlefont"\marg{font} and "\endorsertitlefont"\allowbreak\marg{font}.
\subsection{Abstract}
@@ -552,7 +551,9 @@ The "\preprintfont" macro can be used to change the font of the preprint.
% \begin{macro}{\endorser}
% Copy of the "authblk" author code adjusted for endorsers.
% \begin{macrocode}
-\DeclareRobustCommand\endorser{\@ifnextchar[{\hep@@endorser}{\hep@@@endorser}}
+\DeclareRobustCommand\endorser{%
+ \@ifnextchar[{\hep@@endorser}{\hep@@@endorser}%
+}
\def\hep@@endorser[#1]#2{\hep@@@@endorser[#1]{#2}}
\def\hep@@@endorser#1{\hep@@@@endorser{#1}}
\newcommand\hep@@@@endorser[2][]{%
@@ -913,7 +914,8 @@ Extensions for the title page
## Introduction
-The `hep-title` package extends the title macros of the standard classes with macros for a preprint, affiliation, editors, and endorsers.
+The `hep-title` package extends the title macros of the standard classes
+with macros for a preprint, affiliation, editors, and endorsers.
To use the `hep-title` package include it with `\usepackage{hep-title}`.
@@ -923,8 +925,11 @@ Jan Hajer
## License
-This file may be distributed and/or modified under the conditions of the `LaTeX` Project Public License, either version 1.3c of this license or (at your option) any later version.
-The latest version of this license is in `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.
+This file may be distributed and/or modified under the conditions of the
+`LaTeX` Project Public License, either version 1.3c of this license or
+(at your option) any later version. The latest version of this license is
+in `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.
% \end{macrocode}
%
%</readme>
diff --git a/Master/texmf-dist/source/latex/hep-title/hep-title.ins b/Master/texmf-dist/source/latex/hep-title/hep-title.ins
index 7ad98b6490a..cef4b265c27 100644
--- a/Master/texmf-dist/source/latex/hep-title/hep-title.ins
+++ b/Master/texmf-dist/source/latex/hep-title/hep-title.ins
@@ -1,4 +1,4 @@
-%% Copyright (C) 2019-2020 by Jan Hajer
+%% Copyright (C) 2019-2023 by Jan Hajer
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -16,7 +16,7 @@
\preamble
This is a generated file.
-Copyright (C) 2019-2020 by Jan Hajer
+Copyright (C) 2019-2023 by Jan Hajer
This file may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
version 1.3c of this license or (at your option) any later