Why are there two folders for typst templates? #10880
-
DescriptionIt looks like typst templates are loaded from either: based on this line: However, the template used is Furthermore, it seems with pandoc version 3.1.10, they changed to use jgm/pandoc@aa95770
9ec3879#diff-53e0614088564599b67ca6aa86818022213e6b282307ef1e299269b72679f4cdL2 What's the rational behind the complexity of two folders? Part 2When I use this to create a new extension, it creates an
It took me a while to figure out which templates are being used and how to get them copied into the right folder and referenced to get started with a fully custom template. Is there an option to the create extension command that copies all of the files into the folder? If not, it would be nice to have an example in the documentation. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I think you've mostly answered your own question, but just to confirm.
|
Beta Was this translation helpful? Give feedback.
-
Thanks for answering this question. I think this is good documentation for anyone wanting to understand how quarto works. |
Beta Was this translation helpful? Give feedback.
I think you've mostly answered your own question, but just to confirm.
The rationale is that the templates in
formats/typst/pandoc
are the original templates from the version of Pandoc we currently bundle (which may be behind the latest release of Pandoc). We copy them here for reference, in order to have something to diff against when we update Pandoc. They are not used directly by Quarto.The templates in
formats/typst/pandoc/quarto
are the ones actually used.We're right in the middle of a Pandoc update this week, so you may have discovered an update (
#blockquote
) we still need to make. (I think it will have no effect since this is effectively dead code.)There is yet another copy o…