go-org-orgwiki/org/testdata/latex.pretty_org
Niklas Fasching 1849701ba7 Add support for latex blocks / environments
current support for latex fragments was inline only, i.e. lines containing block
elements (e.g. a line starting with `* `, i.e. a headline) will not be parsed
as part of the latex fragment but the respective block element. Parsing latex
blocks at the block level should fix that. Note that in any case we don't do
any processing and just emit the raw latex (leaving the rendering to e.g. js).
2022-11-02 14:16:57 +01:00

18 lines
534 B
Text

without latex delimiters the =_{i=1}= in =\sum_{i=1}^n a_n= is interpreted as subscript.
we support =\(...\)=, =\[...\]=, =$$...$$= and =\begin{$env}...\end{$env}= as latex fragment delimiters.
- \sum_{i=1}^n a_n (without latex delimiter)
- \(\sum_{i=1}^n a_n\)
- \[\sum_{i=1}^n a_n\]
- $$\sum_{i=1}^n a_n$$
- \begin{xyz}\sum_{i=1}^n a_n\end{xyz}
- \begin{xyz}
\sum_{i=1}^n a_n
\end{xyz}
- $2 + 2$, $3 - 3$
- \begin{xyz}
latex block ignores block lvl elements (e.g. list - line starting with -)
a = b
- c
- d
\end{xyz}