Skip to content

Commit

Permalink
fix(template): use journal.cite-style instead of natbibstyle
Browse files Browse the repository at this point in the history
- #2 (comment)
Signed-off-by: Cameron Smith <[email protected]>
  • Loading branch information
cameronraysmith committed Apr 23, 2024
1 parent 4a4e19f commit 38b4098
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ format:
## Options
- `natbibstyle`: the name of the natbib style for the Nature subjournal
- `journal.cite-style`: the name of the natbib style for the Nature subjournal
- `default`: Default
- `sn-nature`: Style for submissions to Nature Portfolio journals
- `sn-basic`: Basic Springer Nature Reference Style/Chemistry Reference Style
Expand All @@ -39,8 +39,8 @@ format:
- `sn-apa`: APA Reference Style
- `sn-chicago`: Chicago-based Humanities Reference Style
- `classoption`:
- `iicol`: double column layout, usually used with `natbibstyle: default`
- `Numbered`: Numbered reference style, usually used with `natbibstyle: sn-vancouver`.
- `iicol`: double column layout, usually used with `journal.cite-style: default`
- `Numbered`: Numbered reference style, usually used with `journal.cite-style: sn-vancouver`.
- `referee`: double spaced for first submissions
- `lineno`: print line numbers in the margin

Expand All @@ -52,7 +52,8 @@ such as:
```yaml
format:
nature-pdf:
natbibstyle: sn-mathphys-num
journal:
cite-style: sn-mathphys-num
cite-method: natbib
```

Expand Down
4 changes: 2 additions & 2 deletions _extensions/nature/partials/doc-class.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
\documentclass[
$if(natbibstyle)$
$natbibstyle$,
$if(journal.cite-style)$
$journal.cite-style$,
$else$
default,
$endif$
Expand Down
5 changes: 3 additions & 2 deletions template.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
title: Quarto Template for Springer Nature
format:
nature-pdf:
# natbibstyle is included in the tex file but ignored by pandoc if
# journal.cite-style is included in the tex file but ignored by pandoc if
# cite-method is not `natbib`.
natbibstyle: sn-nature
journal:
cite-style: sn-nature
classoption:
- lineno
# `citeproc` is the pandoc default. Set `cite-method: natbib` if required
Expand Down

0 comments on commit 38b4098

Please sign in to comment.