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: MathJax, equation environment/equation numbering
Date: Tue, 7 Nov 2017 22:30:15 -0800 (PST)	[thread overview]
Message-ID: <af595b38-64a7-48da-93cc-7babb3aa83fd@googlegroups.com> (raw)
In-Reply-To: <e25b580c-24bb-4b75-a9c7-5d6eb328d9f2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

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

Just to say a bit more, pandoc designed to work with not only multiple formats, but also multiple ways of handling Maths, where MathJax is only one such option. So while MathJax offers the functionality you and I need, pandoc cannot simply use them because it would only works when MathJax is used. Even worse, pandoc’s AST currently doesn’t have a way to handle equation no. as in LaTeX (but just a global numbering).

From my experience, currently the simplest solution to work around this, if you only need HTML+MathJax and LaTeX output, is to setup MathJax in the way described above.

There’s pandoc filter handling some kind of numbering, I doubt you’ll be interested in it, but if so, browse the pandoc-extra wiki on pandoc’s GitHub. I also wrote a pandoc-amsthm filter in the past, that allow uses of the LaTeX amsthm env. in pandoc (currently only HTML output only, but I am in the progress of generalizing it (although I’m busy so that progress is somewhat halted)).

-- 
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/af595b38-64a7-48da-93cc-7babb3aa83fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

      parent reply	other threads:[~2017-11-08  6:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-07 16:12 Clayton Hayes
     [not found] ` <e25b580c-24bb-4b75-a9c7-5d6eb328d9f2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-11-08  6:23   ` Kolen Cheung
2017-11-08  6:30   ` Kolen Cheung [this message]

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=af595b38-64a7-48da-93cc-7babb3aa83fd@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).