public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Raniere Silva <raniere-Xhq86aZylhRTIXuwt5Zssw@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Maths in ebooks
Date: Fri, 16 Jan 2015 00:11:44 -0200	[thread overview]
Message-ID: <20150116021144.GW19197@buriti.rgaiacs.com> (raw)
In-Reply-To: <dfcf2e4b-b377-4d48-be9f-de82088e7832-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

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

Hi Thomas,

Paulo Ney de Souza wrote a amazing reply for you. I just want to add some
points,

> I have been experimenting with including maths in ebooks (ultimately 
> because I would like to be able to publish my research as ebooks instead of 
> PDF which I think is suboptimal for tablets etc.)

I also do that in the past few months.

> One approach that sort of 
> works for me is converting from Markdown with LaTeX maths to ePub where I 
> can make Pandoc turn the maths into MathML.

I try this same approach and was a little unhappy due
https://github.com/jgm/pandoc/issues/1764.

> My problem is just that the 
> MathML looks quite horrible in comparison to what LaTeX can usually produce 
> in PDF etc.

MathML rendering tools isn't as good as LaTeX. Firefox/Gecko has the best
implementation so far. "Community WebKit" (e.g. used by [Epiphany]) and
"Apple Webkit" (e.g. used by Safari) have some basic support to MathML 
but Chromium/Chrome don't have neither Internet Explorer.

Most of the EPUB readers that support MathML use Gecko as rendering engine or
MathJax that requires Javascript enabled.

> A fall-back solution for me could be to render the maths bitmapped and then 
> include the images in the document.

This is the recommendation if you read EPUB specification.

> However, I recently figured out that 
> ePub seems to support SVG as well and it is actually possible to turn LaTeX 
> into SVG output (see e.g. http://dvisvg.sourceforge.net/ and 
> http://svgkit.sourceforge.net/SVGLaTeX.html).

That's true. Wikipedia does it.

> So far I have succeeded in 
> doing this quite manually, but I was wondering if it would be possible to 
> make Pandoc able to automate this conversion of math formulae into SVG with 
> subsequent inclusion of the SVG into the ePub?

LaTeX math or MathML to SVG isn't a easy task and also have the problem that
some rendering engine will not work as expected.

I don't know if you know [LaTeXML]. It convert LaTeX to HTML with support for
math as bitmapped, SVG and MathML. I will invite you to try using it.

Cheers,
Raniere

[Epiphany]: https://wiki.gnome.org/Apps/Web
[LaTeXML] https://github.com/brucemiller/LaTeXML/

-- 
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/20150116021144.GW19197%40buriti.rgaiacs.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  parent reply	other threads:[~2015-01-16  2:11 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-15  8:59 Thomas Arildsen
     [not found] ` <dfcf2e4b-b377-4d48-be9f-de82088e7832-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-01-15 17:51   ` Paulo Ney de Souza
     [not found]     ` <CAFVhNZPeDbtt+Tt3=8BYVX42XfFb=4RtaLGt29Ho-ik=QzeTSg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-15 21:29       ` Thomas Arildsen
     [not found]         ` <CAFQUsiZhZtAwzTDgUcpfOGkaP1gBSb5TRV+VeH0masuxq44QTA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-15 22:43           ` John MacFarlane
2015-01-15 20:30   ` John MacFarlane
     [not found]     ` <20150115203001.GA10846-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
2015-01-15 20:32       ` a
2015-01-15 21:24         ` Thomas Arildsen
     [not found]           ` <CAFQUsiZNNx=cMG9+Usrc5E=_sfN1Y7-3mF2Yv0OCmXdD4FJ0XA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-16  0:55             ` Beni Cherniavsky-Paskin
     [not found]               ` <CALJxei+TNrf+LGZTOQF_KKN+fYjBXxJyS51y1wYSyf2pQxQ19w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-16  5:10                 ` Paulo Ney de Souza
2015-01-16  2:23             ` Raniere Silva
2015-01-16  2:17         ` Raniere Silva
     [not found]           ` <20150116021752.GX19197-j/q8TITqDDESy/uc2pLa89BPR1lH4CV8@public.gmane.org>
2015-01-16  5:24             ` Paulo Ney de Souza
2015-01-16  5:32         ` Paulo Ney de Souza
2015-01-15 21:24       ` Thomas Arildsen
     [not found]         ` <CAFQUsibyf8muK86Y5Ozj+9PfVBRgt-EAkjDAfU=4gy-wJ4e8mA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-16  6:13           ` Paulo Ney de Souza
2015-01-16  2:11   ` Raniere Silva [this message]
     [not found]     ` <20150116021144.GW19197-j/q8TITqDDESy/uc2pLa89BPR1lH4CV8@public.gmane.org>
2015-01-16  5:08       ` Paulo Ney de Souza
2015-01-16  6:13       ` 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=20150116021144.GW19197@buriti.rgaiacs.com \
    --to=raniere-xhq86azylhrtixuwt5zssw@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).