wjschne / apaquarto

A quarto extension for creating APA7 documents in .docx, .html, and .pdf formats
https://wjschne.github.io/apaquarto/
Creative Commons Zero v1.0 Universal
170 stars 15 forks source link

Optional correspondence paragraph #13

Closed NeubertJonas closed 1 year ago

NeubertJonas commented 1 year ago

In case no corresponding author is required (e.g., for student papers), this change enables output (docx, html, and pdf) without the correspondence paragraph.

Usage

For .html and .docx, simply remove the corresponding: true (or set it to false) in the author options. For .pdf output, additionally set the new nocorrespondence option to true within the apaquarto-pdf format options.

A new if statement has been added to title.tex, which evaluates nocorrespondence. It defaults to displaying the correspondence paragraph when nocorrespondence is omitted from the YAML.

Minor Limitation

If no corresponding author has been set, but nocorrespondence: false (or omitted), then the PDF output will contain the start of the paragraph ("Correspondence concerning this article...") but no author information. An error message could be added for those cases, but I don't think it's strictly necessary.

NeubertJonas commented 1 year ago

PS: I think the title.log file can be deleted from the _extension folder, so I included this change as well.