![](https://secure.gravatar.com/avatar/946accc6e24c43fe03ca8184736b063f.jpg?s=120&d=mm&r=g)
Am 24.06.2011 01:23, schrieb Aditya Mahajan:
On Thu, 23 Jun 2011, yoraxe wrote:
Am 23.06.2011 18:30, schrieb Aditya Mahajan:
On Thu, 23 Jun 2011, yoraxe wrote:
How can I use math-mode in such a table? Using $a_b$ it just prints $a_b$ instead of identifying this as a math-input.
I'm using pandoc 1.8.1.1 and context 2011.06.19.
Can you give a complete minimal example?
Find all files attached. I see, it is the line
\NC \$a\letterunderscore{}b\$
that is not correctly translated. What do I have to type instead of _?
It seems that pandoc's rst reader does not handle inline mathematics (at least with pandoc 1.6; I don't know if Pandoc 1.8 fixes this).
$echo "\$a_b\$" | pandoc -f rst -t native
Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []}) [ Para [Str "$",Str "a",Str "_",Str "b",Str "$"] ]
In contrast, markdown reader handles inline mathematics correctly.
$echo "\$a_b\$" | pandoc -f markdown -t native
Pandoc (Meta {docTitle = [], docAuthors = [], docDate = []}) [ Para [Math InlineMath "a_b"] ]
So, it would be better to discuss this on the pandoc mailing list.
Ok, thanks. I'm using now markdown instead of rest. If someone is interested, it looks fine using: \usemodule[filter] \defineexternalfilter[markdown][filtercommand={pandoc -f markdown -t context -o \externalfilteroutputfile\space \externalfilterinputfile}] \starttext \startmarkdown Right Left Center Default ------- ------ ---------- ------- $h_1$ 12 12 12 123 123 123 123 1 1 1 1 \stopmarkdown \stoptext Sorry for the noise. Yoraxe