public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Kolen Cheung <christian.kolen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: LaTeX math converted to `\(...\)` not `$...$` - manual needs updating?
Date: Mon, 25 Jun 2018 12:01:17 -0700 (PDT)	[thread overview]
Message-ID: <90db846b-e36a-4794-97d6-9df3b7c02d69@googlegroups.com> (raw)
In-Reply-To: <da923768-e727-4724-a4ce-6a6b9314cf02-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1870 bytes --]

(In resonse to a private email) Also note that by using GFM, it doesn't "fix anything". If my guess is correct, it is because the GFM reader doesn't parse the math equation and hence leaving it as is. But, if you math equation contains anything that GFM parses (any markdown syntax), then you won't get a verbatim output in the LaTeX format.

In general, just embrace what the parser do (changing `$...$` to `\(...\)`). This is the recommended way to do things in LaTeX. We aren't targetting TeX but LaTeX, and unless you really want TeX primitives, stick with the LaTeX conventions and recommendations.

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, ZimWikiIt will appear verbatim between $ characters.
> 
> 
> However converting inline math `$...$` 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-/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/90db846b-e36a-4794-97d6-9df3b7c02d69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

  parent reply	other threads:[~2018-06-25 19:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-23 14:56 Gandalf Saxe
     [not found] ` <da923768-e727-4724-a4ce-6a6b9314cf02-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-06-23 23:59   ` Kolen Cheung
     [not found]     ` <5197fe46-e2aa-407c-9d4b-c0c7e49cf6a0-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-06-24 18:05       ` Gandalf Saxe
2018-06-24 11:02   ` John MacFarlane
     [not found]     ` <87r2kwsb0f.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2018-06-24 18:39       ` Gandalf Saxe
2018-06-25 19:01   ` Kolen Cheung [this message]
     [not found]     ` <90db846b-e36a-4794-97d6-9df3b7c02d69-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-06-25 20:58       ` Gandalf Saxe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=90db846b-e36a-4794-97d6-9df3b7c02d69@googlegroups.com \
    --to=christian.kolen-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).