Template Options
Options are set in the metadata section at the top of the .qmd file. Quarto metadata uses YAML, a format that allows us to store data in a format that is easy to write and easy to read. In its simplest form, it has a key and a value:
key: value
If the value is simple, it does not need any quotes. If it has any characters that have special meaning in yaml (e.g., :
), you will need to put the value in quotes.
title: "This title needs quotes: Because there is a colon in it."
Any optional key you do not use can be deleted or commented out. If you would prefer to keep the key visible but empty, you can make the value NULL
with the tilde symbol ~
like so:
key: ~
Here is a minimal example of what the YAML metadata might look like:
---
title: "My Paper's Title: A Full Analysis of Everything"
shorttitle: "My Paper's Title"
author:
- name: W. Joel Schneider
corresponding: true
orcid: 0000-0002-8393-5316
email: schneider@temple.edu
affiliations:
- name: Temple University
department: College of Education and Human Development
address: 358 Ritter Hall
city: Philadelphia
region: PA
postal-code: 19122-6091
abstract: "This is my abstract."
keywords: [keyword1, keyword2]
author-note:
disclosures:
conflict of interest: The author has no conflict of interest to declare.
bibliography: mybibfile.bib
format:
apaquarto-docx: default
apaquarto-html: default
apaquarto-pdf: default
apaquarto-typst: default
---
General Options
Field | Explanation |
---|---|
title |
Sets the title. Titles with no special characters can be raw text.
If your title has a colon in it, it will need to be quoted:
You can list your title and subtitle separately, and they will be combined with a colon in the document:
|
shorttitle |
A short version of the title that appears in the running header for .pdf and .docx formats. If omitted or null (~ ), the running header will take its value from the title field (and will omit the subtitle ). |
abstract |
The abstract paragraph. If the abstract is a single paragraph, put it on a single line like most of the other fields:
If the abstract has multiple paragraphs, separate them like so:
|
keywords |
A list of topics your paper relates to. Can be single words or short phrases. There are two ways to format key words. Comma-separated list with square brackets:
Multiline list with indented hyphens :
|
floatsintext |
Specifies where floats (i.e., figures and tables) appear.
The |
numbered-lines |
Numbered lines (.pdf and .docx only) Default: |
bibliography |
File(s) with references. If you have a single file, you can list it like so:
If you have multiple files, you can make an array:
|
mask |
For anonymous peer review, removes identifying information: author names, author affiliations, author notes, correspondence information, and references listed in the If If |
masked-citations |
A list of citation keys that should be masked if the
The citation keys should be as they appear in the bibliography file(s). |
suppress-title-page |
Suppress the title page if true |
meta-analysis |
By default, all studies listed in the nocite field will be marked with asterisks in the References section. If this behavior is unwanted, set meta-analysis to false. |
no-ampersand-parenthetical |
APA style uses ampersands in parenthetical citations (e.g., Schneider & McGrew, 2018) but not in narrative (i.e., in-text) citations: Schneider and McGrew (2018). You can replace ampersands with “and” in parenthetical citations (e.g., Schneider and McGrew, 2018) by setting the no-ampersand-parenthetical option to true . A different replacement word other than “and” can be set in the citation-last-author-separator field in the language options. |
Affiliations
The apaquarto extenstion uses the standard Quarto schema for affiliations.
Field | Explanation |
---|---|
id |
A unique identifier for the affiliation. The
|
name |
The name of the organization.
If the author is unaffiliated, list the author’s city and region/state instead:
|
department |
A specific division within the organization. |
group |
A subdivision within the department
|
address |
The street address |
city |
City |
region |
The region, state, or province. You may specify |
country |
Country |
postal-code |
Postal code (zip code in the U.S.) |
Multiple Affiliations
If an author has more than one affiliation:
author:
- name: William Joel Schneider
affiliations:
- name: Temple University
department: College of Education and Human Development
address: 1301 Cecil B. Moore Ave.
city: Philadelphia
region: PA
postal-code: 19122-6091
- name: My Second Affiliation
Options for .docx and typst
Field | Explanation |
---|---|
blank-lines-above-title |
Number of blank lines above the title. If omitted, defaults to 2 double-spaced lines. APA style requests that you put your title 3 to 4 lines (i.e., 1.5 to 2 double-spaced lines) down from the top of the title page. |
blank-lines-above-author-note |
Number of double-spaced lines between author affiliations and author note. APA style wants the note to start around the middle of the page. You can play with the number. It defaults to 2 if omitted. |
Options for .pdf
All of the .pdf-specfic options for apaquarto come directly from the apa7 \(\LaTeX\) package. Consult the apa7 package documentation for greater detail.
Field | Explanation |
---|---|
documentmode |
Alter the overall style of the document. Options incluce:
|
|
Fields that are used only for student papers ( Example:
|
|
Fields that are used only for Journal ( Example:
|
fontsize |
Size of font. Options include |
a4paper |
If true , uses a4 paper size instead of 8.5 by 11 in. letter size. |
donotrepeattitle |
If true , suppresses title in the first page of text. |
draftfirst |
If true , puts draft watermark on first page. |
draftall |
If true , puts draft watermark on all pages. |
nocorrespondence |
If true , hides correspondence text |
Options for .html
With one exeception, everything that works for .docx should work for .html. For .html, there is no benefit to having line numbers in the text because the text wrapping differs depending on the device and size of the window the document is being viewed.
Suppress Elements
Any of the elements below can be selectively suppressed from the document.
Field | Explanation |
---|---|
suppress-title-page: true |
Suppress the entire title page |
suppress-title: true |
Suppress the title on the title page |
suppress-short-title: true |
Suppress the short title in the running header |
suppress-author: true |
Suppresses the author names below the title. Does not suppress author names in the author note. |
suppress-affiliation: true |
Suppress affiliations below the author names. Does not suppress the affiliation in the correspondence note. |
suppress-author-note: true |
Suppress the entire author note |
suppress-orcid: true |
Suppress the author ORCID numbers |
suppress-status-change-paragraph: true |
Suppress the paragraph about status changes (affiliation changes and deceased authors) |
suppress-disclosures-paragraph: true |
Suppress the paragraph about disclosures (study registration, data sharing, related reports, conflicts of interest, financial support, statements of gratitude, and authorship agreements) |
suppress-credit-statement: true |
Suppress the credit statement |
suppress-corresponding-paragraph: true |
Suppress the entire correspondence paragraph |
suppress-corresponding-group: true |
Suppress the group in the correspondence address |
suppress-corresponding-department: true |
Suppress the department in the correspondence address |
suppress-corresponding-address: true |
Suppress the street address in the correspondence address |
suppress-corresponding-city: true |
Suppress the city in the correspondence address |
suppress-corresponding-region: true |
Suppress the region/state in the correspondence address |
suppress-corresponding-postal-code: true |
Suppress the postal code in the correspondence address |
suppress-corresponding-email: true |
Suppress the email address in the correspondence address |
suppress-abstract: true |
Suppress the abstract. In the .pdf document, this will also suppress the keywords. |
suppress-keywords: true |
Suppress the keywords below the abstract |
suppress-title-introduction: true |
Suppress the title in the introduction |
Language Options
You can alter the names of Abstract, Figures, Tables, and References by setting the lang
field to one of these languages:
Code | Language |
---|---|
en |
English |
zh |
Chinese |
es |
Spanish |
fr |
French |
ja |
Japanese |
de |
German |
pt |
Portuguese |
ru |
Russian |
cs |
Czech |
fi |
Finnish |
nl |
Dutch |
it |
Italian |
pl |
Polish |
ko |
Korean |
However, there are a few options that are specific to apaquarto and thus were not anticipated by Quarto.
Field | Explanation | Default |
---|---|---|
citation-last-author-separator |
APA-style in-text citations with multiple authors are separated by commas with the appropriate translation of the word and before the last author. | and |
citation-masked-author |
The phrase to replace author names in masked citations. | Masked Citation |
citation-masked-date |
The abbreviated translation for “no date” in masked citations | n.d. |
title-block-author-note |
The heading of the author note | Author Note |
title-block-correspondence-note |
The phrase introducing the correspondence note. | Correspondence concerning this article should be addressed to |
title-block-role-introduction |
The phrase introducing the author roles. | Author roles were classified using the Contributor Role Taxonomy (CRediT; https://credit.niso.org/) as follows: |
references-meta-analysis |
The sentence explaining that citations marked with an asterisk were studies in the meta-analysis. | References marked with an asterisk indicate studies included in the meta-analysis. |
All these options must be listed under the language
field . For example, if we set the lang
field to en
(Spanish), the remaining options can also be set:
lang: es
language:
citation-last-author-separator: "y"
citation-masked-author: "Cita Enmascarada"
citation-masked-title: "Título Enmascarado"
citation-masked-date: "n.f."
title-block-author-note: "Nota de Autores"
title-block-correspondence-note: "La correspondencia relativa a este artículo debe dirigirse a"
title-block-role-introduction: "Los roles de autor se clasificaron utilizando la taxonomía de roles de colaborador (CRediT; https://credit.niso.org/) de la siguiente manera:"
references-meta-analysis: "Las referencias marcadas con un asterisco indican estudios incluidos en el metanálisis."
In addition, many terms that are translated automatically can be overridden. The full list is here. For example, if I wanted “Figure” in figure captions to be “Plot” instead, I would specify the change like so:
language:
crossref-fig-title: "Plot"
Here are the language terms most likely to be used in apaquarto:
Field: English Default | Explanation |
---|---|
section-title-abstract: Abstract |
Abtract title |
section-title-references: References |
References title |
title-block-keywords: Keywords |
Keywords |
crossref-fig-title: Figure |
Figure title prefix |
crossref-tbl-title: Table |
Table title prefix |
crossref-apx-prefix: Appendix |
Appendix title prefix |
crossref-eq-prefix: Equation |
Equation title prefix |