forked from quarto-journals/elsevier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.qmd
121 lines (102 loc) · 4.08 KB
/
template.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
---
title: Short Paper
subtitle: A Short Subtitle
author:
- name: Alice Anonymous
email: alice@example.com
affiliations:
- id: some-tech
name: Some Institute of Technology
department: Department Name
address: Street Address
city: City
state: State
postal-code: Postal Code
attributes:
corresponding: true
note: This is the first author footnote.
- name: Bob Security
email: bob@example.com
affiliations:
- id: another-u
name: Another University
department: Department Name
address: Street Address
city: City
state: State
postal-code: Postal Code
note: |
Another author footnote, this is a very long footnote and it should be a really long footnote. But this footnote is not yet sufficiently long enough to make two lines of footnote text.
- name: Cat Memes
email: cat@example.com
affiliations:
- ref: another-u
note: Yet another author footnote.
- name: Derek Zoolander
email: derek@example.com
affilations:
- ref: some-tech
abstract: |
This is the abstract. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum augue turpis, dictum non malesuada a, volutpat eget velit. Nam placerat turpis purus, eu tristique ex tincidunt et. Mauris sed augue eget turpis ultrices tincidunt. Sed et mi in leo porta egestas. Aliquam non laoreet velit. Nunc quis ex vitae eros aliquet auctor nec ac libero. Duis laoreet sapien eu mi luctus, in bibendum leo molestie. Sed hendrerit diam diam, ac dapibus nisl volutpat vitae. Aliquam bibendum varius libero, eu efficitur justo rutrum at. Sed at tempus elit.
keywords:
- keyword1
- keyword2
date: last-modified
bibliography: bibliography.bib
format:
elsevier-pdf:
keep-tex: true
journal:
name: Journal Name
formatting: preprint
model: 3p
cite-style: super
---
Please make sure that your manuscript follows the guidelines in the
Guide for Authors of the relevant journal. It is not necessary to
typeset your manuscript in exactly the same way as an article,
unless you are submitting to a camera-ready copy (CRC) journal.
For detailed instructions regarding the elsevier article class, see <https://www.elsevier.com/authors/policies-and-guidelines/latex-instructions>
# Bibliography styles
Here are two sample references: @Feynman1963118 @Dirac1953888.
By default, natbib will be used with the `authoryear` style, set in `classoption` variable in YAML.
You can sets extra options with `natbiboptions` variable in YAML header. Example
```
natbiboptions: longnamesfirst,angle,semicolon
```
There are various more specific bibliography styles available at
<https://support.stmdocs.in/wiki/index.php?title=Model-wise_bibliographic_style_files>.
To use one of these, add it in the header using, for example, `biblio-style: model1-num-names`.
## Using CSL
If `cite-method` is set to `citeproc` in `elsevier_article()`, then pandoc is used for citations instead of `natbib`. In this case, the `csl` option is used to format the references. By default, this template will provide an appropriate style, but alternative `csl` files are available from <https://www.zotero.org/styles?q=elsevier>. These can be downloaded
and stored locally, or the url can be used as in the example header.
# Equations
Here is an equation:
$$
f_{X}(x) = \left(\frac{\alpha}{\beta}\right)
\left(\frac{x}{\beta}\right)^{\alpha-1}
e^{-\left(\frac{x}{\beta}\right)^{\alpha}};
\alpha,\beta,x > 0 .
$$
Inline equations work as well: $\sum_{i = 2}^\infty\{\alpha_i^\beta\}$
# Figures and tables
@fig-meaningless is generated using an R chunk.
```{r}
#| label: fig-meaningless
#| fig-cap: A meaningless scatterplot
#| fig-width: 5
#| fig-height: 5
#| fig-align: center
#| out-width: 50%
#| echo: false
plot(runif(25), runif(25))
```
# Tables coming from R
Tables can also be generated using R chunks, as shown in @tbl-simple example.
```{r}
#| label: tbl-simple
#| tbl-cap: Caption centered above table
#| echo: true
knitr::kable(head(mtcars)[,1:4])
```
# References {-}