How is the quoted segment of the manual above not be to understood as meaning that TeX math it will appear in LaTeX output as verbatim between $ characters, as opposed to verbatim between \(...\) ?

On Sunday, 24 June 2018 01:59:42 UTC+2, Kolen Cheung wrote:

The text you quote concern what’s between the dollar sign, not the sign itself.

In LaTeX, it is often recommended to use \(...\) and \[...\] instead of the TeX $...$ and $$...$$. See [math mode - What are the differences between $$, \, align, equation and displaymath? - TeX - LaTeX Stack Exchange for example.,

On Saturday, June 23, 2018 at 7:56:54 AM UTC-7, Gandalf Saxe wrote:

Manual says:


TeX math will be printed in all output formats. How it is rendered depends on the output format:

Markdown, LaTeX, Emacs Org mode, ConTeXt, ZimWiki
It will appear verbatim between $ characters.

However converting inline math `$...

The text you quote concern what’s between the dollar sign, not the sign itself.

In LaTeX, it is often recommended to use \(...\) and \[...\] instead of the TeX $...$ and $$...$$. See [math mode - What are the differences between $$, \, align, equation and displaymath? - TeX - LaTeX Stack Exchange for example.,

On Saturday, June 23, 2018 at 7:56:54 AM UTC-7, Gandalf Saxe wrote:

from markdown to LaTeX, converts it to `\(...\)` syntax. Am I misunderstanding the manual or should this be updated?


Example .md input:
`This is a simple inline $e=mc^2$  math.`

Example command:
`pandoc test.md -o test.tex`

Example .tex output:
`This is a simple inline \(e=mc^2\) math.`

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/1d533971-4ee9-4fea-a27e-61b1f0acbd25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.