To create a new article using this format:
quarto use template mikewolfe/front-vanThis will create a new directory with an example document that uses this format.
To add this format to an existing document:
quarto add mikewolfe/front-vanThen, add the format to your document options:
format:
front-van-pdf: defaultThe default setting for class options follows the frontiers.tex file that
comes from the journal, that is:
classoption: utf8The Frontiers-Vancouver.cls appears to support support several other options
including draft, final, a4paper etc. but they have not been tested so
use at your own risk.
A runningauthor: must be specified or the LaTex file will fail to
build. This is the first author that is put at the head of each page
with et al.
runningtitle: likewise gives the header for the title on the right
of each page. This is not required.
In order for the author affiliations to be properly formatted, each affiliation
must use a number 1, 2, etc. as the id field.
The corresponding authors is set with
attributes:
corresponding: trueHowever, multiple corresponding authors is not currently supported for the pdf format.
This template supports pdf, word, and html output. Both pdf and word
are based on the files from the journal. The html output is a quarto default
output but with the Vancouver citation style.
The word output does not format the authors properly and must be edited by hand after generating.
Here is the source code for a minimal sample document: template.qmd.
Which renders to this:
This modifies the Frontiers in Template LaTeX and Word templates, available at https://www.frontiersin.org/guidelines/author-guidelines#writing-and-formatting.
This template was created following the excellent guide by Christopher Kenny:
T. Kenny, Christopher. 2023. “Creating Quarto Journal Article Templates.” July 1, 2023. https://christophertkenny.com/posts/2023-07-01-creating-quarto-journal-articles.
The wordcount.lua function for getting wordcount tables while
rendering was adapted from
https://github.com/CoryMcCartan/cmc-article/blob/main/_extensions/cmc-article/wordcount.lua.
