anammari / pandoc

Automatically exported from code.google.com/p/pandoc
GNU General Public License v2.0
0 stars 0 forks source link

\$ in Latex math formulas is recognized as end of math symbol #169

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It seems that pandoc only looks for a $ symbol which has no leading
whitespace to end a latex math environment (eg. $a = b + c$). 
When using an escaped dollar sign (\$) inside a math environment, the
environment is terminated. Pandoc should therefore look if the dollar sign
is escaped before closing the math environment.

`echo "This is a test: $a+b+\$=c$" |pandoc -tlatex` will produce 
`This is a test: +b+$=c$` where $a is skipped althogether

Original issue reported on code.google.com by thomas.m...@gmail.com on 10 Oct 2009 at 2:08

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r1609.

Original comment by fiddloso...@gmail.com on 12 Oct 2009 at 3:40

GoogleCodeExporter commented 8 years ago
Thanks for pointing this out.  (Note:  the reason $a is skipped in your test is 
that
your shell is interpreting it as an environment variable.  But the problem 
about \$
is genuine.)

Fixed in r1609.

Original comment by fiddloso...@gmail.com on 12 Oct 2009 at 3:43