This is a Quarto template that assists you in creating PDF outputs which closely match the arXiv template for the rticles package (which is itself derived from kourgeorge/arxiv-style). If you are intending to publish your article on arXiv, it is highly recommended you upload your TeX files (and supporting files) directly. However, this template supports rendering decent looking PDFs for upload to other repositories either before or instead of submission to arXiv itself. The TeX generated from the default .qmd
template also passes arxiv's pre-submission build process and checks, and so preprints generated from this template may be able to be submitted to arXiv without any alterations.
There are currently a few differences between the PDFs generated by this template and those generated by the arXiv rticles template:
- The fonts and spacings are not a perfect match. PRs to fix this are more than welcome.
- References and links are not currently hyperlinked. PRs to fix this also more than welcome.
- ORCiD IDs will be rendered as clickable logos next to author names. This is an intentional change.
- Emails will be displayed as hyperlinks, and not in monospaced font. This is intentional.
- Authors with multiple affiliations will have each affiliation listed. This is intentional.
Any other differences are unintentional bugs -- please open an issue about anything you encounter!
You can use this as a template to create a new article. To do this, use the following command:
quarto use template mikemahoney218/quarto-arxiv
This will install the extension and create an example qmd file and bibiography that you can use as a starting place for your article.
You may also use this format with an existing Quarto project or document. From the quarto project or document directory, run the following command to install this format:
quarto install extension mikemahoney218/quarto-arxiv
This template uses the Latin Modern family of fonts. On Mac, you might need to install these using:
brew tap homebrew/cask-fonts
brew install font-latin-modern
brew install font-latin-modern-math
On Ubuntu, you might need to install these fonts using:
sudo apt install lmodern
If you have installation instructions for these fonts on another platform, please feel free to open an issue or send in a PR!
To use the format, you can use the format names arxiv-pdf
and arxiv-html
. For example:
quarto render article.qmd --to arxiv-pdf
or in your document yaml
format:
pdf: default
arxiv-pdf:
keep-tex: true
You can view a preview of the rendered template at https://mike.quarto.pub/quarto-arxiv-template/.
This template provides a few custom YAML header options to control the PDF output:
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
,
and were added in version 0.2.0. runninghead
can be any text and was added
in version 0.2.1. You can define these either as top-level options, or under
arxiv-pdf
; they only impact the generated PDF.
Use this template for a paper or a preprint? Let me know, and I'll add it to the list below!
The following papers were rendered using this template:
- Fine-resolution landscape-scale biomass mapping using a spatiotemporal patchwork of LiDAR coverages -- now published at International Journal of Applied Earth Observation and Geoinformation!
- Classification and mapping of low-statured ‘shrubland’ cover types in post-agricultural landscapes of the US Northeast (version 1) -- now published at International Journal of Remote Sensing!
- Borch: A Deep Universal Probabilistic Programming Language
- Analysing and visualising bike-sharing demand with outliers (version 2)
- RANG: Reconstructing reproducible R computational environments (with source code at https://github.com/chainsawriot/rang/tree/paper/paper !)
- Assessing the performance of spatial cross-validation approaches for models of spatially structured data (with source code at https://github.com/cafri-labs/assessing-spatial-cv/ !)
- waywiser: Ergonomic Methods for Assessing Spatial Models
- Mapping historical forest biomass for stock-change assessments at parcel to landscape scales -- now published at Forest Ecology and Management!
- tmfast fits topic models fast
- Strategies and Challenges for Creating Systematic Individual Reports in R using RMarkdown and Quarto