From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Problems exporting simple LaTeX math to HTML
Date: Tue, 14 Feb 2017 15:13:16 -0500 [thread overview]
Message-ID: <878tp8edk3.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: 7DC5FCD4-4093-434F-9D79-62F906D7A91D@haas.berkeley.edu
Richard Stanton <stanton@haas.berkeley.edu> writes:
> [My apologies if this is a repeat. I tried posting this 4 days ago and didn’t see if appear on the list.]
>
> I created the following very simple org file:
>
> ————
>
> #+TITLE: *Math example*
>
> \[ w_j = \nu_j \prod_{l<j} (1-\nu_l), \]
>
>
> ————
>
> This exports to LaTeX fine, but when I export to HTML, the equation comes out as plain text
>
> <p>
> \[ w_j = \nu_j \prod_{l<j} (1-\nu_l), \]
> </p>
>
That's the way it should be if Mathjax is enabled (which it is by
default): Mathjax should then interpret that and print out a nicely
formatted equation when you view it in the browser. *However*, Mathjax
has a limitation with "<": one workaround is to surround the < with
spaces:
\[ w_j = \nu_j \prod_{l < j} (1-\nu_l), \]
See:
http://docs.mathjax.org/en/latest/tex.html#tex-and-latex-in-html-documents
--
Nick
next prev parent reply other threads:[~2017-02-14 20:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-14 19:44 Problems exporting simple LaTeX math to HTML Richard Stanton
2017-02-14 20:13 ` Nick Dokos [this message]
2017-02-14 20:24 ` Charles C. Berry
2017-02-14 21:35 ` Richard Stanton
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878tp8edk3.fsf@alphaville.usersys.redhat.com \
--to=ndokos@gmail.com \
--cc=emacs-orgmode@gnu.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).