diff --git a/README.md b/README.md index 7e80cec..670a143 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,7 @@ This template provides a few custom YAML header options to control the PDF outpu linenumbers: false # Add (continuous) line numbers? doublespacing: false # Double space the PDF output? runninghead: "A Preprint" # The text on the top of each page of the output +authorcols: false # Should authors be listed in a single column (default) or in multiple columns (`authorcols: true`) ``` Both `linenumbers` and `doublespacing` are booleans, defaulting to `false`, diff --git a/_extensions/arxiv/_extension.yml b/_extensions/arxiv/_extension.yml index 79aafab..7a80c2d 100644 --- a/_extensions/arxiv/_extension.yml +++ b/_extensions/arxiv/_extension.yml @@ -19,6 +19,7 @@ contributes: documentclass: article linenumbers: false doublespacing: false + authorcols: false # Content to add in header that your format is using header-includes: | \usepackage{arxiv} diff --git a/_extensions/arxiv/partials/_authors.tex b/_extensions/arxiv/partials/_authors.tex index 1d85256..58e2381 100644 --- a/_extensions/arxiv/partials/_authors.tex +++ b/_extensions/arxiv/partials/_authors.tex @@ -6,5 +6,4 @@ $-- Use it if you need to insert content at this specific place of the main Pandoc's template. Otherwise, remove it. $-- Here we are using it to format the authors part of the template. $-- %%%%%%%%%%%%%%% - \textbf{$it.name.literal$}$if(it.orcid)$~\orcidlink{$it.orcid$}$endif$$for(it.affiliations/first)$\\$it.department$\\$it.name$\\$if(it.city)$$it.city$$if(it.postal-code)$,\ $it.postal-code$$endif$$endif$$endfor$\\$if(it.email)$\href{mailto:$it.email$}{$it.email$}$endif$ diff --git a/_extensions/arxiv/partials/title.tex b/_extensions/arxiv/partials/title.tex index 3ddc866..4bfc0f2 100644 --- a/_extensions/arxiv/partials/title.tex +++ b/_extensions/arxiv/partials/title.tex @@ -32,5 +32,9 @@ \makeatother \subtitle{$subtitle$} $endif$ -\author{${ by-author:_authors.tex()[\\\\\\] }} +\def\asep{\\\\\\ } % default: all authors on same column +$if(authorcols)$ +\def\asep{\And } +$endif$ +\author{${ by-author:_authors.tex()[\asep] }} \date{$date$}