| 1 |
%% |
| 2 |
%% This is file `hep-title-documentation.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% hep-title-implementation.dtx (with options: `documentation') |
| 8 |
%% This is a generated file. |
| 9 |
%% Copyright (C) 2019-2025 by Jan Hajer |
| 10 |
%% This file may be distributed and/or modified under the |
| 11 |
%% conditions of the LaTeX Project Public License, either |
| 12 |
%% version 1.3c of this license or (at your option) any later |
| 13 |
%% version. The latest version of this license is in: |
| 14 |
%% http://www.latex-project.org/lppl.txt |
| 15 |
%% and version 1.3c or later is part of all distributions of |
| 16 |
%% LaTeX version 2005/12/01 or later. |
| 17 |
|
| 18 |
\ProvidesFile{hep-title-documentation.tex}[2025/09/01 v1.4 hep-title documentation] |
| 19 |
|
| 20 |
\RequirePackage[l2tabu, orthodox]{nag} |
| 21 |
|
| 22 |
\documentclass{ltxdoc} |
| 23 |
|
| 24 |
\renewcommand*\theCodelineNo{\rmfamily\tstyle\footnotesize\arabic{CodelineNo}} |
| 25 |
\AtBeginEnvironment{macrocode}{\renewcommand*{\ttdefault}{clmt}} |
| 26 |
\renewcommand*{\MacroFont}{\codestyle} |
| 27 |
\AtBeginDocument{\DeleteShortVerb{\|}} |
| 28 |
\AtBeginDocument{\MakeShortVerb{\"}} |
| 29 |
\EnableCrossrefs |
| 30 |
\CodelineIndex |
| 31 |
\RecordChanges |
| 32 |
|
| 33 |
\usepackage{hologo} |
| 34 |
|
| 35 |
\usepackage[parskip,oldstyle,font=10pt]{hep-paper} |
| 36 |
\bibliography{bibliography} |
| 37 |
|
| 38 |
\acronym{PDF}{portable document format} |
| 39 |
|
| 40 |
|
| 41 |
\GetFileInfo{hep-title.sty} |
| 42 |
|
| 43 |
\title{The \software{hep-title} package\thanks{This document corresponds to \software{hep-title}~\fileversion.}} |
| 44 |
\subtitle{Extensions for the title page} |
| 45 |
\author{Jan Hajer \email{[email protected]}} |
| 46 |
\date{\filedate} |
| 47 |
|
| 48 |
\begin{document} |
| 49 |
|
| 50 |
\newgeometry{vscale=.8, vmarginratio=3:4, includeheadfoot, left=11em, marginparwidth=4.6cm, marginparsep=3mm, right=7em} |
| 51 |
|
| 52 |
\maketitle |
| 53 |
|
| 54 |
\begin{abstract} |
| 55 |
The \software{hep-title} package extends the title macros of the standard classes with macros for a preprint, affiliation, editors, and endorsers. |
| 56 |
\end{abstract} |
| 57 |
|
| 58 |
To use the \software{hep-title} package include it with "\usepackage{hep-title}". |
| 59 |
|
| 60 |
Most macros are intended for the use in the preamble. |
| 61 |
They are implemented using the \software{titling} \cite{titling} and \software{authblk} \cite{authblk} packages. |
| 62 |
|
| 63 |
\section{Macros} |
| 64 |
|
| 65 |
If the \software{hyperref} package is loaded the \PDF meta information is set according to the "\title"\marg{text} and "\author"\marg{text} information. |
| 66 |
|
| 67 |
\subsection{Title} |
| 68 |
|
| 69 |
\DescribeMacro{\series} |
| 70 |
\DescribeMacro{\title} |
| 71 |
\DescribeMacro{\subtitle} |
| 72 |
\DescribeMacro{\seriesfont} |
| 73 |
\DescribeMacro{\titlefont} |
| 74 |
\DescribeMacro{\subtitlefont} |
| 75 |
The "\series"\marg{series} places a series title above the usual title generated via "\title"\marg{title}. |
| 76 |
The "\subtitle"\marg{subtitle} macro places a subtitle below the usual title. |
| 77 |
The fonts and their size can be adjusted using the "\seriesfont"\marg{font}, "\titlefont"\marg{font}, and "\subtitlefont"\marg{font} macros. |
| 78 |
|
| 79 |
\subsection{Authors} |
| 80 |
|
| 81 |
\DescribeMacro{\author} |
| 82 |
\DescribeMacro{\authorfont} |
| 83 |
\DescribeMacro{\email} |
| 84 |
\DescribeMacro{\affiliation} |
| 85 |
\DescribeMacro{\affiliationfont} |
| 86 |
In order to facilitate multiple authors with different affiliations the \software{authblk} package \cite{authblk} is extended. |
| 87 |
The author macro is extended to take a affiliation label "\author"\oarg{label}\marg{name}. |
| 88 |
The affiliation macro takes the corresponding label "\affiliation"\oarg{label}\marg{institution}. |
| 89 |
Additionally, the "\email{email}" macro places a link containing the email in typewrite font into a footnote. |
| 90 |
The fonts can be adjusted using the "\authorfont"\marg{font} and "\affiliationfont"\marg{font} macros. |
| 91 |
The following lines add \eg two authors with different affiliations |
| 92 |
\begin{verbatim} |
| 93 |
\author[affil1]{Author one \email{email one}} |
| 94 |
\affiliation[affil1]{Affiliation one} |
| 95 |
\author[affil2]{Author two \email{email two}} |
| 96 |
\affiliation[affil1,affil2]{Affiliation two} |
| 97 |
\end{verbatim} |
| 98 |
|
| 99 |
\DescribeMacro{\editor} |
| 100 |
\DescribeMacro{\endorser} |
| 101 |
\DescribeMacro{\editorfont} |
| 102 |
\DescribeMacro{\endorserfont} |
| 103 |
Additionally the "\editor"\oarg{label}\marg{name} and "\endorser"\oarg{label}\marg{name} macros are provided that act similar to the "\author"\oarg{label}\marg{name} macros but place their content in a dedicated line. |
| 104 |
Their font can be adjusted by the "\editorfont"\marg{font} and "\endorserfont"\marg{font}. |
| 105 |
\DescribeMacro{\editortitle} |
| 106 |
\DescribeMacro{\endorsertitle} |
| 107 |
\DescribeMacro{\editortitlefont} |
| 108 |
\DescribeMacro{\endorsertitlefont} |
| 109 |
The titles of these lines can be adjusted using the "\editortitle"\marg{singluar}\marg{plural} and "\endorsertitle"\marg{singluar}\marg{plural} macros. |
| 110 |
Their font can be adjust with the "\editortitlefont"\marg{font} and "\endorsertitlefont"\allowbreak\marg{font}. |
| 111 |
|
| 112 |
\subsection{Abstract} |
| 113 |
|
| 114 |
\DescribeEnv{abstract} |
| 115 |
\DescribeEnv{abstract*} |
| 116 |
The "abstract" environment is adjusted to not start with an indentation. |
| 117 |
The "abstract*" environment takes care of placing the title as well. |
| 118 |
This is used in "twocolumn" documents if the abstract should span both columns. |
| 119 |
|
| 120 |
\subsection{Preprint} |
| 121 |
|
| 122 |
\DescribeMacro{\preprint} |
| 123 |
\DescribeMacro{\preprintfont} |
| 124 |
The "\preprint"\marg{numer} macro places a pre-print number in the upper right corner of the title page. |
| 125 |
The "\preprintfont" macro can be used to change the font of the preprint. |
| 126 |
|
| 127 |
\printbibliography |
| 128 |
|
| 129 |
\end{document} |
| 130 |
|
| 131 |
\endinput |
| 132 |
%% |
| 133 |
%% End of file `hep-title-documentation.tex'. |