diff options
-rw-r--r-- | Master/texmf-dist/doc/latex/hep-title/bibliography.bib | 161 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/hep-title/hep-title-documentation.pdf | bin | 249815 -> 267000 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/hep-title/hep-title-documentation.tex | 37 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/hep-title/hep-title-implementation.pdf | bin | 319774 -> 351389 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/hep-title/hep-title-test-one.tex | 8 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/hep-title/hep-title-test-two.tex | 9 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/hep-title/hep-title-implementation.dtx | 80 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/hep-title/hep-title.sty | 21 |
8 files changed, 263 insertions, 53 deletions
diff --git a/Master/texmf-dist/doc/latex/hep-title/bibliography.bib b/Master/texmf-dist/doc/latex/hep-title/bibliography.bib index e5117be3d56..5b217a2aad6 100644 --- a/Master/texmf-dist/doc/latex/hep-title/bibliography.bib +++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/hep-title/hep-title-documentation.pdf b/Master/texmf-dist/doc/latex/hep-title/hep-title-documentation.pdf Binary files differindex 4c8f7922d4b..5efb25df630 100644 --- a/Master/texmf-dist/doc/latex/hep-title/hep-title-documentation.pdf +++ b/Master/texmf-dist/doc/latex/hep-title/hep-title-documentation.pdf diff --git a/Master/texmf-dist/doc/latex/hep-title/hep-title-documentation.tex b/Master/texmf-dist/doc/latex/hep-title/hep-title-documentation.tex index 0405ab55379..d97ed66becb 100644 --- a/Master/texmf-dist/doc/latex/hep-title/hep-title-documentation.tex +++ b/Master/texmf-dist/doc/latex/hep-title/hep-title-documentation.tex @@ -15,7 +15,7 @@ %% and version 1.3c or later is part of all distributions of %% LaTeX version 2005/12/01 or later. -\ProvidesFile{hep-title-documentation.tex}[2021/09/01 v1.0 hep-title documentation] +\ProvidesFile{hep-title-documentation.tex}[2022/11/01 v1.1 hep-title documentation] \RequirePackage[l2tabu, orthodox]{nag} @@ -43,7 +43,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} \begin{document} @@ -63,6 +63,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} @@ -71,23 +73,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}} @@ -95,7 +96,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} diff --git a/Master/texmf-dist/doc/latex/hep-title/hep-title-implementation.pdf b/Master/texmf-dist/doc/latex/hep-title/hep-title-implementation.pdf Binary files differindex 7dafac24a91..1fad6acc932 100644 --- a/Master/texmf-dist/doc/latex/hep-title/hep-title-implementation.pdf +++ b/Master/texmf-dist/doc/latex/hep-title/hep-title-implementation.pdf diff --git a/Master/texmf-dist/doc/latex/hep-title/hep-title-test-one.tex b/Master/texmf-dist/doc/latex/hep-title/hep-title-test-one.tex index e222ef9278f..6158eb49ca7 100644 --- a/Master/texmf-dist/doc/latex/hep-title/hep-title-test-one.tex +++ b/Master/texmf-dist/doc/latex/hep-title/hep-title-test-one.tex @@ -56,15 +56,17 @@ \date{Date} +\keywords{Keyword 1, keyword 2, keyword 3} + \begin{document} \maketitle - \begin{abstract} +\begin{abstract} \blindtext - \end{abstract} +\end{abstract} -First page footnote.\footnote{Footnote} +\noindent First page footnote.\footnote{Footnote} \blinddocument diff --git a/Master/texmf-dist/doc/latex/hep-title/hep-title-test-two.tex b/Master/texmf-dist/doc/latex/hep-title/hep-title-test-two.tex index fda90081670..c46976b6463 100644 --- a/Master/texmf-dist/doc/latex/hep-title/hep-title-test-two.tex +++ b/Master/texmf-dist/doc/latex/hep-title/hep-title-test-two.tex @@ -56,14 +56,15 @@ \date{Date} -\begin{document} +\keywords{Keyword 1, keyword 2, keyword 3} +\begin{document} - \begin{abstract*} +\begin{abstract*} \blindtext - \end{abstract*} +\end{abstract*} -First page footnote.\footnote{Footnote} +\noindent First page footnote.\footnote{Footnote} \blinddocument 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 9a175e673aa..da2445a4d12 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 @@ -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/Master/texmf-dist/tex/latex/hep-title/hep-title.sty b/Master/texmf-dist/tex/latex/hep-title/hep-title.sty index f36504469ac..e3e217774da 100644 --- a/Master/texmf-dist/tex/latex/hep-title/hep-title.sty +++ b/Master/texmf-dist/tex/latex/hep-title/hep-title.sty @@ -16,7 +16,7 @@ %% LaTeX version 2005/12/01 or later. \NeedsTeXFormat{LaTeX2e}[2005/12/01] -\ProvidesPackage{hep-title}[2021/09/01 v1.0 Extend title page macros] +\ProvidesPackage{hep-title}[2022/11/01 v1.1 Extend title page macros] \providecommand{\online}[2]{\texttt{#2}}% \providecommand{\hep@email}[1]{\online{mailto:#1}{#1}} @@ -73,7 +73,6 @@ \@ifundefined{hep@series}{}{% \hep@pre@series\hep@series\hep@post@series% }% - \vspace{-\bigskipamount}% } \let\hep@title@font\relax \newcommand{\titlefont}[1]{\def\hep@title@font{#1}} @@ -307,7 +306,7 @@ \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% }{}{} \let\hep@affiliation@font\relax \newcommand{\affiliationfont}[1]{\def\hep@affiliation@font{#1}} @@ -333,11 +332,12 @@ \hep@pre@endorser\hep@endorserlist\hep@post@endorser% \fi \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% } -\def\@author{} -\renewcommand\@author{% +\def\@author{% \ifx\AB@affillist\AB@empty% \AB@author% \else% @@ -357,6 +357,15 @@ \@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% + }% + }} \if@twocolumn \RequirePackage{environ} \RequirePackage{abstract} |