texlive[64907] Master/texmf-dist: hep-title (2nov22)
commits+karl at tug.org
commits+karl at tug.org
Wed Nov 2 23:06:12 CET 2022
Revision: 64907
http://tug.org/svn/texlive?view=revision&revision=64907
Author: karl
Date: 2022-11-02 23:06:12 +0100 (Wed, 02 Nov 2022)
Log Message:
-----------
hep-title (2nov22)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/hep-title/bibliography.bib
trunk/Master/texmf-dist/doc/latex/hep-title/hep-title-documentation.pdf
trunk/Master/texmf-dist/doc/latex/hep-title/hep-title-documentation.tex
trunk/Master/texmf-dist/doc/latex/hep-title/hep-title-implementation.pdf
trunk/Master/texmf-dist/doc/latex/hep-title/hep-title-test-one.tex
trunk/Master/texmf-dist/doc/latex/hep-title/hep-title-test-two.tex
trunk/Master/texmf-dist/source/latex/hep-title/hep-title-implementation.dtx
trunk/Master/texmf-dist/tex/latex/hep-title/hep-title.sty
Modified: trunk/Master/texmf-dist/doc/latex/hep-title/bibliography.bib
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hep-title/bibliography.bib 2022-11-02 22:05:52 UTC (rev 64906)
+++ trunk/Master/texmf-dist/doc/latex/hep-title/bibliography.bib 2022-11-02 22:06:12 UTC (rev 64907)
@@ -21,7 +21,7 @@
author = "Jan Hajer",
year = "2021",
eprinttype = "ctan",
-eprint = "hep-acronyms",
+eprint = "hep-acronym",
related = "hep-paper-1",
}
@@ -95,6 +95,24 @@
related = "hep-paper-1",
}
+ at 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",
+}
+
+ at 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 @@
eprint = "soulutf8",
}
+ at article{moderncv,
+title = "The |moderncv| package",
+subtitle = "A modern curriculum vitae class",
+author = "Xavier Danaux",
+year = "2006",
+eprinttype = "ctan",
+eprint = "moderncv",
+related = "moderncv-1",
+}
+
+ at article{anyfontsize,
+title = "The |anyfontsize| package",
+subtitle = "Select any font size in \hologo{LaTeX}",
+author = "Péter Szabó",
+date = "2007",
+eprinttype = "ctan",
+eprint = "anyfontsize",
+}
+
+ at 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",
+}
+
+ at article{dashrule,
+title = "The |dashrule| package",
+subtitle = "Draw dashed rules",
+author = "Scott Pakin",
+date = "2008",
+eprinttype = "ctan",
+eprint = "dashrule",
+}
+
+ at 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",
+}
+
+ at 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",
+}
+
+ at 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",
+}
+
+ at manual{textpos-1,
+eprinttype = "bitbucket",
+eprintclass = "nxg",
+eprint = "textpos",
+}
+
+ at 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",
+}
+
+ at manual{subfiles-1,
+eprinttype = "github",
+eprintclass = "gsalzer",
+eprint = "subfiles",
+}
+
+ at 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",
+}
+
+ at manual{titlesec-1,
+eprinttype = "github",
+eprintclass = "jbezos",
+eprint = "titlesec",
+}
+
+ at 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",
+}
+
+ at article{tabulary,
+title = "The |tabulary| package",
+subtitle = "Tabular with variable width columns balanced",
+author = "David Carlisle",
+year = "1995",
+eprinttype = "ctan",
+eprint = "tabulary",
+}
+
+ at 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",
+}
+
+ at article{overlays,
+title = "The |overlays| package",
+subtitle = "Incremental slides",
+author = "Andreas Nolda",
+year = "2016",
+eprinttype = "ctan",
+eprint = "overlays",
+}
Modified: trunk/Master/texmf-dist/doc/latex/hep-title/hep-title-documentation.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/hep-title/hep-title-documentation.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hep-title/hep-title-documentation.tex 2022-11-02 22:05:52 UTC (rev 64906)
+++ trunk/Master/texmf-dist/doc/latex/hep-title/hep-title-documentation.tex 2022-11-02 22:06:12 UTC (rev 64907)
@@ -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 at unibas.ch}}
+\author{Jan Hajer \email{jan.hajer at tecnico.ulisboa.pt}}
\date{\filedate}
\begin{document}
@@ -63,6 +63,8 @@
\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 @@
\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{\authorfont}
+\DescribeMacro{\email}
\DescribeMacro{\affiliation}
-\DescribeMacro{\editor}
-\DescribeMacro{\endorser}
-\DescribeMacro{\email}
-\DescribeMacro{\authorfont}
-\DescribeMacro{\editorfont}
-\DescribeMacro{\endorserfont}
\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,8 +96,20 @@
\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}
\DescribeEnv{abstract}
Modified: trunk/Master/texmf-dist/doc/latex/hep-title/hep-title-implementation.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/hep-title/hep-title-test-one.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hep-title/hep-title-test-one.tex 2022-11-02 22:05:52 UTC (rev 64906)
+++ trunk/Master/texmf-dist/doc/latex/hep-title/hep-title-test-one.tex 2022-11-02 22:06:12 UTC (rev 64907)
@@ -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
Modified: trunk/Master/texmf-dist/doc/latex/hep-title/hep-title-test-two.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hep-title/hep-title-test-two.tex 2022-11-02 22:05:52 UTC (rev 64906)
+++ trunk/Master/texmf-dist/doc/latex/hep-title/hep-title-test-two.tex 2022-11-02 22:06:12 UTC (rev 64907)
@@ -56,14 +56,15 @@
\date{Date}
+\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
Modified: trunk/Master/texmf-dist/source/latex/hep-title/hep-title-implementation.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/hep-title/hep-title-implementation.dtx 2022-11-02 22:05:52 UTC (rev 64906)
+++ trunk/Master/texmf-dist/source/latex/hep-title/hep-title-implementation.dtx 2022-11-02 22:06:12 UTC (rev 64907)
@@ -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 at unibas.ch}}
+\author{Jan Hajer \email{jan.hajer at tecnico.ulisboa.pt}}
\date{\filedate}
% \ifshort
@@ -106,6 +107,8 @@
\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 @@
\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{\authorfont}
+\DescribeMacro{\email}
\DescribeMacro{\affiliation}
-\DescribeMacro{\editor}
-\DescribeMacro{\endorser}
-\DescribeMacro{\email}
-\DescribeMacro{\authorfont}
-\DescribeMacro{\editorfont}
-\DescribeMacro{\endorserfont}
\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,8 +140,20 @@
\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}
\DescribeEnv{abstract}
@@ -240,7 +254,7 @@
% \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 @@
\@ifundefined{hep at series}{}{%
\hep at pre@series\hep at series\hep at post@series%
}%
- \vspace{-\bigskipamount}%
+% \vspace{-\bigskipamount}%
}
% \end{macrocode}
% \end{macro}
@@ -477,7 +491,7 @@
% \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 @@
\AB at affilnote{\AB at note}%
}{%
\protect\refstepcounter{affiliation}\protect\label{\AB at note}%
- \if\relax#1\relax\else\protect\ref{\AB at note}\fi%
+ \if\relax#1\relax\else\protect\theaffiliation\fi%
}{}{}
% \end{macrocode}
%
@@ -699,7 +713,9 @@
\fi
% \\[\affilsep]
\ifx\AB at affillist\AB at empty\else%
- \begin{center}\AB at affillist\end{center}%
+ \ifnum\value{affil}>\value{Maxaffil}
+ \begin{center}\AB at affillist\end{center}%
+ \fi%
\fi%
}
% \end{macrocode}
@@ -707,8 +723,7 @@
% \begin{macro}{\@author}
% Ensure that affiliation is not set directly below author
% \begin{macrocode}
-\def\@author{}
-\renewcommand\@author{%
+\def\@author{%
\ifx\AB at affillist\AB at empty%
\AB at author%
\else%
@@ -757,6 +772,15 @@
\@ifundefined{abstract}{}{%
\let\hep at abstract\abstract%
\renewcommand\abstract{\hep at abstract\noindent\ignorespaces}%
+ \let\hep at key@words\relax
+ \newcommand{\keywords}[1]{\def\hep at key@words{#1}}
+ \AtBeginDocument{\@ifundefined{hep at key@words}{}{%
+ \let\hep at end@abstract\endabstract%
+ \renewcommand\endabstract{
+ \par\medskip\noindent\textit{Keywords: \hep at key@words}%
+ \hep at end@abstract%
+ }%
+ }}
% \end{macrocode}
% \end{environment}
% \begin{environment}{abstract*}
@@ -857,17 +881,19 @@
\date{Date}
+\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
Modified: trunk/Master/texmf-dist/tex/latex/hep-title/hep-title.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hep-title/hep-title.sty 2022-11-02 22:05:52 UTC (rev 64906)
+++ trunk/Master/texmf-dist/tex/latex/hep-title/hep-title.sty 2022-11-02 22:06:12 UTC (rev 64907)
@@ -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 at email}[1]{\online{mailto:#1}{#1}}
@@ -73,7 +73,6 @@
\@ifundefined{hep at series}{}{%
\hep at pre@series\hep at series\hep at post@series%
}%
- \vspace{-\bigskipamount}%
}
\let\hep at title@font\relax
\newcommand{\titlefont}[1]{\def\hep at title@font{#1}}
@@ -307,7 +306,7 @@
\AB at affilnote{\AB at note}%
}{%
\protect\refstepcounter{affiliation}\protect\label{\AB at note}%
- \if\relax#1\relax\else\protect\ref{\AB at note}\fi%
+ \if\relax#1\relax\else\protect\theaffiliation\fi%
}{}{}
\let\hep at affiliation@font\relax
\newcommand{\affiliationfont}[1]{\def\hep at affiliation@font{#1}}
@@ -333,11 +332,12 @@
\hep at pre@endorser\hep at endorserlist\hep at post@endorser%
\fi
\ifx\AB at affillist\AB at empty\else%
- \begin{center}\AB at affillist\end{center}%
+ \ifnum\value{affil}>\value{Maxaffil}
+ \begin{center}\AB at affillist\end{center}%
+ \fi%
\fi%
}
-\def\@author{}
-\renewcommand\@author{%
+\def\@author{%
\ifx\AB at affillist\AB at empty%
\AB at author%
\else%
@@ -357,6 +357,15 @@
\@ifundefined{abstract}{}{%
\let\hep at abstract\abstract%
\renewcommand\abstract{\hep at abstract\noindent\ignorespaces}%
+ \let\hep at key@words\relax
+ \newcommand{\keywords}[1]{\def\hep at key@words{#1}}
+ \AtBeginDocument{\@ifundefined{hep at key@words}{}{%
+ \let\hep at end@abstract\endabstract%
+ \renewcommand\endabstract{
+ \par\medskip\noindent\textit{Keywords: \hep at key@words}%
+ \hep at end@abstract%
+ }%
+ }}
\if at twocolumn
\RequirePackage{environ}
\RequirePackage{abstract}
More information about the tex-live-commits
mailing list.