-
First let me again express my thanks for quarto and the skill and dedication of its developers. It has made my life a lot easier. In working on a book at the repository https://github.com/JuliaMixedModels/EmbraceUncertainty I have been able to create HTML output but have problems with PDF related to LaTeX macros. An attempt to render the first chapter (intro.qmd) to PDF ends with
At the beginning of
and rendering to HTML is quite happy with that definition. I can't decide why the HTML rendering picks up this definition but the PDF doesn't. (I am using TinyTeX installed through If someone could point me in the right direction I am happy to do more debugging myself or create an MWE (you don't want to mess around with installing Julia and Julia packages and Jupyter, etc., just to debug this.) It's about time that I did more exploration of saving intermediates, freezing Jupyter results, etc. I just don't quite know where to start. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
What I think is happening here is that latex doesn't like You can see roughly what's going on by this minimal example:
Now, let's try to render this to a latex document (not a pdf document):
Note that the output here is now a latex file, which helps with debugging error messages:
Now look at the end of this file:
So one way to make this work is to use our format-specific hiding code:
This will generate the content you're expecting. |
Beta Was this translation helpful? Give feedback.
-
This worked fine for me to both PDF and html. I am also using TinyTex. Note since the command is latex not math, I don't have it defined in a math environment.
|
Beta Was this translation helpful? Give feedback.
This worked fine for me to both PDF and html. I am also using TinyTex. Note since the command is latex not math, I don't have it defined in a math environment.