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

Date #97

Open dhagmann opened 3 weeks ago

dhagmann commented 3 weeks ago

Would it be possible to add a date option? Although that is not consistent with APA 7 format, it's really useful for distinguishing different versions of preprints.

wjschne commented 3 weeks ago

Where would you want the date to appear?

dhagmann commented 3 weeks ago

I would put it centered below the affiliations and above the author note, in the format of "November 1, 2024".

wjschne commented 2 weeks ago

I have added a draft-date option to the example.qmd file. If false, it does nothing. If true, it will return today's date. If it is text, it will return the text (e.g., a date other than today).

The feature works in docx, html, and typst, but not pdf. The pdf version is not entirely under my control. It is formatted primarily by the apa7 LaTeX package, and it adheres to APA 7 style very strictly. We might be able to trick the apa7 package into inserting the date elsewhere (e.g., below the author note or after the keywords),

I will not document the feature until I know that the implementation is what you had in mind. Let me know.

dhagmann commented 2 weeks ago

That's perfect, thank you!

For the PDF, would the "Note" field be a good placement option (displaying above the "Authornote")? That's where I put it when I used Rmarkdown and the papaja package. But I don't know if apaquarto already uses that field.