Thanks. I can confirm that enclosing in '$' works. In fact using \textsuperscript{2} also works in text mode. > $ pandoc -f markdown -t native \begin{tabular} 1 & $2^2$ \\ 2 & 3 \\ \end{tabular} ^D [RawBlock (Format "latex") "\\begin{tabular}\n1 & $2^2$ \\\\\n2 & 3 \\\\\n\\end{tabular}"] > $ pandoc -f markdown -t native \begin{tabular} 1 & 2\textsuperscript{2} \\ 2 & 3 \\ \end{tabular} ^D [RawBlock (Format "latex") "\\begin{tabular}\n1 & 2\\textsuperscript{2} \\\\\n2 & 3 \\\\\n\\end{tabular}"] On Tuesday, April 5, 2016 at 10:13:57 PM UTC+5:30, John MacFarlane wrote: > > `2^2` isn't legal LaTeX outside of math mode. Try `$2^2$`. > > +++ Mohammed Haris Minai [Apr 05 16 07:52 ]: > > Here is what I tried: > > Without superscript: > > > $ pandoc -f markdown -t native > > \begin{tabular} > > 1 & 2 \\ > > 2 & 3 \\ > > \end{tabular} > > ^D > > [RawBlock (Format "latex") "\\begin{tabular}\n1 & 2 \\\\\n2 & 3 > > \\\\\n\\end{tabular}"] > > With superscript: > > > $ pandoc -f markdown -t native > > \begin{tabular} > > 1 & 2^2 \\ > > 2 & 3 \\ > > \end{tabular} > > ^D > > [Para [Str "\\begin{tabular}",SoftBreak,Str "1",Space,Str > "&",Space,Str > > "2^2",Space,Str "\\",SoftBreak,Str "2",Space,Str "&",Space,Str > > "3",Space,Str "\\",SoftBreak,Str "\\end{tabular}"]] > > I was expecting a RawBlock (format "latex") for the second invocation > > as well. What am I doing wrong? > > > > -- > > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e808f198-ca65-472f-86ea-5e72d172a0bb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.