MyST-NB
MyST-NB copied to clipboard
Add {toggle} directive handling for latex and latexpdf
Describe the solution you'd like
We need to add pdf handling for toggle directive for parity with html
writer.
It will need to be decided how to represent the toggle directive in pdf
format. An alternative would be not to support it as an incompatible document feature for static pdf
files
https://beta.jupyterbook.org/use/hiding.html?highlight=toggle#hide-markdown-using-myst-markdown
We could always just have this show up as a "container" would in PDF outputs...
So, we will just need visit
, depart
methods in latex translator for the toggle to behave like a container