Closed nthiery closed 2 months ago
Related to #714.
For information, in case this can be useful to others (@alanlujan91?): I cooked myself a quick and (very) dirty latexonly extension for my urgent needs:
Beware:
myst.yml
for my latex export which loads this extension.$
.This now working with the {raw:tex}
directive and role, which can be used to insert raw latex code that is not parsed.
An example: https://github.com/executablebooks/mystmd/blob/main/packages/mystmd/tests/raw/index.md#L6
Yeah! Thank you!
One of the (few) remaining reasons to produce LaTeX/PDF exports is when fine-tuning of the layout is required for printing.
Proposal
Provide a
latexonly
role that inserts its content verbatim in the produced LaTeX exports, and is ignored by all other exporters.Example:
A use case
I print my exercise sheets for 250 students. I typically end up tuning the layout by inserting vertical skips, page breaks, page enlargements, so that exercises don't get split across pages for readability, while optimizing page numbers (a one page gain saves one package of paper!). As I am switching my sheets from latex to MyST, I would like to keep that ability.
Fun fact
I am currently desperate enough to hijack in my latex template
<s></s>
to insert page breaks and<i></i>
to insert vertical spacing :-)