Skip to content
Discussion options

You must be logged in to vote

So I was able to solve this with an {{< include _settings.qmd >}} at the start of the document. In the _settings.qmd I would define the flag to add the \label command to my generated equation, while in the main qmd file I would instead have defaults that works well with the KaTeX extension.

This way when I render the quarto project the to produce the pdf output the code cell inside the _settings.qmd get executed, while when I'm just running code cell inside vscode to quickly preview the results, that code cell does not get executed leaving with the sensible defaults that KaTeX like.

I have my cake and can eat it too.

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

@mcanouil
Comment options

Comment options

You must be logged in to vote
1 reply
@mcanouil
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by kompre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
editors Issues with editing in text editors, IDEs, etc third-party Issues involving interaction with a third-party library jupyter vscode math any issue related to math support in specific formats
2 participants