-
DescriptionI am trying to define a custom format In another discussion (#2845) the result was that the best way to include macros for Pandoc processing was to use an include shortcode, {{< include math-definitions.tex >}} If I include the file in my custom format, the correct shortcode would be {{< include _extensions/document/math-definitions.tex >}} However, I have not been able to figure out how to configure my custom format to include this snippet of text at the beginning of the Markdown source before it is being processed by Quarto (so that the shortcode actually works)? As an alternative, previously in pure Pandoc I defined a format using a defaults file including the line contributes:
formats:
html:
input-file: math-definitions.tex When I process a Quarto document using this custom format, Quarto says
Which suggests that the option from my What am I doing wrong? Is there a way to achieve what I want? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Figured it out. Apparently, contributes:
formats:
html:
defaults: math-definitions.yaml and include in the format a file input-file: _extensions/document/math-definitions.tex |
Beta Was this translation helpful? Give feedback.
Figured it out.
Apparently,
input-file:
is not passed on to Pandoc by Quarto, butdefaults:
is. I can therefore in my custom format definition writeand include in the format a file
math-definitions.yaml
which contains