Skip to content

Commit cc5fd2b

Browse files
Add running head argument
1 parent efe595a commit cc5fd2b

File tree

5 files changed

+20
-2
lines changed

5 files changed

+20
-2
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,16 @@ format:
4747
```
4848
4949
You can view a preview of the rendered template at <https://mike.quarto.pub/quarto-arxiv-template/>.
50+
51+
This template provides a few custom YAML header options to control the PDF output:
52+
53+
```yaml
54+
linenumbers: false # Add (continuous) line numbers?
55+
doublespacing: false # Double space the PDF output?
56+
runninghead: "A Preprint" # The text on the top of each page of the output
57+
```
58+
59+
Both `linenumbers` and `doublespacing` are booleans, defaulting to `false`,
60+
and were added in version 0.2.0. `runninghead` can be any text and was added
61+
in version 0.2.1. You can define these either as top-level options, or under
62+
`arxiv-pdf`; they only impact the generated PDF.

_extensions/arxiv/_extension.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
title: ArXiv Template
22
author: Mike Mahoney
3-
version: 0.2.0
3+
version: 0.2.1
44
contributes:
55
formats:
66
common:

_extensions/arxiv/arxiv.sty

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
\pagestyle{fancy}
3030
\renewcommand{\headrulewidth}{0pt}
3131
\fancyheadoffset{0pt}
32-
\rhead{\scshape A preprint - \today}
32+
\rhead{\scshape \runninghead - \today}
3333
\cfoot{\thepage}
3434

3535
% font sizes with reduced leading

_extensions/arxiv/partials/title.tex

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
$if(date)$
1717
\renewcommand{\today}{$date$}
1818
$endif$
19+
\newcommand{\runninghead}{A Preprint }
20+
$if(runninghead)$
21+
\renewcommand{\runninghead}{$runninghead$ }
22+
$endif$
1923
$if(title)$
2024
\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
2125
$endif$

template.qmd

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ format:
55
keep-tex: true
66
linenumbers: false
77
doublespacing: false
8+
runninghead: "A Preprint"
89
arxiv-html: default
910
author:
1011
- name: Michael J Mahoney

0 commit comments

Comments
 (0)