From: "Sullivan, Gregory \(US SSA\)" <gregory.sullivan@baesystems.com>
To: emacs-orgmode@gnu.org
Subject: escaping of ampersands in latex array environment by latex export
Date: Tue, 16 Sep 2008 15:39:27 -0400 [thread overview]
Message-ID: <73kku8$3tna0@dmzms99901.na.baesystems.com> (raw)
If I have in my .org file:
\(\begin{array}{rclr}
A & ::= & B & \\
& \mid & C & \\
D & ::= & E &
\mbox{(any value-returning expression)}
\end{array}\)
and I export as latex, the generated .tex file contains
\(\begin{array}{rclr}
A \& ::= \& B \& \\
\& \mid \& C \& \\
D \& ::= \& E \&
\mbox{(any value-returning expression)}
\end{array}\)
The "&" characters should not be escaped.
Oddly enough, if I export to HTML, everything works fine (that is, the fragments are compiled by latex and turned into .png images).
Surrounding the block in #+BEGIN_LaTeX / #+END_LaTeX won't solve the problem, as the fragment no longer exports to html. I'd like to be able to export to both latex and html.
Any idea why the "&"s are being escaped? Is it because the latex export doesn't know that within an array environment &'s are special? Is there a way to turn off processing of &'s in array's?
I'm using org-mode version 6.06b
Thanks very much.
--Greg
--
Gregory T. Sullivan, Ph.D.
BAE Systems Advanced Information Technologies
6 New England Executive Park, Burlington, MA 01803
781-262-4553 (office), 978-430-3461 (cell)
gregory.sullivan@baesystems.com
reply other threads:[~2008-09-16 19:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='73kku8$3tna0@dmzms99901.na.baesystems.com' \
--to=gregory.sullivan@baesystems.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 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.