Closed mic-wypych closed 1 year ago
Thanks! I rarely use the visual mode, so I would not have noticed for a long time. I fixed the error as you suggested.
Glad I could help! The visual mode is mainly useful for Zotero for me as I'm having trouble inserting citations in source editor.
Hi,
awsome resource!
I have a problem with rendering .docx files from visual mode. Once I switch to visual mode .docx file is rendered but when I try to open it word throws an error that it could not open the file. I can render pdf files without problems.
The way I'm getting the problem:
quarto use template wjschne/apaquarto
to create a new project and name it e.g.test_apa
test_apa.qmd
file. I do not change a single thing in the file. When I render from the source editor everything is fine and the .docx file opens nicely.Took me a day to find a possible reason. It seems to be a problem with how Appendix title is written. On line 291-292 of the template file there should be:
{{< pagebreak >}}
# Appendix
And switching to visual mode and back to source mode changes it to{{< pagebreak >}} \# Appendix
This results in an error when you try to open a .docx file rendered from visual mode. Adding an additional line between the pagebreak and appendix title solves the issue. I have no idea why rendering to pdf is not affected by this.
I hope this will save some people time if they run into a similar problem
Additional notes (maybe relevant):