Skip to content
Discussion options

You must be logged in to vote

Quarto CLI does not use the "template" form for docx, only the reference doc (when template is provided, it's mostly Pandoc that handles it)
Not sure template: YAML will pass on the template also for docx, as it would for all other formats, but you can try.

The template you are mentioning is Pandoc, find it on Pandoc: https://github.com/jgm/pandoc/blob/main/data/templates/default.openxml

edit: This works:

---
format:
  docx:
    template: template.xml
---

{{< lipsum 2 >}}

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@cderv
Comment options

@mcanouil
Comment options

Answer selected by julienmalik
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants