From: a <schleija-vj2UJld5H2Nn68oJJulU0Q@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Maths in ebooks
Date: Thu, 15 Jan 2015 21:32:04 +0100 [thread overview]
Message-ID: <20150115203204.GB2131@jhs-think> (raw)
In-Reply-To: <20150115203001.GA10846-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
The simple pandoc epubs I generated and displayed on my old Hanvon
Reader and the Geeksphone looked just fine.
Even the math is ok. Sure I would prefer SVG math, but it was quite readable.
For plain text I don't see why the "pure ePub" is a problem.
On Thu, Jan 15, 2015 at 12:30:01PM -0800, John MacFarlane wrote:
> Seems to me it would not be hard to write a pandoc filter
> that did this. There's an example filter in the
> pandocfilters repository that converts tikz images in
> LaTeX to images. Something like that could work here too,
> only you'd match on 'Math' rather than 'RawBlock'.
>
> https://github.com/jgm/pandocfilters/blob/master/examples/tikz.py
>
> Filters can be written in Haskell or python (there are also
> libraries to facilitate writing them in php and perl).
>
>
> +++ Thomas Arildsen [Jan 15 15 00:59 ]:
> > 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.) 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.
> > My problem is just that the MathML looks quite horrible in comparison
> > to what LaTeX can usually produce in PDF etc.
> > A fall-back solution for me could be to render the maths bitmapped and
> > then include the images in the document. 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). 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? I
> > have no experience in hacking Pandoc.
> > Best regards,
> > Thomas Arildsen
> >
> > --
> > 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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To post to this group, send email to
> > [2]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To view this discussion on the web visit
> > [3]https://groups.google.com/d/msgid/pandoc-discuss/dfcf2e4b-b377-4d48-
> > be9f-de82088e7832%40googlegroups.com.
> > For more options, visit [4]https://groups.google.com/d/optout.
> >
> >References
> >
> > 1. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > 2. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> > 3. https://groups.google.com/d/msgid/pandoc-discuss/dfcf2e4b-b377-4d48-be9f-de82088e7832-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
> > 4. https://groups.google.com/d/optout
>
> --
> 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/20150115203001.GA10846%40protagoras.berkeley.edu.
> For more options, visit https://groups.google.com/d/optout.
next prev parent reply other threads:[~2015-01-15 20:32 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 [this message]
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
[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=20150115203204.GB2131@jhs-think \
--to=schleija-vj2ujld5h2nn68ojjulu0q@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).