From: Andreas Leha <andreas.leha@med.uni-goettingen.de>
To: emacs-orgmode@gnu.org
Subject: BUG: preview latex with split environment
Date: Tue, 28 Oct 2014 15:02:17 +0000 [thread overview]
Message-ID: <olusii8jkzq.fsf@med.uni-goettingen.de> (raw)
Hi all,
I encounter a BUG with org-toggle-latex-fragment on an equation that
uses amsmath's split environment.
(Exporting of the document works fine.)
The problem is that the \begin{equation},\end{equation} get stripped of
the temporary tex file.
Here is some test doc
--8<---------------cut here---------------start------------->8---
#+TITLE: Test amsmath's split
* Some equation
with some split expression, e.g.
\begin{equation}
\begin{split}
w \cdot x + b &= 1, \text{ and}\\
w \cdot x + b &= -1
\end{split}
\end{equation}
To reproduce try to org-toggle-latex-fragment (C-c C-x C-l) on that
latex expression.
Export of this works fine.
--8<---------------cut here---------------end--------------->8---
which results in this /tmp/foobar.tex document (relevant parts shown):
--8<---------------cut here---------------start------------->8---
\begin{document}
\definecolor{fg}{rgb}{0.996109,0.996109,0.996109}
\definecolor{bg}{rgb}{0.197269,0.197269,0.197269}
\pagecolor{bg}
{\color{fg}
\begin{split}
w \cdot x + b &= 1, \text{ and}\\
w \cdot x + b &= -1
\end{split}
}
\end{document}
--8<---------------cut here---------------end--------------->8---
The compilation of that results in
,----
| ERROR: Package amsmath Error: \begin{split} won't work here.
| ...
| \Did you forget a preceding \begin{equation}?
`----
Regards,
Andreas
next reply other threads:[~2014-10-28 15:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-28 15:02 Andreas Leha [this message]
2014-10-28 15:23 ` BUG: preview latex with split environment Rasmus
2014-10-28 17:42 ` Andreas Leha
2014-10-28 22:58 ` Nicolas Goaziou
2014-10-29 10:12 ` Andreas Leha
-- strict thread matches above, loose matches on Subject: below --
2016-04-10 19:51 Varius Various
2016-04-10 23:05 ` Varius Various
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=olusii8jkzq.fsf@med.uni-goettingen.de \
--to=andreas.leha@med.uni-goettingen.de \
--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 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.