emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problems exporting simple LaTeX math to HTML
@ 2017-02-14 19:44 Richard Stanton
  2017-02-14 20:13 ` Nick Dokos
  2017-02-14 20:24 ` Charles C. Berry
  0 siblings, 2 replies; 4+ messages in thread
From: Richard Stanton @ 2017-02-14 19:44 UTC (permalink / raw)
  To: emacs-orgmode

[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>

Am I missing something?

By the way, org-version gives

Org mode version 9.0.5 (9.0.5-elpa @ /Users/stanton/.emacs.d/elpa/org-20170210/)

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

* Re: Problems exporting simple LaTeX math to HTML
  2017-02-14 19:44 Problems exporting simple LaTeX math to HTML Richard Stanton
@ 2017-02-14 20:13 ` Nick Dokos
  2017-02-14 20:24 ` Charles C. Berry
  1 sibling, 0 replies; 4+ messages in thread
From: Nick Dokos @ 2017-02-14 20:13 UTC (permalink / raw)
  To: emacs-orgmode

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

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

* Re: Problems exporting simple LaTeX math to HTML
  2017-02-14 19:44 Problems exporting simple LaTeX math to HTML Richard Stanton
  2017-02-14 20:13 ` Nick Dokos
@ 2017-02-14 20:24 ` Charles C. Berry
  2017-02-14 21:35   ` Richard Stanton
  1 sibling, 1 reply; 4+ messages in thread
From: Charles C. Berry @ 2017-02-14 20:24 UTC (permalink / raw)
  To: Richard Stanton; +Cc: emacs-orgmode

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

On Tue, 14 Feb 2017, Richard Stanton wrote:

> [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

Seems like a bug.

To work around it, put a space between `<' and `j'.

HTH,

Chuck

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

* Re: Problems exporting simple LaTeX math to HTML
  2017-02-14 20:24 ` Charles C. Berry
@ 2017-02-14 21:35   ` Richard Stanton
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Stanton @ 2017-02-14 21:35 UTC (permalink / raw)
  To: Charles C. Berry; +Cc: emacs-orgmode

That works. Thanks.

> On Feb 14, 2017, at 12:24 PM, Charles C. Berry <ccberry@ucsd.edu> wrote:
> 
> On Tue, 14 Feb 2017, Richard Stanton wrote:
> 
>> [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
> 
> Seems like a bug.
> 
> To work around it, put a space between `<' and `j'.
> 
> HTH,
> 
> Chuck

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

end of thread, other threads:[~2017-02-14 21:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-14 19:44 Problems exporting simple LaTeX math to HTML Richard Stanton
2017-02-14 20:13 ` Nick Dokos
2017-02-14 20:24 ` Charles C. Berry
2017-02-14 21:35   ` Richard Stanton

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