-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.qmd
129 lines (109 loc) · 6.04 KB
/
example.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
---
title: Quarto Template for Springer Nature
format:
nature-pdf:
# journal.cite-style is included in the tex file but ignored by pandoc if
# cite-method is not `natbib`.
journal:
cite-style: sn-nature
# `citeproc` is the pandoc default. Set `cite-method: natbib` if required
# to use the bst styles from the upstream template.
cite-method: citeproc
keep-tex: true
equal-margins: false
html:
code-fold: true
html-math-method: mathjax
docx: default
# The `csl` style will be used with LaTeX-based rendering of`nature-pdf`
# if cite-method is `citeproc`. This is also the default if cite-method
# is not specified.
#
# If attempting to render this extension template in an end-user project,
# where you have executed a command like
# $ quarto add sciexp/quarto-springer-nature-template
# you will need to modify the csl path to point to the correct location, e.g.
# csl: _extensions/sciexp/nature/csl/springer-basic-author-date.csl
# where `sciexp` will be used as the namespace for the extension.
# see: https://quarto.org/docs/extensions/distributing.html#github-distribution
csl: _extensions/nature/csl/springer-basic-brackets-no-et-al.csl
author:
- name: Author One
affiliations:
- name: Harvard University
id: 1
department: Department of Government
address: 1737 Cambridge Street
city: Cambridge
state: MA
postal-code: 02138
- name: Harvard University
id: 2
department: Department of Statistics
address: 1 Oxford Street
city: Cambridge
state: MA
postal-code: 02138
attributes:
equal-contributor: true
- name: Author Two
affiliations:
- name: Yale University
id: 3
department: Department of Political Science
address: 115 Prospect Street
city: New Haven
state: CT
postal-code: 06511
email: corresponding@email.com
attributes:
equal-contributor: true
corresponding: true
- name: Author Three
affiliations:
- ref: 1
abstract: |
The abstract serves both as a general introduction to the topic and as a brief, non-technical summary of the main results and their implications. Authors are advised to check the author instructions for the journal they are submitting to for word limits and if structural elements like subheadings, citations, or equations are permitted.
keywords: [template, demo]
bibliography: bibliography.bib
---
# Introduction {#sec-intro}
The Introduction section, of referenced text [@greenwade93] expands on the background of the work (some overlap with the Abstract is acceptable). The introduction should not include subheadings.
Springer Nature does not impose a strict layout as standard however authors are advised to check the individual requirements for the journal they are planning to submit to as there may be journal-level preferences. When preparing your text please also be aware that some stylistic choices are not supported in full text XML (publication version), including coloured font. These will not be replicated in the typeset article if it is accepted.
# Using this template {#sec-template}
This Quarto template is unofficial and built out of Springer Nature's template.
Some examples of commonly used commands and features are listed below, to help you get started.
As seen below, you can mix markdown and Latex with each other, though it's likely best to mostly use markdown.
## Cross Referencing
To reference a figure with example label "plot", use `@fig-plot`.
Analogously, to reference a table with example label "data", use `@tbl-data`.
To reference a section, such as the Introduction (@sec-intro), use `@sec-intro`.
For complete information on cross referencing with Quarto, see <https://quarto.org/docs/authoring/cross-references.html>.
## Citations
Quarto formats citations and references automatically using the bibliography records in your .bib file. For a single citation use [@greenwade93]. For multiple citations use [@greenwade93;@knuth1984texbook]. If using an author-date-based citation style, then for a citation in parentheses use `[@greenwade93]` and for a text citation use `@greenwade93`. You can drop the author using `[-@greenwade93]`. If the tex output is to be included in a submission to a preprint server or publisher, the default citation method, `citeproc`, may not always produce bibliographies compatible with the provided `bst` styles. In this case, you can set `cite-method: natbib`. See <https://quarto.org/docs/authoring/footnotes-and-citations.html#sec-biblatex>. In this case, you may either restrict usage to the default bracketed key citation formats supported by pandoc, such as [@greenwade93] or [@greenwade93;@knuth1984texbook]. Or, use a CSL file, several of which are vendored in [_extensions/nature/csl](./_extensions/nature/csl/). The advantage of the latter is that references will be consistent across html, docx, and pdf outputs. See <https://pandoc.org/MANUAL.html#citation-syntax> for additional details on pandoc citation styles.
# Tables and Figures
To include figures, you can use Quarto syntax.
![An example figure (an empty plot)](fig.pdf){#fig-plot}
For both figures and tables, you can use LaTeX syntax if you need additional customizability.
For example, to use footnotes within a table, you may want to use LaTeX.
\begin{table}[h]
\caption{LaTeX caption text}\label{tbl-data}%
\begin{tabular}{@{}llll@{}}
\toprule
Column 1 & Column 2 & Column 3 & Column 4\\
\midrule
row 1 & data 1 & data 2 & data 3 \\
row 2 & data 4 & data 5\footnotemark[1] & data 6 \\
row 3 & data 7 & data 8 & data 9\footnotemark[2] \\
\botrule
\end{tabular}
\footnotetext{Source: This is an example of table footnote. This is an example of table footnote.}
\footnotetext[1]{Example for a first table footnote. This is an example of table footnote.}
\footnotetext[2]{Example for a second table footnote. This is an example of table footnote.}
\end{table}
# References
<!-- the pattern below controls the placement of the references -->
:::{#refs}
:::
# Appendix {.appendix}
{{< lipsum 5 >}}