-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d9fb126
commit a4d2246
Showing
4 changed files
with
2,220 additions
and
0 deletions.
There are no files selected for viewing
77 changes: 77 additions & 0 deletions
77
local_vignettes/MazamaLocationUtils/MazamaLocationUtils.Rmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
--- | ||
documentclass: jss | ||
author: | ||
- name: FirstName LastName | ||
orcid: 0000-0000-0000-0000 | ||
affiliation: University/Company | ||
# use this syntax to add text on several lines | ||
address: | | ||
| First line | ||
| Second line | ||
email: \email{[email protected]} | ||
url: https://posit.co | ||
- name: Second Author | ||
orcid: 0000-0000-0000-0000 | ||
affiliation: 'Affiliation \AND' | ||
# To add another line, use \AND at the end of the previous one as above | ||
- name: Third Author | ||
orcid: 0000-0000-0000-0000 | ||
address: | | ||
| Department of Statistics and Mathematics, | ||
| Faculty of Biosciences, | ||
| Universitat Autònoma de Barcelona | ||
affiliation: | | ||
| Universitat Autònoma | ||
| de Barcelona | ||
# use a different affiliation in adress field (differently formated here) | ||
affiliation2: Universitat Autònoma de Barcelona | ||
title: | ||
formatted: "A Capitalized Title: Something about a Package \\pkg{foo}" | ||
# If you use tex in the formatted title, also supply version without | ||
plain: "A Capitalized Title: Something about a Package foo" | ||
# For running headers, if needed | ||
short: "\\pkg{foo}: A Capitalized Title" | ||
abstract: > | ||
The abstract of the article. | ||
keywords: | ||
# at least one keyword must be supplied | ||
formatted: [keywords, not capitalized, "\\proglang{Java}"] | ||
plain: [keywords, not capitalized, Java] | ||
preamble: > | ||
\usepackage{amsmath} | ||
output: rticles::jss_article | ||
--- | ||
|
||
```{r, setup, include=FALSE} | ||
options(prompt = 'R> ', continue = '+ ') | ||
``` | ||
|
||
# Introduction | ||
|
||
This template demonstrates some of the basic LaTeX that you need to know to create a JSS article. | ||
|
||
## Code formatting | ||
|
||
In general, don't use Markdown, but use the more precise LaTeX commands instead: | ||
|
||
- \proglang{Java} | ||
|
||
- \pkg{plyr} | ||
|
||
One exception is inline code, which can be written inside a pair of backticks (i.e., using the Markdown syntax). | ||
|
||
If you want to use LaTeX commands in headers, you need to provide a `short-title` attribute. You can also provide a custom identifier if necessary. See the header of Section \ref{r-code} for example. | ||
|
||
# \proglang{R} code {#r-code short-title="R code"} | ||
|
||
Can be inserted in regular R markdown blocks. | ||
|
||
```{r} | ||
x <- 1:10 | ||
x | ||
``` | ||
|
||
## Features specific to \pkg{rticles} {short-title="Features specific to rticles"} | ||
|
||
- Adding short titles to section headers is a feature specific to \pkg{rticles} (implemented via a Pandoc Lua filter). This feature is currently not supported by Pandoc and we will update this template if [it is officially supported in the future](https://github.com/jgm/pandoc/issues/4409). | ||
- Using the `\AND` syntax in the `author` field to add authors on a new line. This is a specific to the `rticles::jss_article` format. |
Oops, something went wrong.