go-org-orgwiki/org/testdata/latex.org
Niklas Fasching 115a8b9c1b Fix latex fragment parsing
delimiters are not always 2 in length - $ being the exception. Also we have to
make sure to handle both $ and $$ delimiters.

Not proud of this solution but can't think of anything simpler right now - will
come back to this later hopefully.
2020-01-20 18:47:26 +01:00

412 B

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.

  • 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$