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: vignettes/format-details.Rmd
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -32,8 +32,8 @@ This has these components:
32
32
```
33
33
output:
34
34
rjtools::rjournal_article
35
+
bibliography: RJreferences.bib
35
36
```
36
-
-`bibliography: RJreferences.bib`
37
37
38
38
# Figures
39
39
@@ -48,7 +48,7 @@ Of course, if only a static plot is to be rendered in both outputs, a single cod
48
48
For a static graph, use `\@ref(fig:penguins)` for in-text reference and your code chunk should look something like this:
49
49
50
50
````markdown
51
-
`r ''````{r penguins, fig.cap="This is the figure caption"}
51
+
`r ''````{r penguins, fig.cap="This is the figure caption."}
52
52
penguins %>%
53
53
ggplot(aes(x = flipper_length_mm,
54
54
y = body_mass_g,
@@ -84,7 +84,7 @@ plotly::ggplotly(p1)
84
84
85
85
Notice here you need `eval=knitr::is_html_output()` and `eval=knitr::is_latex_output()` to make sure that the pdf output only evaluates the first chunk and the html output only evaluates the second.
86
86
87
-
For in-text citation, you will something like this:
87
+
For in-text citation, you will need something like this:
Sizing these figures should via the relevant arguments rather than the chunk options.
116
+
Sizing these figures should be done via the relevant arguments rather than the chunk options.
117
117
118
118
## Captions with special formatting
119
119
@@ -188,7 +188,7 @@ Both equations will be numbered, and referenced with `\@ref(eq:parityLoss2)`. S
188
188
189
189
# Citations
190
190
191
-
The citation style will be added during the building process and you can find the csl file [here](https://github.com/rjournal/rjtools/blob/main/inst/rjournal.csl). This style adopts a "capitalize-first" text case on title, which means it will capitalise the first world, including the one after the colon, and use lowercase for the rest. If you would like to preserve the text case of the title in the reference, wrap the word with curly braces. A common example of this is to preserve the lowercase R package name:
191
+
The citation style will be added during the building process and you can find the csl file [here](https://github.com/rjournal/rjtools/blob/main/inst/rjournal.csl). This style adopts a "capitalize-first" text case on title, which means it will capitalise the first word, including the one after the colon, and use lowercase for the rest. If you would like to preserve the text case of the title in the reference, wrap the word with curly braces. A common example of this is to preserve the lowercase R package name:
0 commit comments