* Mathjax and stmaryrd
@ 2010-12-26 17:52 Stefano Sabatini
2010-12-26 21:55 ` Christian Moe
0 siblings, 1 reply; 2+ messages in thread
From: Stefano Sabatini @ 2010-12-26 17:52 UTC (permalink / raw)
To: emacs-orgmode Mailing List
Hi,
I'm editing an org file, and I need to use stmaryrd package for
the embedded mathematics.
So I'm setting this:
#+LATEX_HEADER: \usepackage{stmaryrd}
#+LATEX_HEADER: \usepackage{amsmath}
which works just fine for the PDF/LaTeX rendering, but it's not
working with Mathjax/HTML rendering.
So I have two questions:
* is it possible to make the Mathjax engine recognize and render
stmaryrd symbols? (And in general: is it possible to enable a
latex package?)
* if the response to the previous question is positive, how can I make
org-mode tell to Mathjax which packages need to be enabled?
Using a very recent org from git:
(org-version) -> Org-mode version 7.4 (release_7.4.87.gf5bb.dirty)
Thanks for attention, org-mode rocks!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Mathjax and stmaryrd
2010-12-26 17:52 Mathjax and stmaryrd Stefano Sabatini
@ 2010-12-26 21:55 ` Christian Moe
0 siblings, 0 replies; 2+ messages in thread
From: Christian Moe @ 2010-12-26 21:55 UTC (permalink / raw)
To: emacs-orgmode Mailing List
On 12/26/10 6:52 PM, Stefano Sabatini wrote:
> Hi,
>
> I'm editing an org file, and I need to use stmaryrd package for
> the embedded mathematics.
>
> So I'm setting this:
> #+LATEX_HEADER: \usepackage{stmaryrd}
> #+LATEX_HEADER: \usepackage{amsmath}
>
> which works just fine for the PDF/LaTeX rendering, but it's not
> working with Mathjax/HTML rendering.
>
According to the MathJax documentation, the AMSmath package is
supported by an extension, but you may have to configure your MathJax
installation to enable it.
http://www.mathjax.org/resources/docs/?tex.html
I don't think there's any way for Org-mode to tell MathJax to do this.
If I understand the documentation, though, without configuration you
can still make MathJax enable AMSmath by using a math *environment*
defined by AMSmath, like \begin{smallmatrix} or \begin{subarray}.
Haven't tried it.
> So I have two questions:
> * is it possible to make the Mathjax engine recognize and render
> stmaryrd symbols? (And in general: is it possible to enable a
> latex package?)
FWIW, I believe the general answer is no. MathJax is not a LaTeX
installation. MathJax is implemented in JavaScript to render a subset
of LaTeX commands (math commands, not general typesetting) with HTML
and CSS. This subset does not include \input or \usepackage to load
LaTeX packages (.sty files). It does include \newcommand, so if a
macro you need can be defined with the macros already supported, that
might work. Otherwise a MathJax extension would need to be written,
and enabled in the MathJax configuration. If special fonts are needed
that are not provided with MathJax (that might be the case for
stmaryrd), you'd need to provide those too.
I'd get in touch with the MathJax developers if you need support for a
specific package.
Yours,
Christian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-26 21:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-26 17:52 Mathjax and stmaryrd Stefano Sabatini
2010-12-26 21:55 ` Christian Moe
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.