public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MACFARLANE <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: +tex_math_dollars, reveal and mathjax (Was: ANN: pandoc 2.0)
Date: Wed, 1 Nov 2017 18:03:31 -0700	[thread overview]
Message-ID: <20171102010331.GB33526@protagoras> (raw)
In-Reply-To: <0c564a8a-6006-59f5-2369-6da47483f070-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>

This probably has to do with

https://github.com/jgm/pandoc/issues/3743

We now use the reveal.js mathjax plugin.  And my guess is
that it, unlike the reveal.js configuration we use
for HTML, scans the whole document for $'s and treats
sections within $ as math.

Indeed, you can see this here:
https://github.com/hakimel/reveal.js/blob/master/plugin/math/math.js

     inlineMath: [['$','$'],['\\(','\\)']] ,

Unfortunately, this doesn't seem configurable!  In our
template we set some options, but the mathjax plugin's
loadScript inserts the tex2jax stuff regardless of the
options.

I'd like to find a good solution to this.  For your
purposes, you could modify the revealjs template so it
uses regular mathjax rather than the plugin (use the
HTML template to guide you).  Or just modify it to point
to a local version of the mathjax source, and modify
the math plugin in that version.


+++ Joseph Reagle [Nov 01 17 17:37 ]:
>I have long used +tex_math_dollars and used it for equations in my documents, especially slides.
>In the past the following escaping worked fine.
>
>```
>-  Get a writing and style manual, it's a worthwhile \$19 investment given the \$\$\$ you are paying for school.
>```
>
>This works fine in normal HTML, but it in reveal.js the rendering is broken:
>
><http://reagle.org/joseph/talks/edu/writing-feedback-rubric-composition.html#/tips-2>
>
>I am not sure what changed.
>
>How should I now escape dollar signs for rendering my reveal+mathjax?
>
>-- 
>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/0c564a8a-6006-59f5-2369-6da47483f070%40reagle.org.
>For more options, visit https://groups.google.com/d/optout.


  parent reply	other threads:[~2017-11-02  1:03 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-30  0:16 ANN: pandoc 2.0 John MacFarlane
     [not found] ` <CAFC_yuSfG7edXu1xWaO3_kzE_gt-CZbJdgtFADf_JyBYbECxOQ@mail.gmail.com>
     [not found]   ` <CAFC_yuQWhDrV1gvMC7ZfK6s4LUiPpc4LSNznPBatwpGG+NP5LQ@mail.gmail.com>
     [not found]     ` <CAFC_yuQWhDrV1gvMC7ZfK6s4LUiPpc4LSNznPBatwpGG+NP5LQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-10-30 10:23       ` BP Jonsson
     [not found]         ` <CAFC_yuSR6Z5qCgpfgV91CmhHRtbjQwpK5R0ji4qoFGRRkoD1Mg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-10-30 16:51           ` John MACFARLANE
2017-10-30 17:20           ` John MACFARLANE
     [not found] ` <20171030001651.GA74066-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2017-10-30  0:40   ` Kolen Cheung
     [not found]     ` <e31c9609-a808-4814-b20f-b4cf29016a7d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-10-30  1:27       ` Kolen Cheung
     [not found]         ` <55769679-aea7-4db6-a393-76022e45891e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-10-30  1:53           ` John MacFarlane
     [not found]             ` <20171030015351.GA81813-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2017-10-30  2:09               ` Kolen Cheung
2017-10-30  2:10   ` iandol
2017-10-30 19:42   ` Pablo Rodríguez
     [not found]     ` <fe571f1d-0d8a-de0f-2233-7b2328696333-S0/GAf8tV78@public.gmane.org>
2017-10-30 20:06       ` Kolen Cheung
2017-10-30 21:08       ` John MACFARLANE
2017-10-31 13:02   ` Philip Hodder
2017-11-01 20:12   ` Slide columns (Was: ANN: pandoc 2.0) Joseph Reagle
     [not found]     ` <2e57350e-2c6d-c2df-648d-342ee8db5a17-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
2017-11-01 21:37       ` +tex_math_dollars, reveal and mathjax " Joseph Reagle
     [not found]         ` <0c564a8a-6006-59f5-2369-6da47483f070-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
2017-11-02  1:03           ` John MACFARLANE [this message]
2017-11-02 11:40             ` Joseph Reagle
2017-11-02  1:05           ` John MACFARLANE
2017-11-01 22:03       ` --section-divs " Joseph Reagle
     [not found]         ` <4b0b5af6-08b9-1a6e-6a7c-b5ea4300e345-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
2017-11-02  0:51           ` John MACFARLANE
2017-11-02 17:32           ` Pablo Rodríguez
     [not found]             ` <a61dd93b-2c25-907d-d824-5ee7811163d8-S0/GAf8tV78@public.gmane.org>
2017-11-02 20:33               ` Joseph Reagle
2017-11-02  1:09       ` Slide columns " John MACFARLANE
2017-11-02 11:46         ` Joseph Reagle
     [not found]           ` <42635e48-5352-8446-a717-9f6059a4ad1a-T1oY19WcHSwdnm+yROfE0A@public.gmane.org>
2017-11-02 14:00             ` John Muccigrosso
2017-11-02 17:00             ` Joost Kremers
     [not found]               ` <8760asliou.fsf-97jfqw80gc6171pxa8y+qA@public.gmane.org>
2017-11-02 17:56                 ` Joseph Reagle
2017-11-02 14:15   ` ANN: pandoc 2.0 Conrad Cunningham
     [not found]     ` <c207be8c-8d7b-46c7-b2b9-17bb4533479d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-11-02 15:02       ` Philip Hodder
     [not found]         ` <691ef6f9-3f26-40cb-a86c-3745792ce12c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2017-11-02 15:06           ` Conrad Cunningham
2017-11-02 17:42       ` John MacFarlane
     [not found]         ` <20171102174219.GD33759-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2017-11-02 19:26           ` Conrad Cunningham
2018-01-09 17:06   ` John Muccigrosso
     [not found]     ` <026aceb1-fd4f-44a4-8539-91cd89584d58-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-01-09 17:52       ` John MacFarlane

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=20171102010331.GB33526@protagoras \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@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).