From: Albert Krewinkel <albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: math2svg Lua filter now available!
Date: Mon, 18 Jan 2021 11:06:59 +0100 [thread overview]
Message-ID: <87im7ud0e4.fsf@zeitkraut.de> (raw)
In-Reply-To: <04d0e359-5cab-4e1f-a2b4-0b4a20912fa7n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Attempting an answer:
The main difference is Haskell vs. Lua filter, i.e. Serge's filter can
be used without having a Haskell stack installed. It is also very
configurable, allowing, e.g., to chose the font and SVG image properties
via metadata settings.
The filter by jgm has a cache to avoid repeated rendering of the same
images. It thereby might be faster when rendering both display and
inline math, as inline math often contains single variables like $x$.
PRs to add this to the Lua version would be welcome.
Serge's README also provides CSS snippets to number equations; this
might be of interest no matter which filter is used.
For reference, the filter by jgm is here:
https://github.com/jgm/pandoc-tex2svg
christi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <christian.kolen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> What's the difference with jgm's similar package?
>
> On Saturday, January 16, 2021 at 12:42:07 PM UTC-8 stoo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
>
> This is to inform the Pandoc community that the math2svg Lua filter is now available from:
> https://github.com/pandoc/lua-filters/tree/master/math2svg
>
> math2svg converts LaTeX math to MathJax generated scalable vector graphics (SVG) for insertion into the output document in a
> standalone manner. SVG output is in any of the available MathJax fonts.
>
> This is useful when a CSS paged media engine (such as Prince XML) cannot process complex JavaScript as required by MathJax. See:
> https://www.print-css.rocks for information about CSS paged media, a W3C standard.
>
> No Internet connection is required when generating or viewing SVG formulas, resulting in both absolute privacy and offline, standalone
> robustness.
>
> Personally, I have been using it for quite some time to generate PDFs with MathJax generated formulas in an unattended typesetting
> workflow using Prince XML.
>
> Here is a brief sample document:
> https://hamwaves.com/zc.measuring/en/zc.measuring.letter.pdf
>
> More intricate documents with Markdown source, makefile and CSS are available from the same web site.
>
> Kind regards,
> Serge Y. Stroobandt
--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124
next prev parent reply other threads:[~2021-01-18 10:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-16 20:42 Serf Stoorband
[not found] ` <5bcd2b35-8e92-4c98-9768-ba498c97383eo-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-01-17 21:43 ` christi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
[not found] ` <04d0e359-5cab-4e1f-a2b4-0b4a20912fa7n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-01-18 10:06 ` Albert Krewinkel [this message]
[not found] ` <87im7ud0e4.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2021-01-19 8:31 ` Serf Stoorband
[not found] ` <84ea71c1-1051-4bca-9aa9-dcfc82b81bfcn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-01-19 9:22 ` Albert Krewinkel
[not found] ` <87ft2xcmcx.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-11-08 11:53 ` Randolph M. Fritz
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=87im7ud0e4.fsf@zeitkraut.de \
--to=albert+pandoc-9eawchwdxg8hfhg+jk9f0w@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).