public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Docbook writer, HTMLMathMethod MathJax
@ 2015-09-17 20:34 Benedikt Fluhr
  0 siblings, 0 replies; only message in thread
From: Benedikt Fluhr @ 2015-09-17 20:34 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

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

A minor change to Pandoc's source enables the Docbook writer to
recognize the HTMLMathMethod MathJax.
A Git bundle including the corresponding changeset (hereby released
under GPL v2) I send as an attachment. 
Since this is only useful, if Docbook is used as an intermediate format
for (X)HTML output, I wasn't sure about making any changes to the
documentation.
Here is an example for using this from the command line:

$ pandoc -s --mathjax -t docbook math.md -o math.db
$ xmlto xhtml -m config_mathjax.xsl math.db -o chunked_with_mathjax

(The files used in this example I send as attachements.)

Following Git's documentation I did the following to create a working
directory with the corresponding changes applied to the Docbook writer:

$ git clone https://github.com/jgm/pandoc.git
$ cd pandoc
$ git fetch ../docbook-writer_mathjax.bundle master:localRef
$ git checkout localRef

Best Wishes,
Ben



-- 
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/1442522051.985.22.camel%40bfluhr.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #2: chunked_with_mathjax.zip --]
[-- Type: application/zip, Size: 2005 bytes --]

[-- Attachment #3: config_mathjax.xsl --]
[-- Type: application/xslt+xml, Size: 616 bytes --]

[-- Attachment #4: math.db --]
[-- Type: application/x-docbook+xml, Size: 605 bytes --]

[-- Attachment #5: math.md --]
[-- Type: text/markdown, Size: 216 bytes --]

% Math

Numbers
=======

Given any natural number $n$ either $n$ or $n+1$ is even.

Calculus
========

Given a smooth function $f \colon [0, 1] \rightarrow \mathbb{R}$ we have
$$
f(1) - f(0) = \int_0^1 f'(x) dx .
$$

[-- Attachment #6: docbook-writer_mathjax.bundle --]
[-- Type: application/octet-stream, Size: 4300 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-09-17 20:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-17 20:34 Docbook writer, HTMLMathMethod MathJax Benedikt Fluhr

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).