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

[Bug]: apa_processed.docx #5

Closed SHogenboom closed 1 year ago

SHogenboom commented 1 year ago

Everytime I render a document I get an additional document called apa_processed.docx which contains only one page with the shorttitle in the header.

Perhaps this file needs to be removed again after all (pre-)processing has been completed?

wjschne commented 1 year ago

Yes, this is part of a hacky solution to the fact that Pandoc cannot change the header in the reference docx. I had to use the officer package to copy the pristine reference docx and insert a header. Let me see if I can delete the file after everything is rendered.

SHogenboom commented 1 year ago

I don’t mind hacky solutions if they work! So far I’ve enjoyed what you’ve been able to achieve greatly :)