| 1 |
% |
| 2 |
%% Copyright 2026, Joppe W. Bos and Kevin S. McCurley |
| 3 |
%% |
| 4 |
%% This work may be distributed and/or modified under the |
| 5 |
%% conditions of the LaTeX Project Public License, either version 1.3c |
| 6 |
%% of this license or (at your option) any later version. |
| 7 |
%% The latest version of this license is in |
| 8 |
%% https://www.latex-project.org/lppl.txt |
| 9 |
%% |
| 10 |
%% This work has the LPPL maintenance status `maintained'. |
| 11 |
%% |
| 12 |
%% The Current Maintainer of this work is Kevin S. McCurley, |
| 13 |
%% <[email protected]> |
| 14 |
%% |
| 15 |
%% This work consists of the files metacapture.sty, metacapture-doc.tex, |
| 16 |
%% metacapture-doc.bib, metacapture-doc.pdf, and metacapture-sample.tex. |
| 17 |
|
| 18 |
\DocumentMetadata{lang=en,debug={xmp-export}} |
| 19 |
\def\pkgversion{0.9.1} |
| 20 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 21 |
% It should work with many choices of documentclass. |
| 22 |
\documentclass{article} |
| 23 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 24 |
|
| 25 |
\usepackage{tcolorbox} |
| 26 |
\newcommand{\BibTeX}{{\rmfamily B\kern-.05em% |
| 27 |
\textsc{i\kern-.025em b}\kern-.08em% |
| 28 |
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}} |
| 29 |
\usepackage{verbatim} |
| 30 |
\newcommand{\pkgname}{\texttt{metacapture}} |
| 31 |
\usepackage{fancyvrb} |
| 32 |
\usepackage{tabularx} |
| 33 |
\usepackage{xurl} |
| 34 |
\newcommand{\iacrcc}{\texttt{iacrcc}} |
| 35 |
\newcommand{\cmd}[2][]{% |
| 36 |
\def\FirstArg{#1}% |
| 37 |
\ifx\FirstArg\empty% |
| 38 |
\texttt{\textbackslash{}#2}% |
| 39 |
\else% |
| 40 |
\texttt{\textbackslash{}#2\{#1\}}% |
| 41 |
\fi |
| 42 |
} |
| 43 |
\newcommand{\pkg}[1]{\texttt{#1}} |
| 44 |
\makeatletter |
| 45 |
\@ifclassloaded{iacrj}{}{\bibliographystyle{plainurl} |
| 46 |
\usepackage[cityrequired]{metacapture} |
| 47 |
} |
| 48 |
\makeatother |
| 49 |
\title[plaintext={The metacapture LaTeX package}, |
| 50 |
running={The \pkgname\ \LaTeX\ package v\pkgversion}, |
| 51 |
]{The \pkgname\ \textrm{\LaTeX} package v\pkgversion\footnote{Footnotes on titles do not use \cmd{thanks}}} |
| 52 |
|
| 53 |
\subtitle[plaintext={Structured metadata from authors}]{Structured metadata from authors} |
| 54 |
\addauthor[orcid = {0000-0003-1010-8157}, |
| 55 |
inst = {1}, |
| 56 |
onclick = {https://www.joppebos.com}, |
| 57 |
email = {[email protected]}, |
| 58 |
surname = {Bos} |
| 59 |
]{Joppe W. Bos} |
| 60 |
\addauthor[orcid = {0000-0001-7890-5430}, |
| 61 |
inst = {2}, |
| 62 |
footnote={Authors are allowed to have footnotes on their name.}, |
| 63 |
email = {[email protected]}, |
| 64 |
% onclick = {https://swcp.com/\%7Emccurley/index.html\#humor}, |
| 65 |
surname = {McCurley}, |
| 66 |
]{Kevin S. McCurley} |
| 67 |
\addaffiliation[ror = {031v4g827}, |
| 68 |
street = {Interleuvenlaan 80}, |
| 69 |
city = {Leuven}, |
| 70 |
postcode = {3001}, |
| 71 |
country = {Belgium}, |
| 72 |
countrycode = {BE} |
| 73 |
]{NXP Semiconductors} |
| 74 |
\addaffiliation[country={United States}, |
| 75 |
% countrycode={US}, we omit this. |
| 76 |
department={Department of Redundancy Department}, |
| 77 |
state={California}, |
| 78 |
city={San Jose}]{Unaffiliated} |
| 79 |
|
| 80 |
\addfunding[country={United States}]{IACR} |
| 81 |
\addkeywords[Metadata, publishing, LaTeX]{Metadata, publishing, \LaTeX} |
| 82 |
\license{CC-BY-4.0} |
| 83 |
%\license{CC0-1.0} |
| 84 |
\makeatletter |
| 85 |
\@ifclassloaded{iacrj}{\genericfootnote{We can add generic footnotes with \texttt{iacrj.cls}.}}{} |
| 86 |
\makeatother |
| 87 |
\usepackage{todonotes} |
| 88 |
\usepackage{framed} |
| 89 |
\newcommand{\todok}[1]{\todo[inline,color=green!20]{K: #1}} |
| 90 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% end of preamble %%%%%%%%%%%%%%%%%%%% |
| 91 |
%\RequirePackage[mathlines]{lineno} |
| 92 |
%\def\linenumberfont{\normalfont\tiny\sffamily\color{gray}} |
| 93 |
%\AtBeginDocument{\linenumbers} |
| 94 |
%%%%%%%%%%%% |
| 95 |
%\addbibresource{metacapture-doc.bib} |
| 96 |
\begin{document} |
| 97 |
\hypersetup{colorlinks=true} |
| 98 |
\maketitle |
| 99 |
\renewenvironment{abstract}{\begin{quote}\noindent\textbf{\textsf{Abstract.}}}{\end{quote}} |
| 100 |
\begin{abstract} |
| 101 |
This document describes the \pkgname\ \LaTeX\ package that can |
| 102 |
be used to capture metadata during the compilation of a \LaTeX\ |
| 103 |
document. This package is intended for use by document class |
| 104 |
designers as part of a journal publishing workflow. Authors provide their |
| 105 |
title, author information, affiliation, license, etc in macros that |
| 106 |
are used to produce the final document as well as a |
| 107 |
machine-parseable external text file. This external text file can |
| 108 |
then be used in a publishing workflow to provide HTML pages, JATS, and |
| 109 |
registration with indexing agencies like crossref. This packages comes with |
| 110 |
several implementations of a default \cmd{maketitle} command that |
| 111 |
can be invoked from the package at load time, or the document class |
| 112 |
designer can design their own using documented internal variables of |
| 113 |
the package. |
| 114 |
\end{abstract} |
| 115 |
\begin{textabstract} |
| 116 |
This document describes the metacapture LaTeX package that can |
| 117 |
be used to capture metadata during the compilation of a LaTeX |
| 118 |
document. This package is intended for use by document class |
| 119 |
designers as part of a publishing workflow. Authors provide their |
| 120 |
title, author information, affiliation, license, etc in macros that |
| 121 |
are used to produce the final document as well as a |
| 122 |
machine-parseable external text file. This external text file can |
| 123 |
then be used in a publishing workflow to provide HTML pages, JATS, and |
| 124 |
registration with indexing agencies like crossref. This package also |
| 125 |
provides several implementations of a default maketitle command that |
| 126 |
can be invoked from the package at load time, or the document class |
| 127 |
designer can design their own using documented internal variables of |
| 128 |
the package. |
| 129 |
\end{textabstract} |
| 130 |
|
| 131 |
%% \ExplSyntaxOn |
| 132 |
%% HERE: \g_metac_displayemails_tl |
| 133 |
%% \ExplSyntaxOff |
| 134 |
|
| 135 |
\section{Motivation} |
| 136 |
The original goal of \TeX\ was focused on typesetting and |
| 137 |
the appearance of the output on paper. With the later invention of |
| 138 |
\LaTeX, Lamport advised authors that |
| 139 |
\begin{quote}As you are writing your document, you should be concerned with its logical |
| 140 |
structure, not its visual appearance. The \LaTeX\ approach to typesetting |
| 141 |
can therefore be characterized as \emph{logical design}.~\cite[\S 1.4]{latex} |
| 142 |
\end{quote} |
| 143 |
Users were encouraged to use high-level macros like \cmd{section}, and |
| 144 |
leave the decisions like how much space to put before or after a |
| 145 |
section to the style that is used. This separation between structure |
| 146 |
and appearance is an example of a more general concept from computer |
| 147 |
science known as ``separation of concerns''. The goal of the \pkgname\ |
| 148 |
package is to extend this concept to metadata about a publication. |
| 149 |
Authors provide their metadata (e.g., title, subtitle, keywords, |
| 150 |
license, author names, emails, ORCID, funding, affiliations, etc) |
| 151 |
without any styling, and the display of this is left completely to the |
| 152 |
document class. |
| 153 |
|
| 154 |
We should mention that we insist on metadata consisting of only text |
| 155 |
elements, and not \LaTeX\ macros. We allow some simple things like |
| 156 |
accents \verb+\"u+ to slip through because they are easily converted |
| 157 |
to just text in a post-processing step. We also allow mathematics |
| 158 |
inside titles and abstracts. One of the purposes for the \pkgname\ |
| 159 |
package is to check that authors comply with the restriction to avoid |
| 160 |
user-defined macros in their metadata. Authors are still able to use macros and |
| 161 |
stylized text in their titles, subtitles, and abstracts, but we |
| 162 |
require authors to also supply ``plain text'' versions of all |
| 163 |
metadata. |
| 164 |
|
| 165 |
\subsection{Previous approaches} |
| 166 |
The \cmd{author} macro represents a fundamental limitation of the |
| 167 |
original \LaTeX\ \pkg{article} class, because authors are asked to include |
| 168 |
formatting as part of their author list using newline codes and |
| 169 |
macros such as \cmd{and} and \cmd{thanks}. |
| 170 |
If you peek under the covers, the default implementation of the \cmd{and} |
| 171 |
macro used to separate authors in the \cmd{author} macro |
| 172 |
is given in \texttt{latex.ltx} as |
| 173 |
\begin{Verbatim}[samepage=true] |
| 174 |
\DeclareRobustCommand\and{% % \begin{tabular} |
| 175 |
\end{tabular}% |
| 176 |
\hskip 1em \@plus.17fil% |
| 177 |
\begin{tabular}[t]{c}}% % \end{tabular} |
| 178 |
\end{Verbatim} |
| 179 |
The |
| 180 |
\cmd{and} macro therefore ends up serving two purposes, namely as a delimiter |
| 181 |
between author markup blobs and as a spacing instruction. This clearly |
| 182 |
violates the separation of concerns principle because it mixes |
| 183 |
structure and appearance. Some document classes such as \texttt{acmart} and |
| 184 |
\texttt{llncs} redefine the \cmd{and} macro for other purposes. |
| 185 |
|
| 186 |
In almost all cases, authors need to associate other metadata elements with their |
| 187 |
name, such as email, affiliations, ORCID, funding, etc. Depending on which document |
| 188 |
class they use, authors have various choices |
| 189 |
for this such as the \cmd{thanks} macro to create footnotes, or things |
| 190 |
like the \cmd{orcidlink} macro of the \texttt{orcidlink} package. Both of these |
| 191 |
are implemented as visual display macros, which again violates the separation |
| 192 |
of concerns principle. |
| 193 |
|
| 194 |
More modern document classes |
| 195 |
have recognized the need for metadata to be associated with articles |
| 196 |
and authors, and each of them has invented their own way to encode |
| 197 |
this data. The \pkg{llncs} class extends \pkg{article} and still uses a |
| 198 |
single \cmd{author} macro with authors separated by \cmd{and}, |
| 199 |
but intersperses other macros like \cmd{orcidID} |
| 200 |
and \cmd{inst} inside the \cmd{author} macro to annotate the |
| 201 |
individual authors. The implementation of the \cmd{inst} and |
| 202 |
\cmd{orcidID} macros are still based on layout rather than structure. |
| 203 |
The \pkg{IEEEtran} class also takes this approach. |
| 204 |
|
| 205 |
The \pkg{acmart}, \pkg{amsart}, and \pkg{revtex4-2} document classes |
| 206 |
all use a sequence of \cmd{author} commands for each author, with |
| 207 |
intervening macros such |
| 208 |
as \cmd{orcid}, \cmd{affiliation}, \cmd{email}, etc.\ to describe the |
| 209 |
metadata for each author. The \pkg{acmart} package also defines a |
| 210 |
\cmd{additionalaffiliation} macro in case the layout of affiliations |
| 211 |
takes too much space, but this places the burden of layout back on the |
| 212 |
author instead of the document class. The \pkg{elsarticle} document |
| 213 |
class also uses a sequence of \cmd{author} macros for the authors, but |
| 214 |
the main argument contains embedded footnote marks. Email addresses |
| 215 |
and home page links are inserted by intervening \cmd{ead} |
| 216 |
macros. Affiliations are specified with a main argument that consists |
| 217 |
of a set of key-value pairs. This bears some resemblance to our |
| 218 |
approach, but the style of metadata entry determines the styling of |
| 219 |
frontmatter, which once again violates the separation of concerns |
| 220 |
principle. |
| 221 |
|
| 222 |
There have been several packages such |
| 223 |
as \pkg{titling}\footnote{See \url{https://ctan.org/pkg/titling}} |
| 224 |
and \pkg{authblk}\footnote{See \url{https://ctan.org/pkg/authblk}} |
| 225 |
that offer some flexibility in how authors provide their metadata, but |
| 226 |
none of them are sufficiently detailed for modern metadata |
| 227 |
requirements. |
| 228 |
|
| 229 |
\section{Standard metadata schemas in publishing} |
| 230 |
There has unfortunately been no effort among \LaTeX\ document classes |
| 231 |
to standardize the syntax for entering metadata, or even which fields |
| 232 |
to associate with an author.\footnote{For example, the \pkg{llncs} |
| 233 |
class associates emails with affiliations instead of authors.} |
| 234 |
This is annoying for authors who try to adapt their \LaTeX\ from one |
| 235 |
publisher format to another. Moreover, the metadata associated with authors |
| 236 |
and articles has become increasingly complicated over the years, with |
| 237 |
new requirements to identify authors by a unique ID (ORCID), as well |
| 238 |
as the need to identify institutions by their ROR ID\footnote{See \url{https://ror.org/}} |
| 239 |
and a need to identify funding sources with standard identifiers like the |
| 240 |
funder ID.\footnote{See \url{https://www.crossref.org/services/funder-registry/}} |
| 241 |
|
| 242 |
In the world of scholarly journal publishing, there have been several efforts to |
| 243 |
standarize schemas for metadata. One of the best examples |
| 244 |
of this is the schema used by \texttt{crossref.org} for requests to |
| 245 |
register a DOI.\footnote{See |
| 246 |
\url{https://data.crossref.org/reports/help/schema_doc/5.4.0/index.html}} |
| 247 |
Another well-designed schema is described in the Journal Article Tag |
| 248 |
Standard |
| 249 |
(JATS)\footnote{See \url{https://jats.nlm.nih.gov/publishing/tag-library/1.4/}} |
| 250 |
that is used as a structured document format by many publishers. We |
| 251 |
took our guidance from these two schemas in how to represent metadata |
| 252 |
in a \LaTeX\ document. In fact, our workflow creates both the crossref |
| 253 |
format and the \texttt{<front>} and \texttt{<back>} sections of a JATS |
| 254 |
document. This package does not attempt to cover all possible |
| 255 |
metadata associated with an article, but see |
| 256 |
section~\ref{missing}. Authors and affiliations are listed |
| 257 |
independently, with an \texttt{inst} argument for an author to indicate which |
| 258 |
affiliation is associated to an author. Funding is associated to the |
| 259 |
document itself rather than the author, in keeping with the schemas |
| 260 |
provided by \texttt{crossref.org} and JATS. |
| 261 |
|
| 262 |
\section{Our solution} |
| 263 |
The processing of metadata really has four parts to it: |
| 264 |
\begin{enumerate} |
| 265 |
\item \label{supply}Authors use \LaTeX\ macros to supply their metadata in a well-structured format. |
| 266 |
\item \label{markup}When compiled, the metadata is used to perform visual markup of |
| 267 |
the front matter (e.g., title, authors, affiliations, keywords, etc). This is completely under |
| 268 |
the control of the document class, but this package supplies multiple versions of the |
| 269 |
\cmd{maketitle} macro to assist in the process. |
| 270 |
\item \label{extract}When the article is published, the metadata is {\em extracted} |
| 271 |
from the author-supplied document and used in the publishing workflow. This author-supplied |
| 272 |
metadata is combined with publisher-supplied metadata such as volume number, |
| 273 |
issue number, dates, etc. |
| 274 |
All of the metadata can then be registered with indexing agencies and used to supply |
| 275 |
structured data for the journal web pages and later harvesting agents. |
| 276 |
\item \label{xmp} The metadata may be embedded into the output PDF or HTML. |
| 277 |
\end{enumerate} |
| 278 |
This package addresses all four steps, and they are addressed in the subsections that follow. |
| 279 |
|
| 280 |
\subsection{Author-supplied metadata} |
| 281 |
The primary macros used by authors are \cmd{title}, |
| 282 |
\cmd{subtitle}, \cmd{addauthor}, \cmd{addaffiliation}, |
| 283 |
\cmd{addfunding}, \cmd{license}, |
| 284 |
and \cmd{addkeywords}. A complete description of these is in |
| 285 |
Section~\ref{authorusage}. The author enters only the data with these |
| 286 |
macros, omitting all formatting of how authors are to be displayed in |
| 287 |
the front matter. Macros other than accents are forbidden in the |
| 288 |
primary argument to \cmd{author}, and in particular \cmd{thanks} is |
| 289 |
disabled. This is so that the package can clearly identify the name of |
| 290 |
the author. Any attributes to the author such as email are added as |
| 291 |
optional key-value pairs (\cmd{thanks} is replaced by a \pkg{footnote} |
| 292 |
attribute to \cmd{addauthor}). |
| 293 |
|
| 294 |
In our first implementation of metadata capture~\cite{tugboat}, the |
| 295 |
metadata extraction was intertwined with the document |
| 296 |
class \texttt{iacrcc}~\cite{iacrcc}. In this \pkgname\ package we have |
| 297 |
separated out the macros to capture the metadata from the formatting |
| 298 |
of metadata. This completes the separation of metadata capture from |
| 299 |
document formatting, and allows document classes to style their documents |
| 300 |
however they like. |
| 301 |
|
| 302 |
\subsubsection{Abstracts} |
| 303 |
There is a bit of ambiguity in what constitutes ``metadata'' about an |
| 304 |
article. While we have attempted to cover the most important elements, |
| 305 |
we also list some additional elements in Section~\ref{missing}. One |
| 306 |
element that is problematic is abstracts. These are supported metadata |
| 307 |
in the Crossref schema, and they have encouraged publishers to submit |
| 308 |
them as part of the Initiative for Open Abstracts (I4OA). While |
| 309 |
abstracts can be useful for summarization and discovery, there are a |
| 310 |
few problems associated with treating abstracts as metadata. For |
| 311 |
one thing, some |
| 312 |
journals treat them as copyrighted material, whereas many institutions |
| 313 |
like the Research Library Association argue that metadata should be |
| 314 |
made available under a CC0 license. Quite a few publishers incuding |
| 315 |
ACM, Elsevier, and Springer |
| 316 |
were \href{https://www.crossref.org/blog/open-abstracts-where-are-we/}{withholding |
| 317 |
abstracts} from their metadata in 2020. |
| 318 |
|
| 319 |
Another complication that arises with abstracts is in formatting. The |
| 320 |
crossref schema an abstract to be formatted in JATS format, and the |
| 321 |
conversion from \LaTeX\ to JATS can be problematic. Some authors treat |
| 322 |
their abstracts as mini-articles and use all sorts of |
| 323 |
formatting including displayed equations, bibliographic references, |
| 324 |
tables, bulleted lists, etc. They also often use user-defined macros |
| 325 |
in their abstracts. For this reason, it can be compilicated to encode |
| 326 |
abstracts as metadata. |
| 327 |
|
| 328 |
Due to the complications associated with abstracts, we have decided to |
| 329 |
pursue a middle ground between trying to restrict author content in |
| 330 |
abstracts and successfully capturing an abstract that can easily be |
| 331 |
encoded as metadata. We do not modify the \texttt{abstract} |
| 332 |
environment, but instead have a load-time option to require |
| 333 |
a \texttt{textabstract} environment that will result in the contents |
| 334 |
being captured to an external file. |
| 335 |
|
| 336 |
\subsection{Display of metadata}\label{maketitle} |
| 337 |
When it is displayed, the metadata of an article is called the ``front |
| 338 |
matter'', and there are many different styles for this to be |
| 339 |
displayed, often with a custom \cmd{maketitle} macro. Despite the |
| 340 |
name, the \cmd{maketitle} macro is often responsible for display of |
| 341 |
author information, and sometimes also responsible for display of |
| 342 |
abstract, keywords, and license. The display of front matter can be |
| 343 |
quite complicated, with authors having multiple affiliations, authors |
| 344 |
sharing affiliations, footnotes attached to titles and authors, |
| 345 |
etc. For example, \url{https://arxiv.org/pdf/2210.03375} has hundreds |
| 346 |
of authors, 75 affiliations, and 12 footnotes on author names (not |
| 347 |
surprisingly, they omit email addresses). |
| 348 |
|
| 349 |
The author |
| 350 |
metadata is inherently {\em relational}, with authors related to their |
| 351 |
affiliations, and other attributes. These relationships are often |
| 352 |
represented visually with footnote structures.\footnote{One problem |
| 353 |
with this is that the standard |
| 354 |
\cmd{footnote} macro does not work inside boxes that may be used to construct |
| 355 |
the front matter. This shows up in some two-column formats because the |
| 356 |
title and author names are typically displayed in a block across both columns. |
| 357 |
We use the \texttt{footnotehyper} package to overcome this.} |
| 358 |
There are numerous common styles |
| 359 |
for displaying this information, including listing author affiliations |
| 360 |
under each author's name (repeating the information), or using |
| 361 |
footnotes to show affiliations for authors, or grouping authors |
| 362 |
together for a given institute, or authors ordered in some way (e.g., |
| 363 |
alphabetically or randomly). The \pkg{amsart} class places the |
| 364 |
affiliations {\em after} the body of the article as endnotes, and so |
| 365 |
does \pkg{OUP-EJ} for \emph{The Economic Journal}. |
| 366 |
|
| 367 |
This package supplies several ways to display the front matter of the |
| 368 |
document. This is done by having various implementations |
| 369 |
of \cmd{maketitle} that can be selected at load time. This particular |
| 370 |
document is typeset with the standard \texttt{article} document class, |
| 371 |
for which default values of \cmd{@title} and \cmd{@author} are |
| 372 |
supplied to just work out of the box with the |
| 373 |
existing \cmd{maketitle}. Document classes are free to use one of the |
| 374 |
built-in implementations of \cmd{maketitle}, but they can also provide |
| 375 |
their own. |
| 376 |
|
| 377 |
At present, the styles consist of the following (visual appearance |
| 378 |
of each is displayed in Appendix~\ref{appendix}): |
| 379 |
\begin{description} |
| 380 |
\item[\texttt{iacrj}] Author names are strung together in a list, with |
| 381 |
optional ORCID icons after their names, and footnotes to indicate |
| 382 |
which affiliations they belong to. Affiliations are listed |
| 383 |
individually under the block of author names. This is the official |
| 384 |
version used by the \texttt{iacrj.cls} document class for IACR |
| 385 |
journals. It is similar to the first style of \texttt{elsarticle}. See page~\pageref{iacrj}. |
| 386 |
\item[\texttt{acmsmall}] This is similar to the \texttt{acmsmall} style of \texttt{acmart.cls}, |
| 387 |
with one author per line in a vertical list, with author names in small caps followed |
| 388 |
by their affiliations and countries. See page~\pageref{acmsmall}. |
| 389 |
\item[\texttt{acmconf}] This is similar to the conference proceedings style |
| 390 |
of \texttt{acmart.cls}. Each author is listed in a block with their email and |
| 391 |
affiliations underneath their name. Shared affiliations are repeated under each author's name, |
| 392 |
and links to home page and ORCID are omitted. |
| 393 |
See page~\pageref{acmconf}. |
| 394 |
\item[\texttt{jems}] Modeled after the style used for the {\em Journal of the European Mathematical Society}, |
| 395 |
in which author names appear before the title, keywords after the |
| 396 |
abstract, and each author has an unnumbered footnote that includes the |
| 397 |
affiliation, email, and URL. See page~\pageref{jems}. |
| 398 |
\item[\texttt{inv}] A left-aligned style inspired in part by the style |
| 399 |
of {\em Inventiones mathematicae} in that it uses blocks of text to display |
| 400 |
emails. See page~\pageref{inv}. |
| 401 |
\item[\texttt{lipics}] This is modeled after the style of the Dagstuhl \texttt{lipics-v2021} document |
| 402 |
class. It shows icons for the author email, homepage, and orcid. See page~\pageref{lipics}. |
| 403 |
\item[\texttt{ams}] This is similar to what is used in \texttt{amsart}, namely |
| 404 |
a title and author names in small caps, with affiliations listed after |
| 405 |
the references. For some reason this style has author footnotes |
| 406 |
with \href{https://ctan.math.washington.edu/tex-archive/info/amscls-doc/Author_Handbook_Journals.pdf}{no |
| 407 |
footnote mark}, so the footnote has to mention the author to give |
| 408 |
context in the footnote. See page~\pageref{ams}. |
| 409 |
\end{description} |
| 410 |
The visual appearance of these styles can be seen in Appendix~\ref{appendix} at |
| 411 |
the end of this document. |
| 412 |
There is also a \texttt{sample.tex} file supplied with this package that |
| 413 |
can be used to test the combination of these \cmd{maketitle} styles |
| 414 |
with various document classes. |
| 415 |
|
| 416 |
With the exception of the \texttt{iacrj} style, none of these |
| 417 |
represent the official styles of their respective publishers. These |
| 418 |
styles are included to allow authors to choose a preferred style, but |
| 419 |
also to demonstrate the flexibility of the schema and |
| 420 |
to provide useful examples for document class |
| 421 |
designers who wish to to implement their own \cmd{maketitle} using the |
| 422 |
internal variables documented in Section~\ref{variables}. We believe |
| 423 |
that this should simplify the construction of a \cmd{maketitle} macro, |
| 424 |
since the variables hold only metadata without formatting. |
| 425 |
|
| 426 |
\subsubsection{Abstracts} |
| 427 |
In the original \LaTeX\ document classes, the abstract was considered |
| 428 |
merely as a preliminary section of the document with special |
| 429 |
styling, and it would appear after the \cmd{maketitle} macro. Some document |
| 430 |
classes have started treating the abstract as part of the frontmatter, |
| 431 |
and delegate the display of it to \cmd{maketitle}. As a result, some document classes like |
| 432 |
\texttt{amsart}, \texttt{acmart}, \texttt{elsarticle}, and \texttt{REVTeX} |
| 433 |
now require the \texttt{abstract} environment to appear before the |
| 434 |
\cmd{maketitle} macro. Our implementations of \cmd{maketitle} can adapt |
| 435 |
to the \texttt{amsart}, \texttt{acmart}, and \texttt{elsarticle} document |
| 436 |
classes by invoking their internal commands to display the abstract when |
| 437 |
\cmd{maketitle} is invoked. |
| 438 |
|
| 439 |
There are other metadata elements that may need to be displayed, such |
| 440 |
as license, keywords, abstract, etc. |
| 441 |
The display of these is up to the |
| 442 |
document class. Our document class \texttt{iacrj} |
| 443 |
has implementations for visual display of license, abstract, and keywords, |
| 444 |
but also things like a volume number, issue number, DOI, Crossmark, etc. |
| 445 |
A document class can implement these elements in any manner they wish |
| 446 |
using the internal variables from this package that are |
| 447 |
defined in Section~\ref{variables}. |
| 448 |
|
| 449 |
\subsection{Capture of metadata} |
| 450 |
When a document that uses the \pkgname\ package is compiled, the |
| 451 |
author-supplied metadata is extracted from the \LaTeX\ and written |
| 452 |
into a \texttt{.meta} file that is machine-parseable. The extraction |
| 453 |
of metadata in a machine-readable format during compilation makes it |
| 454 |
easy to build publishing workflow systems around \LaTeX, and this was |
| 455 |
a big part of the original motivation for this package. An example of |
| 456 |
this was used by the journal {\em IACR Communications in |
| 457 |
Cryptology}\footnote{See \url{https://cic.iacr.org/}} and the publishing |
| 458 |
pipeline system for this is available as open source.\footnote{Source code available |
| 459 |
at \url{https://github.com/IACR/latex-submit} and a demo is |
| 460 |
at \url{https://publishtest.iacr.org/}.} One part of that system is |
| 461 |
a \href{https://github.com/IACR/latex/tree/main/iacrcc/parser}{python |
| 462 |
parser} for the file containing extracted metadata that is written by |
| 463 |
the package, but it should be easy to write another parser, because |
| 464 |
the extracted metadata has a simplified yaml-like structure. The |
| 465 |
structure of this file is described in Section~\ref{metafile} and a |
| 466 |
sample is given in Figure~\ref{samplemeta}. For more information on |
| 467 |
this workflow system, the reader is referred to~\cite{loweringthecost}. |
| 468 |
|
| 469 |
Most journal production workflows are proprietary and opaque, but it |
| 470 |
appears that some use parsing tools to extract the metadata directly |
| 471 |
from the \LaTeX\ source. Examples of this include the ACM |
| 472 |
workflow\footnote{Extraction tools are mentioned in |
| 473 |
\url{https://mirror.math.princeton.edu/pub/CTAN/macros/latex/contrib/acmart/acmart.pdf}} |
| 474 |
and the Dagstuhl \LaTeX\ |
| 475 |
project.\footnote{See \url{https://github.com/dagstuhl-publishing/latex}}. This |
| 476 |
approach can be difficult because \LaTeX\ is a full programming |
| 477 |
language, and things like \cmd{ifx} conditionals make it difficult to reliably parse \LaTeX. |
| 478 |
This is one reason why we decided to use \LaTeX\ itself to |
| 479 |
produce the metadata in an external file. The only real parser for \TeX\ is the \TeX\ binary |
| 480 |
itself, but our approach avoids the problem. It appears that the \texttt{aomart.cls} |
| 481 |
document class used for the Annals of Mathematics also follows the approach |
| 482 |
of writing metadata to an external file. |
| 483 |
|
| 484 |
\subsection{Embedding metadata in PDF}\label{pdfmetadata} |
| 485 |
There have been multiple attempts to provide packages for embedding |
| 486 |
metadata into PDF. These include the \texttt{hyperxmp}, \texttt{pdfx}, |
| 487 |
and \texttt{xmpincl} packages. The \LaTeX\ team is working on |
| 488 |
providing XMP metadata in the PDFs as part of their accessibility |
| 489 |
initiative~\cite{xmpinlatex}, and we expect this to be the eventual |
| 490 |
solution. We plan to support this as part of \pkgname\ when the API |
| 491 |
for the |
| 492 |
\href{https://ctan.math.washington.edu/tex-archive/macros/latex/contrib/pdfmanagement-testphase/l3pdfmeta.pdf}{\texttt{l3pdfmeta}} module becomes stable. Similar solutions should exist to inject the structured |
| 493 |
metadata into other output formats such as HTML or EPUB. |
| 494 |
|
| 495 |
We don't require the \pkg{hyperref} package to be loaded unless |
| 496 |
the \texttt{maketitle} package option is used or the \cmd{license} |
| 497 |
macro is used. If the \pkg{hyperref} package is loaded, then the |
| 498 |
\pkgname\ package will set the PDF metadata for \texttt{pdftitle}, |
| 499 |
and \texttt{pdfkeywords}. If the \texttt{anonymous} option is not used, then |
| 500 |
it will also set \texttt{pdfauthor}. If \pkg{hyperref} is loaded, it |
| 501 |
should not be loaded with the \pkg{pdfusetitle} option. |
| 502 |
|
| 503 |
\section{Options for loading} |
| 504 |
The \pkgname\ package may be loaded by the document class but may also be loaded by the |
| 505 |
author. In any event, the \pkgname\ package must be loaded before the author specifies |
| 506 |
author, title, etc. \pkgname\ may be loaded with various options: |
| 507 |
\begin{description} |
| 508 |
\item[\texttt{maketitle=\textless{style}\textgreater}] |
| 509 |
If this is used, then the package provides |
| 510 |
a \cmd{maketitle}. The \texttt{style} can be any of the styles listed |
| 511 |
in Section~\ref{maketitle}. If this is not chosen, then the class |
| 512 |
must define its own \cmd{maketitle} that makes reference to internal variables |
| 513 |
of the package. Note that the \cmd{maketitle} macro from \texttt{article.cls} will |
| 514 |
work out of the box, because under the covers we implement the \cmd{@title} and |
| 515 |
\cmd{@author} macros. This document is typeset using those values. See Section~\ref{maketitle} and |
| 516 |
Appendix~\ref{appendix}. |
| 517 |
\item[\texttt{anonymous}] If chosen, then the implementations of \cmd{maketitle} that |
| 518 |
may be invoked with the texttt{maketitle} option will not disclose |
| 519 |
author names or affiliations in the PDF. A document class should load |
| 520 |
with this option if it is intending to format for a blind peer review |
| 521 |
system. |
| 522 |
\item[\texttt{licensereq}] This required the document to specify |
| 523 |
a license with the \cmd{license} macro. At present we only support a |
| 524 |
few licenses (see section~\ref{license}) If a document class wishes to |
| 525 |
further restrict which license is acceptable, they can check |
| 526 |
the \cmd{METAC@license} variable at the end of the preamble. |
| 527 |
\item[\texttt{countryrequired}] if chosen, then every affiliation is |
| 528 |
required to declare a \texttt{country} attribute. |
| 529 |
\item[\texttt{cityrequired}] if chosen, then every affiliation is |
| 530 |
required to declare both a \texttt{city} and a \texttt{country} attribute. |
| 531 |
\item[\texttt{textabstract}] if chosen, then the document must specify a |
| 532 |
separate ``text-only'' abstract that is free of macros other than |
| 533 |
mathematics in a \texttt{textabstract} |
| 534 |
environment that contains no user-defined macros. This abstract is in |
| 535 |
addition to the ordinary \texttt{abstract} environment, and results in a file |
| 536 |
named \cmd{jobname.abstract} that contains the abstract when the paper is compiled. |
| 537 |
We ask for such an abstract from authors so that we can capture an abstract |
| 538 |
that is suitable for indexing and HTML pages. |
| 539 |
\item[\texttt{emailreq}] this takes one of three possible options \texttt{none,one,all} that indicates whether |
| 540 |
no emails are required for authors, at least one email is required for |
| 541 |
some author, or all authors must supply an email. This option might be used by |
| 542 |
a document class that wishes to require a corresponding author. |
| 543 |
\item[\texttt{orcidreq}] whether each author must have an ORCID. Keep in mind that |
| 544 |
some authors may refuse to use an ORCID. The ORCID of an author should probably only |
| 545 |
be included if it is supplied by the author themself. |
| 546 |
\item[\texttt{notitlefootnote}] when selected, the \cmd{footnote} macro is disabled inside |
| 547 |
the main argument of \cmd{title} |
| 548 |
%\item[\texttt{lefttitle}] when selected with \texttt{maketitle}, the title and authors will be left-aligned |
| 549 |
\item[\texttt{footnotesymbols}] Some of the options for \texttt{maketitle} use a different |
| 550 |
style of footnote marker for affiliations from the rest of the footnotes. For example, in the |
| 551 |
\texttt{iacrj} style the footnotes on title and authors would ordinarily be |
| 552 |
labeled as a,b,c, but they are labeled as symbols |
| 553 |
\textasteriskcentered, \dag, \ddag, etc if the \texttt{footnotesymbols} option is also used. |
| 554 |
Note that this option should be used with caution, because at most 10 authors |
| 555 |
can have footnotes with this option. |
| 556 |
\end{description} |
| 557 |
\section{Usage by authors}\label{authorusage} |
| 558 |
The main macros for authors that are provided by this package |
| 559 |
are \cmd{title}, \cmd{subtitle}, \cmd{license}, \cmd{addauthor}, |
| 560 |
\cmd{addaffiliation}, \cmd{addfunding}, and \cmd{addkeywords}. |
| 561 |
These can only be used in the preamble before \cmd[document]{begin}. |
| 562 |
There is also a \texttt{textabstract} environment |
| 563 |
to capture text-only versions of the abstract. |
| 564 |
\subsection{Title} |
| 565 |
A title is added using the \cmd{title} macro, which has a number of optional arguments: |
| 566 |
\newcommand{\argrow}[2]{\texttt{#1} & #2\\} |
| 567 |
\newenvironment{arglist}{% |
| 568 |
\begin{flushleft}\renewcommand{\arraystretch}{1.2}\begin{tabular}{@{}lp{0.7\linewidth}}% |
| 569 |
}{% |
| 570 |
\end{tabular}\end{flushleft} |
| 571 |
} |
| 572 |
\begin{arglist} |
| 573 |
\argrow{running}{The running title intended for display in the headers.} |
| 574 |
\argrow{plaintext}{A text version of the title (mandatory if macros are used in the title).} |
| 575 |
% \argrow{footnote}{Add a footnote to the title. Only one is allowed.} |
| 576 |
\end{arglist} |
| 577 |
|
| 578 |
\noindent An example using all the optional arguments is shown below. |
| 579 |
|
| 580 |
\begin{Verbatim}[samepage=true] |
| 581 |
\title[running = {The iacrcc class}, |
| 582 |
plaintext = {How to use the iacrcc LaTeX class}, |
| 583 |
]{How to use the \texttt{iacrcc} \LaTeX\ |
| 584 |
class\footnote{A revision of an earlier paper on arxiv.org}} |
| 585 |
\end{Verbatim} |
| 586 |
|
| 587 |
The \verb+plaintext+ option is only required if you use macros in |
| 588 |
your title (it is required in the example). Inline mathematics and |
| 589 |
accents like \verb+\"u+ are allowed in the main argument to \cmd{title}, |
| 590 |
and so are newlines \texttt{\textbackslash\textbackslash}. Note |
| 591 |
that \LaTeX\ has defaulted to UTF-8 input since 2019, so just ü is |
| 592 |
preferred to \verb+\"u+. Note also that \cmd{thanks} is disabled |
| 593 |
inside \cmd{title}, and \cmd{footnote} can optionally be disabled by loading |
| 594 |
\pkgname\ with the option \texttt{notitlefootnote}. See |
| 595 |
Section~\ref{footnotes} for information about footnotes. |
| 596 |
|
| 597 |
In our previous implementation from \texttt{iacrcc.cls}, we had a |
| 598 |
\texttt{subtitle} attribute, but that has now been moved into a separate |
| 599 |
\cmd{subtitle} macro in order to support a plain text version. |
| 600 |
|
| 601 |
\subsubsection{Subtitle} |
| 602 |
An author is always allowed to have a two-line title by inserting a |
| 603 |
newline \texttt{\textbackslash\textbackslash} into the main argument |
| 604 |
of \cmd{title}, but a subtitle would often be typeset in a smaller |
| 605 |
font. The semantics of a subtitle are always a little unclear, but |
| 606 |
the most common definition is for a ``subordinate or explanatory |
| 607 |
title''.\footnote{The JATS standard states that ``The <subtitle> is a |
| 608 |
subordinate or auxiliary title that adds information to the full title |
| 609 |
or modifies the full title.''} If an author wishes to have a |
| 610 |
subtitle, they use the \cmd{subtitle} macro, which also requires an |
| 611 |
optional \texttt{plaintext} attribute if the main argument |
| 612 |
to \cmd{subtitle} contains any macros. A full example could be: |
| 613 |
\begin{Verbatim}[samepage=true] |
| 614 |
\subtitle[plaintext={A LaTeX tutorial}]{% |
| 615 |
A \LaTeX\ tutorial\protect\footnote{Thanks to Leslie Lamport}} |
| 616 |
\end{Verbatim} |
| 617 |
Note that footnotes need to be protected inside a subtitle. |
| 618 |
The \texttt{notitlefootnote} option also prevents |
| 619 |
\cmd{footnote} from being used inside \cmd{subtitle}. A |
| 620 |
document class is free to treat subtitles in any way they see fit, but |
| 621 |
if the \cmd{title} macro is used with the \texttt{running} attribute, |
| 622 |
then the subtitle should probably not be added to a running title. |
| 623 |
|
| 624 |
\subsection{Authors} |
| 625 |
Author information is entered using the \cmd{addauthor}, |
| 626 |
\cmd{addaffiliation}, and \cmd{addfunding} macros. Authors are asked |
| 627 |
to enter this information in a structured way so that we can provide |
| 628 |
it to indexing agencies. The \cmd{author} macro is disabled. |
| 629 |
|
| 630 |
Authors are listed individually using repeated calls to |
| 631 |
the \cmd{addauthor} command, and these must appear before |
| 632 |
\cmd{begin\{document\}}. The \cmd{addauthor} macro has a number of optional |
| 633 |
arguments shown in Figure~\ref{addauthor}. |
| 634 |
\begin{figure*} |
| 635 |
\begin{arglist} |
| 636 |
\argrow{inst}{A numerical list of 1-based indices specifying an institution in the |
| 637 |
affiliation array (see below).} |
| 638 |
\argrow{orcid}{The ORCID of the author, specified using the 19-character |
| 639 |
format \texttt{xxxx-xxxx-xxxx-xxxx}.} |
| 640 |
\argrow{footnote}{Create an author-specific footnote.} |
| 641 |
\argrow{surname}{Indicate the surname of the author for indexing purposes.} |
| 642 |
\argrow{onclick}{Provide a URL for the author, e.g., a home page.} |
| 643 |
\argrow{email}{Define the e-mail address of this author. Note that the load |
| 644 |
option \texttt{emailreq} may place restrictions on whether an author needs |
| 645 |
to supply an e-mail address.} |
| 646 |
\end{arglist} |
| 647 |
\caption{Arguments to \cmd{addauthor}} |
| 648 |
\label{addauthor} |
| 649 |
\end{figure*} |
| 650 |
|
| 651 |
The display of these elements by a document class may be customized in |
| 652 |
any way the document designer sees fit. In some of the \cmd{maketitle} |
| 653 |
implementations provided by \pkgname, the presence of |
| 654 |
the \texttt{orcid} attribute creates a small clickable orcid logo next |
| 655 |
to the authors name looking |
| 656 |
like \OrcidLink{0000-0003-1010-8157}[auth]~that is a hyperlink to the |
| 657 |
authors ORCID home page. This is the authenticated logo for ORCID, |
| 658 |
but the unauthenticated |
| 659 |
version \OrcidLink{0000-0003-1010-8157}[unauth]~is also bundled into |
| 660 |
this package if your journal workflow requires it. Similarly, some of |
| 661 |
our implementations of \cmd{maketitle} display the \texttt{onclick} |
| 662 |
attribute with an icon like \AuthorLink{https://theonion.com/} |
| 663 |
or \homelink{https://theonion.com} displayed next to the author's name |
| 664 |
that is an active link to the URL. |
| 665 |
|
| 666 |
It's not obvious how to interpret the omission of the \texttt{inst} argument from |
| 667 |
\cmd{addauthor}. |
| 668 |
It's possible that the author has no affiliation, but it's also possible that the author |
| 669 |
is affiliated with all listed affiliations. That is a matter of policy for the document |
| 670 |
class. In order to eliminate this ambiguity, the document class may choose to require the |
| 671 |
\texttt{inst} argument for every author, and use an empty \texttt{inst} argument in case |
| 672 |
the author has no affiliation. In the \cmd{maketitle} implementations supplied in this |
| 673 |
package, we have chosen to omit the footnotes on author names for affiliations in the following cases: |
| 674 |
\begin{itemize} |
| 675 |
\item if \cmd{addauthor} omits the \texttt{inst} attribute or it is empty, |
| 676 |
\item if there is only a single author, |
| 677 |
\item if there is only a single affiliation |
| 678 |
\end{itemize} |
| 679 |
In the last two cases we also omit the numbers on the affiliations. The \texttt{inst} |
| 680 |
array serves two purposes, namely for appearance to link authors to affiliations, and |
| 681 |
for metadata processing in a journal workflow where author affiliations are reported. |
| 682 |
In the latter case the indices must be validated to make sure that they refer to actual |
| 683 |
entries in the affiliation array. |
| 684 |
|
| 685 |
Some downstream processors like crossref request author names to be broken |
| 686 |
into \texttt{given-name,surname} but this is in conflict with many existing |
| 687 |
cultural norms for author names (see~\cite{falsehoods}). |
| 688 |
\texttt{crossref} has a required element for |
| 689 |
surname, which is why we include this. |
| 690 |
%% \todok{We recently had a case in CiC |
| 691 |
%% with the author name ``Arthur Herlédan Le Merdy'' in which their |
| 692 |
%% surname is ``Herlédan Le Merdy''. In this case the bibtex parser |
| 693 |
%% failed, the python bibtex parser failed, and the HumanName parser |
| 694 |
%% failed to identify the surname. Another example was an author named |
| 695 |
%% ``Mahdi Rahimi'', where the HumanName parser failed to recognize |
| 696 |
%% ``Mahdi'' as a given name. It is simply not feasible to reliably parse |
| 697 |
%% names and recognize what the given name and surname should be, and |
| 698 |
%% there is no real reason to require it other than alphabetic ordering |
| 699 |
%% on author names.} |
| 700 |
|
| 701 |
When the URL provided to the {\texttt onclick} option contain characters |
| 702 |
with a ``special'' meaning in \LaTeX{} they might render incorrectly. |
| 703 |
For example, the URL |
| 704 |
\begin{quote} |
| 705 |
\verb+https://web.com/~foo/the best/#zoo+ |
| 706 |
\end{quote} contains |
| 707 |
a tilde, a space, and a pound symbol \#. It would |
| 708 |
be encoded as |
| 709 |
\begin{verbatim} |
| 710 |
onclick = {https://web.com/\%7Efoo/the\%20best\#zoo} |
| 711 |
\end{verbatim} |
| 712 |
|
| 713 |
An example using all the optional arguments is given below. In this case |
| 714 |
the author has \verb+inst={1,2}+ to indicate that they are affiliated with |
| 715 |
the first and second affiliations that are entered with |
| 716 |
\cmd{addaffiliation}: |
| 717 |
|
| 718 |
\begin{Verbatim}[samepage=true] |
| 719 |
\addauthor[orcid = {0000-0000-0000-0000}, |
| 720 |
inst = {1,2}, |
| 721 |
footnote = {Thanks to my supervisor for the support.}, |
| 722 |
onclick = {https://www.mypersonalwebpage.com}, |
| 723 |
email = {[email protected]}, |
| 724 |
surname = {Accomplished}, |
| 725 |
]{Alice Accomplished} |
| 726 |
\end{Verbatim} |
| 727 |
|
| 728 |
The \cmd{thanks} macro is disabled |
| 729 |
inside \cmd{addauthor}, so use the \verb+footnote+ option |
| 730 |
on \cmd{addauthor} instead. In fact, if an author attempts to use any |
| 731 |
non-accent macros inside the primary argument to \cmd{addauthor} it |
| 732 |
generates an error. |
| 733 |
\subsection{Affiliations} |
| 734 |
Affiliations are listed individually using the \cmd{addaffiliation} command |
| 735 |
\emph{after} the last author has been added using \cmd{addauthor}. It can |
| 736 |
only be used before \cmd{begin\{document\}}, and has several optional arguments: |
| 737 |
|
| 738 |
\begin{arglist} |
| 739 |
\argrow{ror}{The Research Organization Registry (ROR) indentifier |
| 740 |
for this affiliation. This is the equivalent of ORCID for organizations. See \url{https://ror.org/}.} |
| 741 |
\argrow{department}{Department or suborganization name.} |
| 742 |
\argrow{street}{Street address.} |
| 743 |
\argrow{city}{City name.} |
| 744 |
\argrow{state}{State or province name.} |
| 745 |
\argrow{postcode}{Zip or postal code.} |
| 746 |
\argrow{country}{Country name. This is strongly recommended.} |
| 747 |
\argrow{countrycode}{ISO-3166 Alpha-2 identifier for country. This is strongly recommended, and |
| 748 |
it eliminates ambiguity in country name |
| 749 |
(e.g., Österreich vs Austria). If \texttt{country} is omitted, this can be used to fill it in. |
| 750 |
A list of these can be found at \url{https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2}.} |
| 751 |
\end{arglist} |
| 752 |
\noindent There is an online tool at |
| 753 |
\href{https://publish.iacr.org/funding}{\texttt{publish.iacr.org/funding}} |
| 754 |
to help you find ROR identifiers, and authors are strongly urged to |
| 755 |
include these. |
| 756 |
It is up to the implementation of \texttt{maketitle} to decide whether to show all |
| 757 |
attributes on an affiliation. Most implementations will use the name, \verb+city+ and |
| 758 |
\verb+country+ arguments. All arguments can be used to provide metadata |
| 759 |
to indexing agencies. |
| 760 |
|
| 761 |
A full invocation of \cmd{addaffiliation} would look like: |
| 762 |
\begin{Verbatim}[samepage=true] |
| 763 |
\addaffiliation[ror = {05f950310}, |
| 764 |
department = {Computer Security and Industrial Cryptography}, |
| 765 |
street = {Kasteelpark Arenberg 10, box 2452}, |
| 766 |
city = {Leuven}, |
| 767 |
state = {Vlaams-Brabant}, |
| 768 |
postcode = {3001}, |
| 769 |
country = {Belgium}, |
| 770 |
countrycode = {BE} |
| 771 |
]{KU Leuven} |
| 772 |
\end{Verbatim} |
| 773 |
\subsection{Funding information} |
| 774 |
Authors should use the \texttt{\textbackslash addfunding} macro to |
| 775 |
make sure that funding agencies can find articles published under their |
| 776 |
sponsorship. An example is: |
| 777 |
\begin{verbatim} |
| 778 |
\addfunding[fundref = {100000001}, |
| 779 |
grantid = {CNS-1237235}, |
| 780 |
country = {United States}]{National Science Foundation} |
| 781 |
\addfunding[ror = {00pn5a327}, |
| 782 |
country = {United States}]{Rambus} |
| 783 |
\end{verbatim} |
| 784 |
|
| 785 |
\noindent In this example, the author acknowledges a grant from the |
| 786 |
National Science Foundation and support from Rambus (with no |
| 787 |
\texttt{grantid}). The inclusion of funding from an agency without a |
| 788 |
\texttt{grantid} might be appropriate if the author simply received |
| 789 |
support for a visit. |
| 790 |
|
| 791 |
The complete list of optional arguments for \texttt{\textbackslash addfunding} is: |
| 792 |
\begin{arglist} |
| 793 |
\argrow{fundref}{An identifier from the |
| 794 |
\href{https://publish.iacr.org/funding}{Crossref funder registry}.} |
| 795 |
\argrow{ror}{An identifier from the |
| 796 |
\href{https://publish.iacr.org/funding}{Research Organization Registry} |
| 797 |
(ROR).} |
| 798 |
\argrow{country}{The country of the funding agency.} |
| 799 |
\argrow{countrycode}{ISO-3166 Alpha-2 identifier for country.} |
| 800 |
\argrow{grantid}{The identifier of the grant that is assigned by the agency |
| 801 |
who provided it.} |
| 802 |
\end{arglist} |
| 803 |
|
| 804 |
\noindent You can use the online tool at |
| 805 |
\href{https://publish.iacr.org/funding}{\texttt{publish.iacr.org/funding}} to |
| 806 |
help you find \texttt{fundref} and \texttt{ror} identifiers. |
| 807 |
|
| 808 |
Note that \cmd{addfunding} \textbf{does not} automatically create footnotes or |
| 809 |
an acknowledgements section to identify funding - it only collects the |
| 810 |
metadata for indexing. If you wish to include such visible |
| 811 |
annotations, you can use the \texttt{footnote} option on |
| 812 |
\cmd{addauthor} or add a separate |
| 813 |
acknowledgements section. Some funding agencies have specific |
| 814 |
requirements for how they want to be acknowledged in the article. |
| 815 |
|
| 816 |
\subsection{Footnotes}\label{footnotes} |
| 817 |
Authors may be accustomed to using \cmd{thanks} for footnotes |
| 818 |
indicating affiliation, email, or funding, but the |
| 819 |
\cmd{thanks} macro is disabled and authors should use the methods described |
| 820 |
in this document. We provide the \texttt{footnote} attribute on |
| 821 |
authors so that they can add an arbitrary footnote to their name. |
| 822 |
This can be used for indicating that the author's affiliation for the |
| 823 |
work was different than their current affiliation, or to indicate |
| 824 |
contact address, or a previous name, etc. Some of the implementations |
| 825 |
of \cmd{maketitle} use footnotes to connect authors to their affiliations. |
| 826 |
Document designers often have specific requirements on footnotes, and one such |
| 827 |
requirement is supported by the \texttt{notitlefootnote} option of |
| 828 |
this package in case footnotes are not allowed on titles. |
| 829 |
|
| 830 |
It should be noted that footnotes are specifically tied to paper-oriented |
| 831 |
layouts, and can be problematic in HTML output. |
| 832 |
\subsection{License}\label{license} |
| 833 |
When the \texttt{licensereq} option is used upon load, the author needs |
| 834 |
to provide a supported license. At present the only |
| 835 |
acceptable licenses are the following creative commons licenses: |
| 836 |
\texttt{CC-BY-4.0}, |
| 837 |
\texttt{CC-BY-NC-4.0}, |
| 838 |
\texttt{CC-BY-NC-ND-4.0}, |
| 839 |
\texttt{CC-BY-NC-SA-4.0}, |
| 840 |
\texttt{CC-BY-ND-4.0}, |
| 841 |
and \texttt{CC0-1.0}. |
| 842 |
An example would look like: |
| 843 |
|
| 844 |
\begin{verbatim} |
| 845 |
\license{CC-BY-4.0} |
| 846 |
\end{verbatim} |
| 847 |
|
| 848 |
\subsection{Keywords} |
| 849 |
Use \cmd{addkeywords}\{keyword1, keyword2\} to give a |
| 850 |
list of keywords or key phrases. This is an optional macro that should |
| 851 |
appear before the abstract. Individual keywords should be separated |
| 852 |
by commas. If the keywords contains math or macros, then you must supply an additional set of |
| 853 |
text-only keywords; for example: |
| 854 |
\begin{verbatim} |
| 855 |
\addkeywords[rings, arithmetic on Z]{ |
| 856 |
rings, arithmetic on $\mathbb{Z}$} |
| 857 |
\end{verbatim} |
| 858 |
\subsection{Abstract} |
| 859 |
A document class that loads the \pkgname\ package may format the |
| 860 |
abstract however it is desired, but \pkgname\ also provides a |
| 861 |
mechanism for extracting a ``text-only'' abstract. If the author |
| 862 |
provides such an abstract within the \texttt{textabstract} |
| 863 |
environment, it will create a file |
| 864 |
named \texttt{\textbackslash{jobname}.abstract} that contains the |
| 865 |
contents. The purpose of the text-only abstract is to provide for |
| 866 |
indexing and production of {HTML} pages to describe the paper. As |
| 867 |
such, it is just as important as the classical \texttt{abstract} of a |
| 868 |
paper because it contains a textual summary that readers will use to |
| 869 |
decide if the paper is worth reading. The only difference is that the |
| 870 |
contents of the |
| 871 |
\texttt{textabstract} is constrained on what it may contain. |
| 872 |
|
| 873 |
Note that the contents of the \texttt{textabstract} will not be |
| 874 |
displayed in the final PDF except as metadata. Note also that |
| 875 |
\verb+\begin{textabstract}+ must appear on a line by itself. |
| 876 |
|
| 877 |
%% \section{Auxiliary files} |
| 878 |
%% Users will already be familiar with the fact that running a latex compiler |
| 879 |
%% will produce a number of auxiliary files, including the \texttt{.log}, |
| 880 |
%% \texttt{.aux}, \texttt{.bbl}, \texttt{.blg}, \texttt{.toc}, and |
| 881 |
%% \texttt{.out} files produced by \texttt{bibtex} |
| 882 |
%% and the \texttt{hyperref} package. If the main \LaTeX\ file is \texttt{main.tex}, |
| 883 |
%% then the \pkgname\ package will produce two additional files, namely |
| 884 |
%% \texttt{main.meta} and \texttt{main.abstract}. The \texttt{main.meta} |
| 885 |
%% contains all metadata from the paper, and the file \texttt{main.abstract} contains |
| 886 |
%% the contents of the \texttt{textabstract} environment. |
| 887 |
|
| 888 |
\section{Format of the \texttt{.meta} file}\label{metafile} |
| 889 |
The \texttt{metacapture-doc.meta} file that is created when a \LaTeX\ document |
| 890 |
is compiled is similar to yaml. An example is shown |
| 891 |
in Figure~\ref{samplemeta}. |
| 892 |
\newtcolorbox{smalltcolorbox}{fontupper=\footnotesize,colback=blue!5!white,boxrule=0.7pt} |
| 893 |
\begin{figure*} |
| 894 |
\begin{smalltcolorbox} |
| 895 |
\begin{verbatim} |
| 896 |
schema:0.9.1 |
| 897 |
title: The metacapture LaTeX package |
| 898 |
subtitle: A demo with different styles and classes |
| 899 |
author: |
| 900 |
name:Paul Erdős |
| 901 |
orcid:0000-1111-2222-3333 |
| 902 |
inst:1,2 |
| 903 |
footnote:Paul has a footnote |
| 904 |
email:[email protected] |
| 905 |
surname:Erdős |
| 906 |
author: |
| 907 |
name:P\'al Tur\'an |
| 908 |
orcid:0000-0001-7890-5430 |
| 909 |
inst:3 |
| 910 |
footnote:Another remarkable Hungarian mathematician |
| 911 |
email:[email protected] |
| 912 |
surname:Tur\'an |
| 913 |
affiliation: |
| 914 |
name:University of California, San Diego |
| 915 |
ror:0168r3w48 |
| 916 |
department:Computer Science Department |
| 917 |
country:United States |
| 918 |
affiliation: |
| 919 |
name:Mega Corporation |
| 920 |
department:Department of Redundancy Department |
| 921 |
city:Sunnydale |
| 922 |
state:California |
| 923 |
country:Elbonia |
| 924 |
affiliation: |
| 925 |
name:Faber College |
| 926 |
country:Absurdistan |
| 927 |
department:Department of Unfundable Research |
| 928 |
city:Gottaknow |
| 929 |
keywords: Metadata, publishing, LaTeX |
| 930 |
license: CC-BY-4.0 |
| 931 |
\end{verbatim} |
| 932 |
\caption{Sample \texttt{.meta} file that is described in Section~\ref{metafile}. |
| 933 |
The \texttt{schema} attribute indicates a version of \pkgname\ that |
| 934 |
was used to create the file. The resst of the format should be fairly |
| 935 |
clear.} |
| 936 |
\label{samplemeta} |
| 937 |
\end{smalltcolorbox} |
| 938 |
\end{figure*} |
| 939 |
While this looks like yaml, it's not quite the same. The reader |
| 940 |
might wonder why we don't write yaml, and the real reason is that yaml |
| 941 |
requires enclosing strings inside double quotes if they contain any of the characters |
| 942 |
\verb+{}[]&*#?|-<>=!\%@:+, and those characters would need to be escaped. |
| 943 |
This would be a pain to implement in \LaTeX, and we don't need the |
| 944 |
full generality of yaml. The syntax of the \texttt{.meta} file is |
| 945 |
simplified by the fact that every value is on a single line. |
| 946 |
|
| 947 |
Note that the output format may contain macros in math mode, and also |
| 948 |
a few simple macros such as \cmd{'e}, The complete list of macros |
| 949 |
is defined in \texttt{IsMacroAllowed\{\}}. |
| 950 |
|
| 951 |
\section{Internal variables}\label{variables} |
| 952 |
For those seeking to implement their own document class based on this, you should |
| 953 |
make use of some internal variables. |
| 954 |
If a document class wishes to provide additional restrictions on the |
| 955 |
metadata that is provided, then they can implement additional checks |
| 956 |
on these variables at the end of the preamble. An example might be to |
| 957 |
check that every author supplied a surname, or that every author supplied |
| 958 |
an affiliation. |
| 959 |
|
| 960 |
The most important internal variables are listed in |
| 961 |
Table~\ref{othervariables}. We believe that these are sufficient to |
| 962 |
construct any form of front matter that is desired, and we provide |
| 963 |
several implementations of a \cmd{maketitle} command that can be |
| 964 |
accessed through the load |
| 965 |
option \texttt{maketitle=\textless{style}\textgreater}. |
| 966 |
|
| 967 |
The first version of this package was written in LaTeX2$\epsilon$ |
| 968 |
syntax, but that made it complicated to store a list of authors, |
| 969 |
affiliations, or funding agencies. The \pkgname\ package is now |
| 970 |
implemented using functionality from the LaTeX3 programming |
| 971 |
layer.\footnote{For those who are unfamiliar with this, we recommend |
| 972 |
reading \url{https://ctan.math.washington.edu/tex-archive/macros/latex/required/l3kernel/expl3.pdf} |
| 973 |
and the reference |
| 974 |
manual \url{https://ctan.math.washington.edu/tex-archive/macros/latex/required/l3kernel/interface3.pdf}.} |
| 975 |
In particular, this means that some variable names follow the |
| 976 |
general pattern of\\ |
| 977 |
\texttt{\textbackslash\textless{scope}\textgreater\_\textless{module}\textgreater\_\textless{name}\textgreater\_\textless{type}\textgreater}, |
| 978 |
where |
| 979 |
\begin{itemize} |
| 980 |
\setlength\itemsep{0pt} |
| 981 |
\item \texttt{\textless{scope}\textgreater} is either \texttt{g} or \texttt{l} for global or local variables, |
| 982 |
\item \texttt{\textless{module}\textgreater} is the string \texttt{metac}, which we use to denote the module, |
| 983 |
\item \texttt{\textless{name}\textgreater} is a variable name, |
| 984 |
\item \texttt{\textless{type}\textgreater} is a data type. |
| 985 |
\end{itemize} |
| 986 |
The two most important data types from the LaTeX3 programming layer |
| 987 |
are the \texttt{seq} and \texttt{prop} data |
| 988 |
structures. The \texttt{prop} data structure is a property list, and |
| 989 |
is much like a dictionary that holds key-value pairs. This is a |
| 990 |
natural match for storing each author, which is itself a set of |
| 991 |
key-value pairs. The same goes for each affiliation and each funder. |
| 992 |
The other important data structure is \texttt{seq}, which is a |
| 993 |
sequence. We use the variable |
| 994 |
\cmd{g\_metac\_author\_seq} to hold the sequence of authors. |
| 995 |
Due to a limitation of the \texttt{seq} and \texttt{prop} objects, the |
| 996 |
sequences hold only serialized versions of the author \texttt{prop} |
| 997 |
rather than the \texttt{prop} object itself.\footnote{Apparently the |
| 998 |
entry of a \texttt{seq} variable can only be ``balanced text'' as |
| 999 |
defined in the \TeX\ book. |
| 1000 |
See \url{https://tex.stackexchange.com/questions/115700/can-i-store-sequences-in-sequences-with-expl3} |
| 1001 |
and \url{https://github.com/latex3/latex3/issues/500} where the LaTeX |
| 1002 |
team discussed such nested data structures and decided not to support them.} |
| 1003 |
Finally, there is an additional datastructure called a \texttt{clist} |
| 1004 |
for comma-separated list that is useful for holding the lists of |
| 1005 |
keywords. |
| 1006 |
|
| 1007 |
If any of the LaTeX3 variables are used in a document class, then the |
| 1008 |
code has to be enclosed |
| 1009 |
inside \cmd{ExplSyntaxOn}...\cmd{ExplSyntaxOff} groups. This is not a |
| 1010 |
serious limitation, since it's much like the restriction to access |
| 1011 |
variables that contain the \texttt{@} character |
| 1012 |
inside \cmd{makeatletter}...\cmd{makeatother} blocks. |
| 1013 |
|
| 1014 |
\newcommand{\vardesc}[2]{\item[#1]\hfill\\#2} |
| 1015 |
\begin{table*}\label{othervariables} |
| 1016 |
\begin{smalltcolorbox} |
| 1017 |
\begin{description} |
| 1018 |
\setlength\itemsep{0pt} |
| 1019 |
\vardesc{\cmd{g\_metac\_author\_seq}}{the list of authors, each of which is a serialized key-value \texttt{prop}} |
| 1020 |
\vardesc{\cmd{g\_metac\_affil\_seq}}{the list of affiliations} |
| 1021 |
\vardesc{\cmd{g\_metac\_funders\_seq}}{the list of funders} |
| 1022 |
\vardesc{\cmd{g\_metac\_keywords\_raw\_clist}}{The list of raw encoded keywords (may contain macros)} |
| 1023 |
\vardesc{\cmd{g\_metac\_keywords\_plaintext\_clist}}{The list of plaintext keywords} |
| 1024 |
\vardesc{\cmd{METAC@license}}{When \cmd{license} is called, this is set to the license identifier. |
| 1025 |
This is an SPDX identifier because of our dependence on the |
| 1026 |
\texttt{doclicense} package. An example is \texttt{CC-BY-4.0}.} |
| 1027 |
\vardesc{\cmd{if@metacapture@anonymous}}{Set if the anonymous option is used to load it.} |
| 1028 |
\vardesc{\cmd{g\_metac\_display\_emails\_tl}}{This is a comma-delimited list of \texttt{email,(name)} values |
| 1029 |
that were constructed from calls to the \cmd{addauthor} macro.} |
| 1030 |
\vardesc{\cmd{@title}}{The formatted title supplied by the author as argument \texttt{\#2} |
| 1031 |
of \cmd{title}. This does not include anything from \cmd{subtitle}.} |
| 1032 |
\vardesc{\cmd{g\_metac\_titleraw\_tl}}{The raw title supplied as the main argument to \cmd{title}.} |
| 1033 |
\vardesc{\cmd{g\_metac\_titlerunning\_tl}}{Optional running title supplied by the author.} |
| 1034 |
\vardesc{\cmd{g\_metac\_titleplain\_tl}}{Optional plain text title.} |
| 1035 |
%\vardesc{\cmd{METAC@title@footnote}}{Optional footnote for the title.\todok{no replacement?}} |
| 1036 |
\vardesc{\cmd{g\_metac\_subtitleraw\_tl}}{Optional subtitle.} |
| 1037 |
\vardesc{\cmd{g\_metac\_subtitleplain\_tl}}{Optional plaintext version of subtitle.} |
| 1038 |
\vardesc{\cmd{METAC@listofauthors}}{A list of author names separated by ', '} |
| 1039 |
%\vardesc{\cmd{@author}}{A marked up list of authors that is used internally by the \cmd{maketitle} of the package.} |
| 1040 |
\vardesc{\texttt{METAC@author@cnt}}{A counter for the number of authors. It is incremented each time \cmd{addauthor} is called.} |
| 1041 |
\vardesc{\texttt{METAC@email@cnt}}{A counter for the number of authors with email.} |
| 1042 |
\vardesc{\texttt{METAC@affil@cnt}}{A counter for the number of affiliations. It is incremented each time \cmd{addaffiliation} is called.} |
| 1043 |
\end{description} |
| 1044 |
|
| 1045 |
\end{smalltcolorbox} |
| 1046 |
|
| 1047 |
\caption{Internal variables that are set by calls to \cmd{addauthor}, \cmd{addaffiliation}, \cmd{addfunder}, |
| 1048 |
\cmd{addkeywords}, \cmd{title}, \cmd{subtitle}, and \cmd{license}. Some of these are LaTeX3-specific, as indicated |
| 1049 |
by the name used for them. All of these are available at the end of the preamble, because the commands to set |
| 1050 |
them may only be used in the preamble.} |
| 1051 |
\end{table*} |
| 1052 |
|
| 1053 |
A complete tutorial on the use of \texttt{expl3} is beyond the scope |
| 1054 |
of this article, but we hope that the source code of the package |
| 1055 |
contains sufficiently many examples of how to use the variables. |
| 1056 |
|
| 1057 |
\section{What's missing}\label{missing} |
| 1058 |
The purpose of this package is to capture author-supplied metadata rather |
| 1059 |
than publisher-supplied metadata such as a DOI or page numbers. Such |
| 1060 |
publisher-supplied metadata is often encoded into the PDF of a |
| 1061 |
publication, e.g.\ as a hyperlink to the DOI. We leave the handling of |
| 1062 |
publisher-supplied metadata to the document class, but the \pkg{iacrj.cls} |
| 1063 |
and our open-source workflow may prove useful as an example. |
| 1064 |
|
| 1065 |
The breadth of metadata for a publication has been growing in recent |
| 1066 |
years. We have attempted to include only the minimal metadata |
| 1067 |
elements that have clear definitions, are reported to Crossref, and |
| 1068 |
are currently required in all disciplines. We expect that |
| 1069 |
others may be needed in the future. This list is not complete, but |
| 1070 |
some things include: |
| 1071 |
\begin{description} |
| 1072 |
\item[Licenses] We currently only support a limited selection of licenses (e.g., we omit |
| 1073 |
copyleft). It's possible that someone may wish to place different licenses on media embedded |
| 1074 |
in the document. It's also possible that someone may wish to place different licenses on the \LaTeX\ source |
| 1075 |
than the final document intended for readers. We do not cover these cases. |
| 1076 |
\item[Copyright] The \texttt{acmart} document class provides the \cmd{setcopyright} macro to stipulate |
| 1077 |
addtional copyright conditions such as \texttt{usgovmixed} to |
| 1078 |
stipulate that some authors are employees of the US |
| 1079 |
government. Authors may also wish to declare copyright limitations on |
| 1080 |
selected portions of the document. Both JATS and the crossref schema currently supports the elements |
| 1081 |
\texttt{\textless{copyright-holder}\textgreater}, |
| 1082 |
\texttt{\textless{copyright-statement}\textgreater}, and |
| 1083 |
\texttt{\textless{copyright-year}\textgreater} that contain structured data. Both schemas allow |
| 1084 |
them to be applied to subsections of the document so that a document may recognize copyright |
| 1085 |
of a third party for embedded elements. |
| 1086 |
\item[Languages] We have no way for an author to express which languages are used in the document, |
| 1087 |
or to provide language-specific versions of title, keywords, affiliation name, abstract, etc. |
| 1088 |
\item[Article categories] Some journals tag an article as a type, e.g, ``Commentary'', ``Research article'', |
| 1089 |
``Book Review'', or ``Survey''. These appear as \texttt{\textless{article-categories}\textgreater} in JATS. |
| 1090 |
\item[Affiliations] There are a number of other elements that might be associated with an affiliation, |
| 1091 |
including address lines for a postal address, phone number, a URL, or other identifiers such as |
| 1092 |
Grid, Ringgold, Scopus, etc. |
| 1093 |
|
| 1094 |
\item[XMP] XMP stands for ``eXtensible Metadata Platform'', and is an XML standard for |
| 1095 |
embedding metadata into PDF as well as other document |
| 1096 |
formats. Unfortunately the schema lags badly behind other standards |
| 1097 |
(it doesn't even have support for ORCID without resorting to |
| 1098 |
non-standard extension schema). See Section~\ref{pdfmetadata}. |
| 1099 |
\newcommand\CREDIT{CRediT} |
| 1100 |
\item[Contributor roles] There have been various attempts to define a taxonomy of roles |
| 1101 |
played by authors. The \texttt{amsart.cls} document class allows specifying a {\em contributor} with \cmd{contrib} |
| 1102 |
and a {\em role} argument to say things like ``with an appendix by N.\ Bourbaki'' after the list of authors. |
| 1103 |
They do not appear to report this information to crossref. |
| 1104 |
Perhaps the best known definition of contributor roles is \CREDIT, which stands for |
| 1105 |
Contributor Role Taxonomy, and has now become an ISO |
| 1106 |
standard.\footnote{See \url{https://credit.niso.org/}} Crossref has |
| 1107 |
announced that they will support something like this in version~5.5 of their schema. There |
| 1108 |
are several things that remain to be determined, like the role of AI agents in authorship, |
| 1109 |
the degree of a role, whether ``translator'' is a recognized role, etc. |
| 1110 |
\item[Author bio] IEEE and other publishers may collect an author bio, and JATS |
| 1111 |
also supports this. The model in JATS is pretty complex and supports titled sections. |
| 1112 |
\item[Other author IDs] ORCID is pretty common now, but some authors may not have them (e.g., a deceased author) and |
| 1113 |
a publisher may wish to use their own namespace (e.g., SCOPUS or MathSciNet Author ID). |
| 1114 |
\item[Author notes] Sometimes a particular author will receive a designation (e.g., a ``contact author'', |
| 1115 |
or the author responsible for supplying data). This is in the \texttt{\textless{author-notes}\textgreater} element of JATS, and |
| 1116 |
may have multiple authors referencing a single note. |
| 1117 |
\item[Bibliographic references] Since most users of \LaTeX\ use \texttt{bibtex} or \texttt{biblatex}, |
| 1118 |
it is natural to think of exporting bibliographic references as a |
| 1119 |
structured part of the metadata for the article. There are several |
| 1120 |
problems with this, including the fact that the fields for a \BibTeX\ |
| 1121 |
entry are not well defined and the format has failed to evolve.\footnote{The |
| 1122 |
original \BibTeX\ documentation says ``Don't take the field names too |
| 1123 |
seriously''.} For example, authors may add things like a URL as part |
| 1124 |
of the \texttt{url} field, or a \texttt{note} field, or |
| 1125 |
a \texttt{howpublished} field. Moreover, packages |
| 1126 |
like \texttt{biblatex} have added additional entry types and fields. |
| 1127 |
|
| 1128 |
Given the weaknesses of the \BibTeX\ format, we might consider an |
| 1129 |
alternative export format. There are several such bibliographic |
| 1130 |
database formats, but they are seldom used with \LaTeX, and they all |
| 1131 |
suffer from deficiencies. These include |
| 1132 |
RIS,\footnote{See \url{https://en.wikipedia.org/wiki/RIS_(file_format)}}, |
| 1133 |
Endnote, |
| 1134 |
Zotero,\footnote{See \url{https://gist.github.com/pchemguy/19fa69fb4e74ef0cca0026aa0dbf5f42}}, |
| 1135 |
citeproc |
| 1136 |
JSON,\footnote{See \url{https://github.com/citation-style-language/schema}} |
| 1137 |
and |
| 1138 |
JATS.\footnote{See \url{https://jats.nlm.nih.gov/publishing/tag-library/1.4/element/element-citation.html}} |
| 1139 |
|
| 1140 |
In our first effort at metadata extraction~\cite{tugboat}, we used a |
| 1141 |
custom \BibTeX\ style to export the bibliography in a structured |
| 1142 |
format, but that introduced additional problems because we wanted to |
| 1143 |
follow the separation of concerns principle. In the end we decided |
| 1144 |
that exporting bibliographic references is a big complicated mess that |
| 1145 |
is better left to a high-level language. In our companion workflow |
| 1146 |
software,\footnote{See \url{https://github.com/IACR/latex-submit}} we |
| 1147 |
use python to invoke \pkg{bibexport} to find the cited references, and |
| 1148 |
then parse the bibtex files directly. This was complicated by the fact |
| 1149 |
that we wanted to support both |
| 1150 |
\pkg{biblatex} and \pkg{bibtex}. |
| 1151 |
|
| 1152 |
\item[Name parts] Some agencies like crossref are attempting to gather names of authors in |
| 1153 |
two parts, namely first and last (or given and family name). We have |
| 1154 |
attempted to comply by allowing an optional surname field on author |
| 1155 |
names, but this approach is flawed since names cannot be assumed to |
| 1156 |
have the same structure across all cultures. See~\cite{falsehoods}. |
| 1157 |
We also do not support alternate names for authors, and we do not support |
| 1158 |
author-supplied \texttt{name-style} attribute that crossref supports for an author to report |
| 1159 |
that they have only a given name. |
| 1160 |
\item[Funding text] Some funding agencies have specific text that they want to |
| 1161 |
be displayed to acknowledge them. Ideally this would appear in both the document itself but |
| 1162 |
also as part of the metadata on an HTML landing page. We could address this by including an optional |
| 1163 |
\texttt{text} attribute on \cmd{addfunder} |
| 1164 |
\item[Funding groups] We currently support the name, identifier, and award number for a funder, |
| 1165 |
but we may wish to provide further information like the name of a PI or the |
| 1166 |
program within a larger funding organization. This would be driven by downstream requirements. |
| 1167 |
\item[Shared footnotes] We don't support shared footnotes for authors. These might be useful to |
| 1168 |
for a single statement that they contributed equally, or to identify all corresponding authors. |
| 1169 |
We also don't support |
| 1170 |
multiple footnotes on an author or a title. |
| 1171 |
\item[Multiple departments] Consider the case where author$_1$ is in the mathematics |
| 1172 |
department of UCSB, and author$_2$ wishes to list both the mathematics and computer science departments |
| 1173 |
in their affiliation. In this case it's not clear how the affiliations should be listed. |
| 1174 |
One choice is to list UCSB twice, with author$_1$ specifying |
| 1175 |
the mathematics department and author$_2$ specifying both departments in the \texttt{department} |
| 1176 |
attribute. Alternatively, the UCSB affiliation would be listed once, but footnotes used on the |
| 1177 |
author to indicate which department. The \pkg{acmart} document class |
| 1178 |
has some support for this. |
| 1179 |
\item[Discipline-specific data] Some disciplines use additional metadata such as |
| 1180 |
clinical trials that are registered with a International Standard |
| 1181 |
Randomized Controlled Trial Number (ISRCTN), or the \verb+ClinicalTrials.gov+ |
| 1182 |
number. We don't understand them well enough to include them |
| 1183 |
here, but they seem like natural extensions. |
| 1184 |
\item[External documents] Some journal articles are explicitly linked to |
| 1185 |
other documents or media. This could include supplementary material, |
| 1186 |
former versions of the document, translations, related media, |
| 1187 |
data, code, clinical information, etc. |
| 1188 |
\item[Keywords and taxonomies] |
| 1189 |
Some disciplines also use specific taxonomies or keyword vocabularies (e.g., |
| 1190 |
ACM Computing Classification System, AMS Mathematics Subject |
| 1191 |
Classification, or the JEL classification system in economics). At |
| 1192 |
present, we regard these as too publisher-specific be included in this |
| 1193 |
general package. A document class can always provide support for them. |
| 1194 |
|
| 1195 |
|
| 1196 |
Both JATS and Crossref have support for keywords and/or subject classifications in |
| 1197 |
their schemas. In both cases there is support for multiple classifications, with multiple |
| 1198 |
vocabularies or assigning authorities. |
| 1199 |
\end{description} |
| 1200 |
\section{Package dependencies} |
| 1201 |
This package depends directly on several other packages, including the following: |
| 1202 |
\begin{description} |
| 1203 |
\item[\texttt{xstring}] This is used for \cmd{IfSubStr}. |
| 1204 |
\item[\texttt{footnote}] Authors are allowed to have footnotes attached to |
| 1205 |
them, and these may be contained inside boxes in the \cmd{maketitle} |
| 1206 |
implementations that the package provides. For this we use the |
| 1207 |
\texttt{footnote} package for footnotes inside of boxes. We tried using the |
| 1208 |
\texttt{footnotehyper} package but that package is too restrictive in how |
| 1209 |
footnotes are defined. |
| 1210 |
\item[\texttt{alphalph}] Footnote labels may be alphabetic, depending on the |
| 1211 |
load options. |
| 1212 |
\item[\texttt{tokcycle}] This is used to perform checks on metadata arguments |
| 1213 |
to make sure that they contain ``only text'' that can safely be written to a plain |
| 1214 |
text file. |
| 1215 |
\item[\texttt{listofitems}] This is used to process a list of macros that are |
| 1216 |
allowed to appear in ``text-only'' arguments to macros. We use \cmd{readlist} from |
| 1217 |
\texttt{listofitems} to read that list. We might be able to switch to native |
| 1218 |
\texttt{clist} from \texttt{expl3} instead. |
| 1219 |
\item[\texttt{doclicense}] This is used to identify creative commons |
| 1220 |
licenses in the \cmd{license} macro. |
| 1221 |
\item[\texttt{hyperref}] This is used to provide hyperlinks on footnotes, |
| 1222 |
ORCID links, and because \texttt{doclicense} requires it. We try to delay |
| 1223 |
loading this as late as possible so as not to collide with any options from |
| 1224 |
other packages or the document class. |
| 1225 |
\item[\texttt{fancyvrb}] This is used to write out the \texttt{textabstract} |
| 1226 |
environment to a file. |
| 1227 |
\item[\texttt{xpatch}] This is used to patch an output macro from \texttt{fancyvrb}. |
| 1228 |
\item[\texttt{tikz}] This is used with the \texttt{svg.path} library to draw |
| 1229 |
some icons like the home link and the ORCID link. |
| 1230 |
\end{description} |
| 1231 |
|
| 1232 |
|
| 1233 |
\section{Feedback} |
| 1234 |
Use the \pkgname\ github project to report bugs and submit feature |
| 1235 |
requests.\footnote{See \url{https://github.com/IACR/latex/tree/main/metacapture}} |
| 1236 |
If |
| 1237 |
your feature is only relevant to a specific discipline, then perhaps |
| 1238 |
the natural thing to do is to extend the \pkgname\ package and add |
| 1239 |
additional fields. Adding too many fields and too much complexity can |
| 1240 |
make the documentation hard to digest. |
| 1241 |
|
| 1242 |
%\printbibliography |
| 1243 |
\bibliography{metacapture-doc} |
| 1244 |
\appendix |
| 1245 |
\section{Appendix: Example styles for \cmd{maketitle}\label{appendix}} |
| 1246 |
This document was typeset with \texttt{article} class and the |
| 1247 |
default \cmd{@title} and \cmd{@author} (i.e., |
| 1248 |
using \texttt{maketitle=none}). In subsequent pages we show the |
| 1249 |
appearance of the different styles for \cmd{maketitle}. A class designer can of |
| 1250 |
course make their own \cmd{maketitle} to suit their own needs, and hopefully these |
| 1251 |
examples will be useful. |
| 1252 |
|
| 1253 |
\newpage |
| 1254 |
\phantomsection{} |
| 1255 |
\pdfbookmark[2]{Demo of maketitle=iacrj }{iacrjdemo} |
| 1256 |
\setcounter{footnote}{0} |
| 1257 |
\makeatletter |
| 1258 |
\METAC@iacrj@maketitle |
| 1259 |
\makeatother |
| 1260 |
\begin{quote} |
| 1261 |
This uses \texttt{maketitle=iacrj}. Footnotes for affiliations are numbered, but footnote symbols on |
| 1262 |
title footnotes and author footnotes are alphabetic (they can also be symbols). The icon for a home page |
| 1263 |
is different than what is used in \cmd{@author}. |
| 1264 |
\end{quote} |
| 1265 |
\label{iacrj} |
| 1266 |
|
| 1267 |
\newpage |
| 1268 |
\phantomsection{} |
| 1269 |
\pdfbookmark[2]{Demo of maketitle=acmsmall }{acmsmalldemo} |
| 1270 |
\setcounter{footnote}{0} |
| 1271 |
\makeatletter |
| 1272 |
\METAC@acmsmall@maketitle |
| 1273 |
\makeatother |
| 1274 |
\begin{quote} |
| 1275 |
This uses \texttt{maketitle=acmsmall}. Author names are in small caps. |
| 1276 |
\end{quote} |
| 1277 |
\label{acmsmall} |
| 1278 |
|
| 1279 |
\newpage |
| 1280 |
\phantomsection{} |
| 1281 |
\pdfbookmark[2]{Demo of maketitle=acmconf }{acmconfdemo} |
| 1282 |
\label{acmconf} |
| 1283 |
\setcounter{footnote}{0} |
| 1284 |
\savenotes |
| 1285 |
\makeatletter |
| 1286 |
\METAC@acmconf@maketitle |
| 1287 |
\makeatother |
| 1288 |
\spewnotes |
| 1289 |
\begin{quote} |
| 1290 |
This uses \texttt{maketitle=acmconf}. Each author is displayed in a block with repeated affiliations. |
| 1291 |
It appears similar to the default \cmd{@author}, but the spacing is better for more than a couple of |
| 1292 |
authors and links for ORCID and author home pages are omitted. |
| 1293 |
\end{quote} |
| 1294 |
|
| 1295 |
\newpage |
| 1296 |
\phantomsection{} |
| 1297 |
\pdfbookmark[2]{Demo of maketitle=jems }{jemsdemo} |
| 1298 |
\label{jems} |
| 1299 |
\setcounter{footnote}{0} |
| 1300 |
\makeatletter |
| 1301 |
\METAC@jems@maketitle |
| 1302 |
\makeatother |
| 1303 |
\begin{quote} |
| 1304 |
This uses \texttt{maketitle=jems}. Author names appear above the title, and each author has an unnumbered footnote with their |
| 1305 |
information. It's not clear what to do with footnotes on author names, and the journal class appears not to support |
| 1306 |
them. |
| 1307 |
\end{quote} |
| 1308 |
|
| 1309 |
\newpage |
| 1310 |
\phantomsection{} |
| 1311 |
\pdfbookmark[2]{Demo of maketitle=inv }{invdemo} |
| 1312 |
\label{inv} |
| 1313 |
\setcounter{footnote}{0} |
| 1314 |
\begin{savenotes} |
| 1315 |
\makeatletter |
| 1316 |
\METAC@inv@maketitle |
| 1317 |
\makeatother |
| 1318 |
\end{savenotes} |
| 1319 |
|
| 1320 |
\begin{quote} |
| 1321 |
This uses \texttt{maketitle=inv}. Affiliations are listed below each author name, and are repeated for shared |
| 1322 |
affiliations. Emails are listed after affiliations in a block. |
| 1323 |
\end{quote} |
| 1324 |
|
| 1325 |
\newpage |
| 1326 |
\phantomsection{} |
| 1327 |
\pdfbookmark[2]{Demo of maketitle=lipics }{lipicsdemo} |
| 1328 |
\label{lipics} |
| 1329 |
\setcounter{footnote}{0} |
| 1330 |
\makeatletter |
| 1331 |
\METAC@lipics@maketitle |
| 1332 |
\makeatother |
| 1333 |
\begin{quote} |
| 1334 |
This uses \texttt{maketitle=lipics}. Author names have icons for email, home page, and ORCID. |
| 1335 |
Affiliations are listed below each author name, and are repeated for shared |
| 1336 |
affiliations. |
| 1337 |
\end{quote} |
| 1338 |
|
| 1339 |
\newpage |
| 1340 |
\phantomsection{} |
| 1341 |
\pdfbookmark[2]{Demo of maketitle=ams }{amsdemo} |
| 1342 |
\label{ams} |
| 1343 |
\setcounter{footnote}{0} |
| 1344 |
\makeatletter |
| 1345 |
\METAC@ams@maketitle |
| 1346 |
\makeatother |
| 1347 |
\begin{quote} |
| 1348 |
This uses \texttt{maketitle=ams}. Title and author names are in small caps. |
| 1349 |
Author footnotes are unnumbered (for some reason this is the style |
| 1350 |
for \texttt{amsart}). Each author's affiliation is listed at the end of the document as below. |
| 1351 |
\end{quote} |
| 1352 |
|
| 1353 |
\end{document} |