Skip to content

Commit

Permalink
added local_vignettes
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathancallahan committed Aug 15, 2024
1 parent d9fb126 commit a4d2246
Show file tree
Hide file tree
Showing 4 changed files with 2,220 additions and 0 deletions.
77 changes: 77 additions & 0 deletions local_vignettes/MazamaLocationUtils/MazamaLocationUtils.Rmd
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.
Loading

0 comments on commit a4d2246

Please sign in to comment.