You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-6
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,19 @@
1
1
# ArXiv Template
2
2
3
-
This is a Quarto template that assists you in creating PDF outputs which closely match those published on arXiv. If you are intending to publish your article on arXiv, it is highly recommended you upload your TeX files (and supporting files, including generated `.bbl` and figure files) directly. However, this template supports rendering PDFs which resemble arXiv preprints for upload to other repositories either before or instead of submission to arXiv itself.
3
+
This is a Quarto template that assists you in creating PDF outputs which closely match the arXiv template for the rticles package. If you are intending to publish your article on arXiv, it is highly recommended you upload your TeX files (and supporting files, including generated `.bbl` and figure files) directly. However, this template supports rendering decent looking PDFs for upload to other repositories either before or instead of submission to arXiv itself.
4
4
5
-
There are currently a few differences between the PDFs generated by this template and those generated by arXiv:
5
+
There are currently a few differences between the PDFs generated by this template and those generated by the arXiv rticles template:
6
6
7
7
1. The fonts and spacings are not a perfect match. PRs to fix this are more than welcome.
8
-
2. ORCiD IDs will be rendered as clickable logos next to author names.
9
-
3. Emails will be displayed as hyperlinks, not in monospaced fonts.
8
+
2. References and links are not currently hyperlinked. PRs to fix this also more than welcome.
9
+
3. ORCiD IDs will be rendered as clickable logos next to author names. This is an intentional change.
10
+
4. Emails will be displayed as hyperlinks, and not in monospaced font. This is also intentional.
10
11
11
12
Any other differences are unintentional bugs -- please open an issue about anything you encounter!
12
13
13
14
## Creating a New Article
14
15
15
-
You can use this as a template to create a preprint for ArXiv. To do this, use the following command:
16
+
You can use this as a template to create a new article. To do this, use the following command:
16
17
17
18
```bash
18
19
quarto use template mikemahoney218/quarto-arxiv
@@ -45,4 +46,4 @@ format:
45
46
keep-tex: true
46
47
```
47
48
48
-
You can view a preview of the rendered template at <https://mikemahoney218.github.io/quarto-arxiv/template.pdf>.
49
+
You can view a preview of the rendered template at <https://mikemahoney218.github.io/quarto-arxiv/template.pdf> (PDF output) and <https://mikemahoney218.github.io/quarto-arxiv/template> (HTML output).
This is an example of how to use this template to render articles in the standard arXiv format.
37
+
This is an example of how to use this template to render journal articles. This template is inspired by the arXiv rticles template for rmarkdown, repurposed for the Quarto publishing system.
38
38
39
-
This quarto extension format supports PDF and HTML outputs. `quarto-journals`is aiming at porting existing {{< latex >}} template from journals to be used with quarto. PDF format is what require the most work to fit the journals guideline, but Quarto offer a nice rendering for HTML output too. This template only uses basic HTML format without any customization for now.
39
+
This quarto extension format supports PDF and HTML outputs. This template is primarily focused on generating acceptable {{< latex >}} outputs from Quarto, but renders an acceptable HTML output using the standard Quarto options.
40
40
41
-
# Demo of some features found in this demo journal template
41
+
# Quarto
42
42
43
-
## Shortcode demo {#sec-shortcode}
43
+
Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see <https://quarto.org>.
44
44
45
-
PDF are rendered using {{< latex >}} but it is best if one can use a Markdown syntax for cross format support.
45
+
# Running Code
46
46
47
-
## Code chunk {#sec-chunks}
47
+
When you click the **Render** button a document will be generated that includes both content and the output of embedded code. You can embed code like this:
48
+
49
+
```{r}
50
+
1 + 1
51
+
```
48
52
49
53
This format hide chunks by default:
50
54
@@ -60,22 +64,154 @@ But you can set `echo` option to `true` locally in the chunk:
60
64
61
65
```{r}
62
66
#| echo: true
67
+
#| label: tbl-glm
63
68
#| tbl-cap: "A table."
64
69
65
70
# install.packages("broom")
66
71
# install.packages("kableExtra")
67
72
m_pois <- glm(Days ~ (Eth + Sex + Age + Lrn)^2, data = quine, family = poisson)
68
-
kableExtra::kbl(broom::tidy(m_pois))
73
+
kableExtra::kable_styling(
74
+
kableExtra::kbl(broom::tidy(m_pois))
75
+
)
76
+
```
77
+
78
+
79
+
# Markdown Basics
80
+
81
+
This section of the template is adapted from [Quarto's documentation on Markdown basics](https://quarto.org/docs/authoring/markdown-basics.html).
See the [Quarto documentation on cross-references for more](https://quarto.org/docs/authoring/cross-references.html).
161
+
162
+
163
+
# Citations
164
+
165
+
This section of the template is adapted from the [Quarto citation documentation](https://quarto.org/docs/authoring/footnotes-and-citations.html).
166
+
167
+
Quarto supports bibliography files in a wide variety of formats including BibTeX and CSL. Add a bibliography to your document using the `bibliography` YAML metadata field. For example:
168
+
169
+
``` yaml
170
+
---
171
+
title: "My Document"
172
+
bibliography: references.bib
173
+
---
69
174
```
70
175
71
-
## Using references
176
+
See the [Pandoc Citations](https://pandoc.org/MANUAL.html#citations) documentation for additional information on bibliography formats.
72
177
73
-
I did not read this book [@CameronTrivedi2013] but it must be interesting.
178
+
## Citation Syntax {#sec-citations}
179
+
180
+
Quarto uses the standard Pandoc markdown representation for citations. Here are some examples:
0 commit comments