| 1 |
\DocumentMetadata{lang=en,debug={xmp-export}} |
| 2 |
\def\pkgname{metacapture} |
| 3 |
\def\pkgversion{0.9.1} |
| 4 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 5 |
% This document will work with many different choices of documentclass |
| 6 |
%\documentclass[draft]{article} |
| 7 |
% title footnotes don't work in twocolumn. |
| 8 |
%\documentclass[twocolumn]{article} |
| 9 |
%\documentclass{scrarticle} |
| 10 |
%\documentclass[journal=tches,submission]{iacrtrans} |
| 11 |
% taken from overleaf |
| 12 |
%\documentclass[sigconf,authordraft,twocolumn]{acmart} |
| 13 |
%\documentclass[twocolumn]{acmart} |
| 14 |
% this fails with footnotes |
| 15 |
%\documentclass{acmart} |
| 16 |
%\documentclass{lipics-v2021} |
| 17 |
%\documentclass[format=acmsmall]{acmart} |
| 18 |
%\documentclass[conference,compsoc]{IEEEtran} |
| 19 |
%\documentclass{IEEEconf} |
| 20 |
% abstract is supposed to be before \title in amsart, even |
| 21 |
% though it is typeset after title. |
| 22 |
\documentclass{amsart} |
| 23 |
% revtex4-2 does not work (with various failure modes). |
| 24 |
%\documentclass[aps,prl,preprint,nofootinbib]{revtex4-2} |
| 25 |
%\documentclass{revtex4-2} |
| 26 |
% This looks weird to me, with subsections in italics. |
| 27 |
%\documentclass[preprint,1p]{elsarticle} |
| 28 |
\usepackage{hyperref} |
| 29 |
%\documentclass{llncs} |
| 30 |
%\documentclass{jacow} |
| 31 |
%\documentclass{icsv} |
| 32 |
% semproc does not work because of a bug in biblatex and load order. |
| 33 |
%\documentclass{semproc} |
| 34 |
%\documentclass{limap} |
| 35 |
%\documentclass{isodoc} |
| 36 |
% ejpecp does not work. |
| 37 |
%\documentclass[EJP]{ejpecp} |
| 38 |
% jwjournal does not work |
| 39 |
%\documentclass{jwjournal} |
| 40 |
%\documentclass{spie} |
| 41 |
%\documentclass{active-conf} |
| 42 |
%\documentclass{paper} |
| 43 |
% This almost works. |
| 44 |
%\documentclass{aomart} |
| 45 |
%\documentclass{ecca} |
| 46 |
% does not work because of natbib. |
| 47 |
% \documentclass{jmlr} |
| 48 |
% %This does not work |
| 49 |
%\documentclass{asmejour} |
| 50 |
%\documentclass{aiaa-tc} |
| 51 |
%\documentclass{verifica} |
| 52 |
%\documentclass{SFEE} |
| 53 |
%\documentclass{apa} |
| 54 |
% clash on \license |
| 55 |
%\documentclass{emisa} |
| 56 |
%\documentclass{jpsj2} |
| 57 |
% requires biblatex |
| 58 |
%\documentclass{nwejmart} |
| 59 |
% requires biblatex |
| 60 |
%\documentclass{gztarticle} |
| 61 |
%\documentclass{ltugboat} |
| 62 |
%\documentclass{nature} |
| 63 |
% requires \shorttitle |
| 64 |
%\documentclass{ijmart} |
| 65 |
%\documentclass{sn-jnl} |
| 66 |
\usepackage{manyfoot} |
| 67 |
\usepackage{amsmath} |
| 68 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 69 |
%\usepackage{metacapture} |
| 70 |
%\usepackage[maketitle=iacrj]{metacapture} |
| 71 |
%\usepackage[maketitle=iacrj,footnotesymbols]{metacapture} |
| 72 |
%\usepackage[maketitle=acmsmall]{metacapture} |
| 73 |
%\usepackage[maketitle=acmconf,footnotesymbols]{metacapture} |
| 74 |
%\usepackage[maketitle=lipics,footnotesymbols]{metacapture} |
| 75 |
%\usepackage[maketitle=inv]{metacapture} |
| 76 |
%\usepackage[maketitle=ams,footnotesymbols]{metacapture} |
| 77 |
\usepackage[maketitle=ams]{metacapture} |
| 78 |
% ems-journal-jems redefines \subtitle, so there is a conflict. |
| 79 |
%\usepackage[journal=JEMS]{ems-journal-jems} |
| 80 |
%\usepackage[maketitle=jems,footnotesymbols]{metacapture} |
| 81 |
|
| 82 |
\newcommand{\acmd}[2][]{% |
| 83 |
\def\FirstArg{#1}% |
| 84 |
\ifx\FirstArg\empty% |
| 85 |
\texttt{\textbackslash{}#2}% |
| 86 |
\else% |
| 87 |
\texttt{\textbackslash{}#2\{#1\}}% |
| 88 |
\fi |
| 89 |
} |
| 90 |
\makeatletter |
| 91 |
\@ifclassloaded{amsart}{ |
| 92 |
\typeout{Using~amsalpha} |
| 93 |
\bibliographystyle{amsalpha} |
| 94 |
}{ |
| 95 |
\typeout{Using~plainurl} |
| 96 |
\bibliographystyle{plainurl} |
| 97 |
} |
| 98 |
\makeatother |
| 99 |
\usepackage{kantlipsum} |
| 100 |
%\usepackage[final]{hyperref} |
| 101 |
\newcommand{\pkg}[1]{\texttt{#1}} |
| 102 |
\title[plaintext={The metacapture LaTeX package}, |
| 103 |
running={The \pkgname\ \LaTeX\ package v\pkgversion}, |
| 104 |
]{The \pkgname\ \textrm{\LaTeX} package v\pkgversion\footnote{Probably not ready for use by others yet.}} |
| 105 |
\subtitle{A demo for different maketitle styles and classes} |
| 106 |
\addauthor[orcid = {0000-1111-2222-3333}, |
| 107 |
inst = {1,2}, |
| 108 |
footnote= {Paul has a footnote}, |
| 109 |
onclick={https://iacr.org/}, |
| 110 |
email = {[email protected]}, |
| 111 |
surname = {Erdős}, |
| 112 |
]{Paul Erdős} |
| 113 |
\addauthor[orcid = {0000-0001-7890-5430}, |
| 114 |
inst = {2}, |
| 115 |
footnote = {Another remarkable Hungarian mathematician}, |
| 116 |
email = {[email protected]}, |
| 117 |
surname = {Tur\'an}, |
| 118 |
]{P\'al Tur\'an} |
| 119 |
\addauthor[inst={2,3}, |
| 120 |
email={[email protected]}, |
| 121 |
footnote={Home page at \url{https://theonion.com/}}, |
| 122 |
orcid={1111-2222-3333-4444}]{Third Author} |
| 123 |
\addauthor[inst={1}, |
| 124 |
email={[email protected]}, |
| 125 |
onclick = {https://example.com/first}]{Fourth author} |
| 126 |
\addauthor[inst={1}, |
| 127 |
email={[email protected]}, |
| 128 |
footnote={Fifth doesn't even know that he is an author}]{Fifth Author} |
| 129 |
\addauthor[inst={3},footnote={Sixth is last} |
| 130 |
]{Sixth Author} |
| 131 |
|
| 132 |
%%%%%%%%%%%%%%%%%%%%% Lots of authors |
| 133 |
\iffalse |
| 134 |
\addauthor{Henri Cohen} |
| 135 |
\addauthor{Atsuko Miyaji} |
| 136 |
\addauthor{Takatoshi Ono} |
| 137 |
\addauthor{Leisa Condie} |
| 138 |
\addauthor{Scott Contini} |
| 139 |
\addauthor{Yiqun Lisa Yin} |
| 140 |
\addauthor{Rodney H. Cooper} |
| 141 |
\addauthor{Wayne Patterson} |
| 142 |
\addauthor{Helena Handschuh} |
| 143 |
\addauthor{David Naccache} |
| 144 |
\addauthor{François Koeune} |
| 145 |
\addauthor{Nicolas Courtois} |
| 146 |
\addauthor{Matthieu Finiasz} |
| 147 |
\addauthor{Nicolas Sendrier} |
| 148 |
\addauthor{Josef Pieprzyk} |
| 149 |
\addauthor{James Cowie} |
| 150 |
\addauthor{Bruce Dodson} |
| 151 |
\addauthor{R. Marije Elkenbracht-Huizing} |
| 152 |
\addauthor{Arjen K. Lenstra} |
| 153 |
\addauthor{Peter L. Montgomery} |
| 154 |
\addauthor{Jörg Zayer} |
| 155 |
\addauthor{Giovanni Di Crescenzo} |
| 156 |
\addauthor{Giuseppe Persiano} |
| 157 |
\addauthor{Ivan Visconti} |
| 158 |
\addauthor{Paolo D'Arco} |
| 159 |
\addauthor{Douglas R. Stinson} |
| 160 |
\addauthor{Carl D'Halluin} |
| 161 |
\addauthor{Gert Bijnens} |
| 162 |
\addauthor{Bart Preneel} |
| 163 |
\addauthor{Vincent Rijmen} |
| 164 |
\addauthor{Eli Biham} |
| 165 |
\addauthor{Orr Dunkelman} |
| 166 |
\addauthor{Nathan Keller} |
| 167 |
\addauthor{Michel Abdalla} |
| 168 |
\addauthor{Mihir Bellare} |
| 169 |
\addauthor{Olivier Billet} |
| 170 |
\addauthor{Henri Gilbert} |
| 171 |
\addauthor{Olivier Chevassut} |
| 172 |
\addauthor{Pierre-Alain Fouque} |
| 173 |
\addauthor{David Pointcheval} |
| 174 |
\addauthor{Alex Biryukov} |
| 175 |
\addauthor{Adi Shamir} |
| 176 |
\addauthor{Leonid Reyzin} |
| 177 |
\addauthor{Joan Daemen} |
| 178 |
\addauthor{Masayuki Abe} |
| 179 |
\addauthor{Simon R. Blackburn} |
| 180 |
\addauthor{Steven D. Galbraith} |
| 181 |
\addauthor{Ronald Cramer} |
| 182 |
\addauthor{Serge Fehr} |
| 183 |
\addauthor{Emmanuel Bresson} |
| 184 |
\addauthor{Eiichiro Fujisaki} |
| 185 |
\addauthor{Jørgen Brandt} |
| 186 |
\addauthor{Peter Landrock} |
| 187 |
\addauthor{Hikaru Morita} |
| 188 |
\addauthor{Miyako Ohkubo} |
| 189 |
\addauthor{Dario Catalano} |
| 190 |
\addauthor{Tatsuaki Okamoto} |
| 191 |
\addauthor{Andries E. Brouwer} |
| 192 |
\addauthor{Ruud Pellikaan} |
| 193 |
\addauthor{Eric R. Verheul} |
| 194 |
\addauthor{Koutarou Suzuki} |
| 195 |
\addauthor{Luca Breveglieri} |
| 196 |
\addauthor{Alessandra Cherubini} |
| 197 |
\addauthor{Marco Macchetti} |
| 198 |
\addauthor{Mehdi-Laurent Akkar} |
| 199 |
\addauthor{Régis Bevan} |
| 200 |
\addauthor{Paul Dischamp} |
| 201 |
\addauthor{Didier Moyart} |
| 202 |
\addauthor{Justin Brickell} |
| 203 |
\addauthor{Vitaly Shmatikov} |
| 204 |
\addauthor{Sattam S. Al-Riyami} |
| 205 |
\addauthor{Kenneth G. Paterson} |
| 206 |
\addauthor{Lawrence Brown} |
| 207 |
\addauthor{Matthew Kwan} |
| 208 |
\addauthor{Jennifer Seberry} |
| 209 |
\addauthor{Mohssen Alabbadi} |
| 210 |
\addauthor{Stephen B. Wicker} |
| 211 |
\addauthor{Vangalur S. Alagar} |
| 212 |
\addauthor{Mark Ames} |
| 213 |
\addauthor{Ahto Buldas} |
| 214 |
\addauthor{Ross J. Anderson} |
| 215 |
\addauthor{Serge Vaudenay} |
| 216 |
\addauthor{Mike Burmester} |
| 217 |
\addauthor{Yvo Desmedt} |
| 218 |
\addauthor{Martin Anthony} |
| 219 |
\addauthor{Keith M. Martin} |
| 220 |
\addauthor{Peter R. Wild} |
| 221 |
\addauthor{Jun Anzai} |
| 222 |
\addauthor{Natsume Matsuzaki} |
| 223 |
\addauthor{Tsutomu Matsumoto} |
| 224 |
\addauthor{Jan Camenisch} |
| 225 |
\addauthor{Kazumaro Aoki} |
| 226 |
\addauthor{Hiroki Ueda} |
| 227 |
\addauthor{Seigo Arita} |
| 228 |
\addauthor{Markus Michels} |
| 229 |
\addauthor{Gwénolé Ars} |
| 230 |
\addauthor{Jean-Charles Faugère} |
| 231 |
\addauthor{Hideki Imai} |
| 232 |
\addauthor{Mitsuru Kawazoe} |
| 233 |
\addauthor{Makoto Sugita} |
| 234 |
\fi |
| 235 |
%%%%%%%%%%%%%%%%%%%%% end lots of authors |
| 236 |
|
| 237 |
|
| 238 |
%\addauthor[inst={1},email={[email protected]}]{Seventh Author} |
| 239 |
\addaffiliation[ror = 0168r3w48, |
| 240 |
department = {Computer Science Department}, |
| 241 |
country={United States}]{University of California, San Diego} |
| 242 |
\addaffiliation[department={Department of Redundancy Department}, |
| 243 |
city={Sunnydale}, |
| 244 |
state={California}, |
| 245 |
country={Elbonia}]{Mega Corporation} |
| 246 |
\addaffiliation[country={Absurdistan}, |
| 247 |
department={Department of Unfundable Research}, |
| 248 |
city={Gottaknow}]{Faber College} |
| 249 |
\addkeywords[Metadata, publishing, LaTeX]{Metadata, publishing, \LaTeX} |
| 250 |
%\license{CC-BY-4.0} |
| 251 |
%\license{CC0-1.0} |
| 252 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% end of preamble %%%%%%%%%%%%%%%%%%%% |
| 253 |
\begin{document} |
| 254 |
%\hypersetup{colorlinks=true} |
| 255 |
\IfClassLoadedTF{acmart}{}{% |
| 256 |
\IfClassLoadedTF{amsart}{}{% |
| 257 |
\IfClassLoadedTF{elsarticle}{}{\maketitle}}} |
| 258 |
\begin{abstract} |
| 259 |
You can mix and match different document classes and maketitle styles to see what the result |
| 260 |
is. Note that the abstract is under control of the document class, and is not affected |
| 261 |
by the \pkgname\ package. Some document classes require the abstract to appear before |
| 262 |
\acmd{maketitle}. We provide support this in \texttt{acmart}, \texttt{amsart}, and \texttt{elsarticle}. |
| 263 |
There is a \texttt{textabstract} environment |
| 264 |
that will cause a \acmd{jobname}\texttt{.abstract} file to be written, and is |
| 265 |
intended to be a pure text abstract. |
| 266 |
\end{abstract} |
| 267 |
\IfClassLoadedTF{acmart}{\maketitle}{ |
| 268 |
\IfClassLoadedTF{amsart}{\maketitle}{% |
| 269 |
\IfClassLoadedTF{elsarticle}{\maketitle}{}}} |
| 270 |
\begin{textabstract} |
| 271 |
This is the textabstract. It does not show up in the document itself, but can |
| 272 |
be used to create an HTML abstract. |
| 273 |
\end{textabstract} |
| 274 |
|
| 275 |
\section{Motivation} |
| 276 |
This is just an example of a document that uses \pkgname\ with a variety of document |
| 277 |
classes.\footnote{This footnote is first in the text, and numbered starting after affiliations.} |
| 278 |
You can try commenting out various |
| 279 |
\acmd{documentclass} commands and \texttt{\textbackslash{usepackage}[maketitle=\textless{style}\textgreater]\{metacapture\}} |
| 280 |
combinations to see what it looks like. See~\cite{tugboat,falsehoods}. |
| 281 |
|
| 282 |
\section{Boilerplate by Kant} |
| 283 |
\kant[1-4] |
| 284 |
\bibliography{metacapture-doc} |
| 285 |
\end{document} |