Skip to content

Commit

Permalink
Enable multiple columns for authors (Fixes #12)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemahoney218 committed Sep 11, 2023
1 parent 21c55ae commit 5036b08
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down
1 change: 1 addition & 0 deletions _extensions/arxiv/_extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
1 change: 0 additions & 1 deletion _extensions/arxiv/partials/_authors.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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$
6 changes: 5 additions & 1 deletion _extensions/arxiv/partials/title.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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$}

0 comments on commit 5036b08

Please sign in to comment.