Skip to content

Commit 5036b08

Browse files
Enable multiple columns for authors (Fixes #12)
1 parent 21c55ae commit 5036b08

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ This template provides a few custom YAML header options to control the PDF outpu
5454
linenumbers: false # Add (continuous) line numbers?
5555
doublespacing: false # Double space the PDF output?
5656
runninghead: "A Preprint" # The text on the top of each page of the output
57+
authorcols: false # Should authors be listed in a single column (default) or in multiple columns (`authorcols: true`)
5758
```
5859
5960
Both `linenumbers` and `doublespacing` are booleans, defaulting to `false`,

_extensions/arxiv/_extension.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ contributes:
1919
documentclass: article
2020
linenumbers: false
2121
doublespacing: false
22+
authorcols: false
2223
# Content to add in header that your format is using
2324
header-includes: |
2425
\usepackage{arxiv}

_extensions/arxiv/partials/_authors.tex

-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66
$-- Use it if you need to insert content at this specific place of the main Pandoc's template. Otherwise, remove it.
77
$-- Here we are using it to format the authors part of the template.
88
$-- %%%%%%%%%%%%%%%
9-
109
\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$

_extensions/arxiv/partials/title.tex

+5-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,9 @@
3232
\makeatother
3333
\subtitle{$subtitle$}
3434
$endif$
35-
\author{${ by-author:_authors.tex()[\\\\\\] }}
35+
\def\asep{\\\\\\ } % default: all authors on same column
36+
$if(authorcols)$
37+
\def\asep{\And }
38+
$endif$
39+
\author{${ by-author:_authors.tex()[\asep] }}
3640
\date{$date$}

0 commit comments

Comments
 (0)