diff options
author | Norbert Preining <norbert@preining.info> | 2022-11-02 03:09:43 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-11-02 03:09:43 +0000 |
commit | 2281af8ba8fd52341e706f3979712f3280fcfdad (patch) | |
tree | 5e83a2779b732f03b430cf208b732ce611ee2cff /macros/latex/contrib/hep-title | |
parent | 7ad25021e74ea26e33d705fbb402d29aabaf6314 (diff) |
CTAN sync 202211020309
Diffstat (limited to 'macros/latex/contrib/hep-title')
-rw-r--r-- | macros/latex/contrib/hep-title/bibliography.bib | 161 | ||||
-rw-r--r-- | macros/latex/contrib/hep-title/hep-title-documentation.pdf | bin | 249815 -> 267000 bytes | |||
-rw-r--r-- | macros/latex/contrib/hep-title/hep-title-implementation.dtx | 80 | ||||
-rw-r--r-- | macros/latex/contrib/hep-title/hep-title-implementation.pdf | bin | 319774 -> 351389 bytes |
4 files changed, 213 insertions, 28 deletions
diff --git a/macros/latex/contrib/hep-title/bibliography.bib b/macros/latex/contrib/hep-title/bibliography.bib index e5117be3d5..5b217a2aad 100644 --- a/macros/latex/contrib/hep-title/bibliography.bib +++ b/macros/latex/contrib/hep-title/bibliography.bib @@ -21,7 +21,7 @@ subtitle = "An acronym extension for glossaries", author = "Jan Hajer", year = "2021", eprinttype = "ctan", -eprint = "hep-acronyms", +eprint = "hep-acronym", related = "hep-paper-1", } @@ -95,6 +95,24 @@ eprint = "hep-title", related = "hep-paper-1", } +@article{hep-reference, +title = "The |hep-reference| package", +subtitle = "Selection of reference improvements", +author = "Jan Hajer", +year = "2021", +eprinttype = "ctan", +eprint = "hep-reference", +related = "hep-paper-1", +} + +@article{hep-cv, +title = "The |hep-cv| package", +subtitle = "Appealing curricula vitarum", +author = "Jan Hajer", +year = "2020", +related = "hep-paper-1", +} + @article{kvoptions, title = "The |kvoptions| package", subtitle = "Key value format for package options", @@ -1053,3 +1071,144 @@ eprinttype = "ctan", eprint = "soulutf8", } +@article{moderncv, +title = "The |moderncv| package", +subtitle = "A modern curriculum vitae class", +author = "Xavier Danaux", +year = "2006", +eprinttype = "ctan", +eprint = "moderncv", +related = "moderncv-1", +} + +@article{anyfontsize, +title = "The |anyfontsize| package", +subtitle = "Select any font size in \hologo{LaTeX}", +author = "Péter Szabó", +date = "2007", +eprinttype = "ctan", +eprint = "anyfontsize", +} + +@article{array, +title = "A new implementation of \hologo{LaTeX}’s |tabular| and |array| environment", +subtitle = "Extending the |array| and |tabular| environments", +author = "Frank Mittelbach, David Carlisle", +collaboration= "\hologo{LaTeX} Team", +year = "1993", +eprinttype = "ctan", +eprint = "array", +} + +@article{dashrule, +title = "The |dashrule| package", +subtitle = "Draw dashed rules", +author = "Scott Pakin", +date = "2008", +eprinttype = "ctan", +eprint = "dashrule", +} + +@article{fancyhdr, +title = "The |fancyhdr| and |extramarks| packages", +subtitle = "Extensive control of page headers and footers in \hologo{LaTeX2e}", +author = "Piet van Oostrum", +date = "1994", +eprinttype = "ctan", +eprint = "fancyhdr", +} + +@article{lastpage, +title = "The |lastpage| package", +subtitle = "Reference last page for Page $N$ of $M$ type footers", +author = "Hans-Martin Münch and Jeffrey Goldberg", +date = "1994", +eprinttype = "ctan", +eprint = "lastpage", +} + +@article{textpos, +title = "|Textpos|: absolute positioning of text on the page", +subtitle = "Place boxes at arbitrary positions on the \hologo{LaTeX} page", +author = "Norman Gray", +date = "1999", +eprinttype = "ctan", +eprint = "textpos", +related = "textpos-1", +} + +@manual{textpos-1, +eprinttype = "bitbucket", +eprintclass = "nxg", +eprint = "textpos", +} + +@article{subfiles, +title = "The |subfiles| package: A Document Class and a Package for Handling Multi-File Projects", +subtitle = "Individual typesetting of subfiles of a \enquote{main} document", +author = "Federico Garcia and Gernot Salzer", +date = "2002", +eprinttype = "ctan", +eprint = "subfiles", +related = "subfiles-1", +} + +@manual{subfiles-1, +eprinttype = "github", +eprintclass = "gsalzer", +eprint = "subfiles", +} + +@article{titlesec, +title = "The |titlesec|, |titleps| and |titletoc| packages", +subtitle = "Select alternative section titles", +author = "Javier Bezos", +year = "1998", +eprinttype = "ctan", +eprint = "titlesec", +related = "titlesec-1", +} + +@manual{titlesec-1, +eprinttype = "github", +eprintclass = "jbezos", +eprint = "titlesec", +} + +@article{calc, +title = "The |calc| package", +subtitle = "Simple arithmetic in \hologo{LaTeX} commands", +author = "Kresten Krab Thorup and Frank Jensen", +collaboration = "\hologo{LaTeX3} Project", +year = "1992", +eprinttype = "ctan", +eprint = "calc", +} + +@article{tabulary, +title = "The |tabulary| package", +subtitle = "Tabular with variable width columns balanced", +author = "David Carlisle", +year = "1995", +eprinttype = "ctan", +eprint = "tabulary", +} + +@article{xcolor, +title = "The |xcolor| package", +subtitle = "Driver-independent color extensions for \hologo{LaTeX} and \hologo{pdfLaTeX}", +author = "Uwe Kern", +collaboration = "\hologo{LaTeX} Project", +year = "2003", +eprinttype = "ctan", +eprint = "xcolor", +} + +@article{overlays, +title = "The |overlays| package", +subtitle = "Incremental slides", +author = "Andreas Nolda", +year = "2016", +eprinttype = "ctan", +eprint = "overlays", +} diff --git a/macros/latex/contrib/hep-title/hep-title-documentation.pdf b/macros/latex/contrib/hep-title/hep-title-documentation.pdf Binary files differindex 4c8f7922d4..5efb25df63 100644 --- a/macros/latex/contrib/hep-title/hep-title-documentation.pdf +++ b/macros/latex/contrib/hep-title/hep-title-documentation.pdf diff --git a/macros/latex/contrib/hep-title/hep-title-implementation.dtx b/macros/latex/contrib/hep-title/hep-title-implementation.dtx index 9a175e673a..da2445a4d1 100644 --- a/macros/latex/contrib/hep-title/hep-title-implementation.dtx +++ b/macros/latex/contrib/hep-title/hep-title-implementation.dtx @@ -18,8 +18,8 @@ % \iffalse %<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01] -%<package>\ProvidesPackage{hep-title}[2021/09/01 v1.0 Extend title page macros] -%<documentation>\ProvidesFile{hep-title-documentation.tex}[2021/09/01 v1.0 hep-title documentation] +%<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] % %<*documentation> @@ -56,7 +56,7 @@ % % \fi % -% \CheckSum{922} +% \CheckSum{945} % % \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 @@ -75,6 +75,7 @@ % Right brace \} Tilde \~} % % \changes{v1.0}{2021/09/01}{Initial version of the style file.} +% \changes{v1.1}{2022/11/01}{Bug fixes.} % % \ifshort %<*documentation> @@ -84,7 +85,7 @@ \title{The \software{hep-title} package\thanks{This document corresponds to \software{hep-title}~\fileversion.}} \subtitle{Extensions for the title page} -\author{Jan Hajer \email{jan.hajer@unibas.ch}} +\author{Jan Hajer \email{jan.hajer@tecnico.ulisboa.pt}} \date{\filedate} % \ifshort @@ -106,6 +107,8 @@ They are implemented using the \software{titling} \cite{titling} and \software{a \section{Macros} +If the \software{hyperref} package is loaded the \PDF meta information is set according to the "\title"\marg{text} and "\author"\marg{text} information. + \subsection{Title} \DescribeMacro{\series} @@ -114,23 +117,22 @@ They are implemented using the \software{titling} \cite{titling} and \software{a \DescribeMacro{\seriesfont} \DescribeMacro{\titlefont} \DescribeMacro{\subtitlefont} -The PDF meta information is set according to the "\title"\marg{text} and "\author"\marg{text} information. -The "\series"\marg{series} places a series title above the usual title. +The "\series"\marg{series} places a series title above the usual title generated via "\title"\marg{title}. The "\subtitle"\marg{subtitle} macro places a subtitle below the usual title. -The fonts and their size can be adjusted using the "\seriesfont", "\titlefont", and "\subtitlefont" macros. +The fonts and their size can be adjusted using the "\seriesfont"\marg{font}, "\titlefont"\marg{font}, and "\subtitlefont"\marg{font} macros. \subsection{Authors} \DescribeMacro{\author} -\DescribeMacro{\affiliation} -\DescribeMacro{\editor} -\DescribeMacro{\endorser} -\DescribeMacro{\email} \DescribeMacro{\authorfont} -\DescribeMacro{\editorfont} -\DescribeMacro{\endorserfont} +\DescribeMacro{\email} +\DescribeMacro{\affiliation} \DescribeMacro{\affiliationfont} In order to facilitate multiple authors with different affiliations the \software{authblk} package \cite{authblk} is extended. +The author macro is extended to take a affiliation label "\author"\oarg{label}\marg{name}. +The affiliation macro takes the corresponding label "\affiliation"\oarg{label}\marg{institution}. +Additionally, the "\email{email}" macro places a link containing the email in typewrite font into a footnote. +The fonts can be adjusted using the "\authorfont"\marg{font} and "\affiliationfont"\marg{font} macros. The following lines add \eg two authors with different affiliations \begin{verbatim} \author[affil1]{Author one \email{email one}} @@ -138,7 +140,19 @@ The following lines add \eg two authors with different affiliations \author[affil2]{Author two \email{email two}} \affiliation[affil1,affil2]{Affiliation two} \end{verbatim} -Additionally the "\editor" and "\endorser" macros are provided. + +\DescribeMacro{\editor} +\DescribeMacro{\endorser} +\DescribeMacro{\editorfont} +\DescribeMacro{\endorserfont} +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. +Their font can be adjusted by the "\editorfont"\marg{font} and "\endorserfont"\marg{font}. +\DescribeMacro{\editortitle} +\DescribeMacro{\endorsertitle} +\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}. \subsection{Abstract} @@ -240,7 +254,7 @@ The "\preprintfont" macro can be used to change the font of the preprint. % \end{macro} % % \begin{macro}{\placepreprint} -% Places a preprint number in the top right corner of the title page using the \software{atbegshi} \cite{atbegshi} and \software{picture} \cite{picture} packages. +% Places a preprint number in the top right corner of the title page using the \software{calc} \cite{calc}, \software{atbegshi} \cite{atbegshi}, and \software{picture} \cite{picture} packages. % \begin{macrocode} \RequirePackage{calc} \RequirePackage{atbegshi} @@ -298,7 +312,7 @@ The "\preprintfont" macro can be used to change the font of the preprint. \@ifundefined{hep@series}{}{% \hep@pre@series\hep@series\hep@post@series% }% - \vspace{-\bigskipamount}% +% \vspace{-\bigskipamount}% } % \end{macrocode} % \end{macro} @@ -477,7 +491,7 @@ The "\preprintfont" macro can be used to change the font of the preprint. % \end{macrocode} % \end{macro} % -% Switch authblk to a label ref system for affiliations. +% Switch authblk to a label ref system for affiliations using the \software{xpatch} package \cite{xpatch}. % \begin{macrocode} \RequirePackage{xpatch} \xpatchcmd{\author}{% @@ -651,7 +665,7 @@ The "\preprintfont" macro can be used to change the font of the preprint. \AB@affilnote{\AB@note}% }{% \protect\refstepcounter{affiliation}\protect\label{\AB@note}% - \if\relax#1\relax\else\protect\ref{\AB@note}\fi% + \if\relax#1\relax\else\protect\theaffiliation\fi% }{}{} % \end{macrocode} % @@ -699,7 +713,9 @@ The "\preprintfont" macro can be used to change the font of the preprint. \fi % \\[\affilsep] \ifx\AB@affillist\AB@empty\else% - \begin{center}\AB@affillist\end{center}% + \ifnum\value{affil}>\value{Maxaffil} + \begin{center}\AB@affillist\end{center}% + \fi% \fi% } % \end{macrocode} @@ -707,8 +723,7 @@ The "\preprintfont" macro can be used to change the font of the preprint. % \begin{macro}{\@author} % Ensure that affiliation is not set directly below author % \begin{macrocode} -\def\@author{} -\renewcommand\@author{% +\def\@author{% \ifx\AB@affillist\AB@empty% \AB@author% \else% @@ -757,6 +772,15 @@ The "\preprintfont" macro can be used to change the font of the preprint. \@ifundefined{abstract}{}{% \let\hep@abstract\abstract% \renewcommand\abstract{\hep@abstract\noindent\ignorespaces}% + \let\hep@key@words\relax + \newcommand{\keywords}[1]{\def\hep@key@words{#1}} + \AtBeginDocument{\@ifundefined{hep@key@words}{}{% + \let\hep@end@abstract\endabstract% + \renewcommand\endabstract{ + \par\medskip\noindent\textit{Keywords: \hep@key@words}% + \hep@end@abstract% + }% + }} % \end{macrocode} % \end{environment} % \begin{environment}{abstract*} @@ -857,17 +881,19 @@ The "\preprintfont" macro can be used to change the font of the preprint. \date{Date} -\begin{document} +\keywords{Keyword 1, keyword 2, keyword 3} +\begin{document} +%<testone> %<testone> \maketitle -%<testone> \begin{abstract} -%<testtwo> \begin{abstract*} +%<testone>\begin{abstract} +%<testtwo>\begin{abstract*} \blindtext -%<testone> \end{abstract} -%<testtwo> \end{abstract*} +%<testone>\end{abstract} +%<testtwo>\end{abstract*} -First page footnote.\footnote{Footnote} +\noindent First page footnote.\footnote{Footnote} \blinddocument diff --git a/macros/latex/contrib/hep-title/hep-title-implementation.pdf b/macros/latex/contrib/hep-title/hep-title-implementation.pdf Binary files differindex 7dafac24a9..1fad6acc93 100644 --- a/macros/latex/contrib/hep-title/hep-title-implementation.pdf +++ b/macros/latex/contrib/hep-title/hep-title-implementation.pdf |