emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: LaTeX in HTML export [8.3.2 (release_8.3.2-380-g64aee4 @ /home/dominik/.emacs.d/org-mode/lisp/)]
@ 2015-12-11 13:45 Dominik Schrempf
  2015-12-11 14:58 ` Rasmus
  0 siblings, 1 reply; 4+ messages in thread
From: Dominik Schrempf @ 2015-12-11 13:45 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

I am trying to export a LaTeX code block into HTML and have a problem
when using lower (<) signs (maybe it also happens with greater signs but
I did not check that).

E.g., the following Org code leads to an error when viewing the HTML
file because the '<' sign is interpreted in a wrong way (I don't know
how but it seems to be interpreted as part of a tag) and MathJax does
not succeed then.

Org code:
#+BEGIN_SRC latex :results html
  \begin{equation}
    \text{if } 0<i<N
  \end{equation}
#+END_SRC

#+RESULTS:
#+BEGIN_HTML
\begin{equation}
  \text{if } 0<i<N
\end{equation}
#+END_HTML

I.e., the Firefox HTML syntax checker shows the line '\end{equation}...'
in red in the HTML file.

HTML code:
\begin{equation}
  \text{if } 0<i<N
\end{equation}</li>
</ul>

If I add spaces in-between, it works fine.
#+BEGIN_SRC latex :results html
  \begin{equation}
    \text{if } 0 < i < N
  \end{equation}
#+END_SRC

Best wishes,
Dominik

Emacs  : GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.6)
 of 2015-09-10 on foutrelis
Package: Org-mode version 8.3.2 (release_8.3.2-380-g64aee4 @ /home/dominik/.emacs.d/org-mode/lisp/)

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

end of thread, other threads:[~2015-12-11 17:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-11 13:45 Bug: LaTeX in HTML export [8.3.2 (release_8.3.2-380-g64aee4 @ /home/dominik/.emacs.d/org-mode/lisp/)] Dominik Schrempf
2015-12-11 14:58 ` Rasmus
2015-12-11 15:54   ` Dominik Schrempf
2015-12-11 17:42     ` Rasmus

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