all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* MathJax SVG
@ 2014-06-27 15:11 John Tait
  2014-06-27 15:58 ` Nick Dokos
  0 siblings, 1 reply; 3+ messages in thread
From: John Tait @ 2014-06-27 15:11 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi

I'd like to use org-mode and MathJax to produce maths in SVG format.

MathJax's CSS maths is wonderful but I need SVG for a specific purpose
(printing).

If I have a simple file like below, can I configure MathJax to render SVG?

Thanks

John



#+TITLE: Maths test

#+LATEX_HEADER: \usepackage{amsmath}

#+TEX

$$\begin{matrix}
  a & b & c \\
  d & e & f \\
  g & h & i
 \end{matrix}$$

#+END_TEX

[-- Attachment #2: Type: text/html, Size: 802 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: MathJax SVG
  2014-06-27 15:11 John Tait
@ 2014-06-27 15:58 ` Nick Dokos
  0 siblings, 0 replies; 3+ messages in thread
From: Nick Dokos @ 2014-06-27 15:58 UTC (permalink / raw)
  To: emacs-orgmode

John Tait <johngtait@gmail.com> writes:

> Hi
>
> I'd like to use org-mode and MathJax to produce maths in SVG format. 
>
> MathJax's CSS maths is wonderful but I need SVG for a specific purpose (printing).
>
> If I have a simple file like below, can I configure MathJax to render SVG?
>

Haven't tried but does

http://docs.mathjax.org/en/latest/options/SVG.html

help?

> Thanks
>
> John
>
> #+TITLE: Maths test
>
> #+LATEX_HEADER: \usepackage{amsmath}
>
> #+TEX
>
> $$\begin{matrix}
>   a & b & c \\
>   d & e & f \\
>   g & h & i
>  \end{matrix}$$
>
> #+END_TEX

You'll need to fix the example a bit though: #+begin/end_latex.
I would also recommend \[ and \] for display math delimiters: double
dollar signs should not be used.

Nick

^ permalink raw reply	[flat|nested] 3+ messages in thread

* MathJax SVG
@ 2014-06-27 16:14 John Tait
  0 siblings, 0 replies; 3+ messages in thread
From: John Tait @ 2014-06-27 16:14 UTC (permalink / raw)
  To: emacs-orgmode

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

I'm been trying this kind of thing, since
org-export-html-mathjax-options doesnt
have anything to configure.

I don't think this looks very right though.


#+LATEX_HEADER: \usepackage{amsmath}

#+MATHJAX: align:"left" mathml:t path:"C:\Users\JohnT\Desktop\mj\MathJax.js"

#+BEGIN_HTML

<script type="text/javascript"

 src="C:\Users\JohnT\Desktop\mj\MathJax.js?config=TeX-AMS-MML_SVG-full,"C:\Users\JohnT\Desktop\mj\config\TeX-AMS-MML_SVG-full.js">
</script>

<script type="text/javascript"

MathJax.Ajax.loadComplete("C:\Users\JohnT\Desktop\mj\config\TeX-AMS-MML_SVG-full.js");

</script>

#+END_HTML


#+TEX

$$\begin{matrix}
  a & b & c \\
  d & e & f \\
  g & h & i
 \end{matrix}$$

#+END_TEX

[-- Attachment #2: Type: text/html, Size: 1995 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-27 16:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-27 16:14 MathJax SVG John Tait
  -- strict thread matches above, loose matches on Subject: below --
2014-06-27 15:11 John Tait
2014-06-27 15:58 ` Nick Dokos

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.