-
Notifications
You must be signed in to change notification settings - Fork 0
divs to latex.py
Georgios Pappas Jr edited this page Jan 3, 2022
·
1 revision
Pandoc filter for adding LaTeX environment based on Pandoc-Markdown fenced block syntax.
This is a LaTeX/beamer specific filter that perform the following transformation:
-
Markdown
::::: mylatexenv text inside :::::
-
Rendered LaTeX
\begin{mylatexenv} text inside \end{mylatexenv}
Create a configuration in Markdown metadata block at the top of your source file:
---
div-env:
color: colorenv
mylatexenv: mylatexenv
...
NOTE: The file indentation is very important. Nest the div definitions inside the div-env entry
The transformation will only occur for defined div-env mappings!