summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hep-paper/hep-paper-implementation.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/hep-paper/hep-paper-implementation.dtx')
-rw-r--r--macros/latex/contrib/hep-paper/hep-paper-implementation.dtx55
1 files changed, 29 insertions, 26 deletions
diff --git a/macros/latex/contrib/hep-paper/hep-paper-implementation.dtx b/macros/latex/contrib/hep-paper/hep-paper-implementation.dtx
index 1fe7658b0a..b0b1b39ca6 100644
--- a/macros/latex/contrib/hep-paper/hep-paper-implementation.dtx
+++ b/macros/latex/contrib/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>