[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] escaping of ampersands in latex array environment by latex exp
From: |
Sullivan, Gregory \(US SSA\) |
Subject: |
[Orgmode] escaping of ampersands in latex array environment by latex export |
Date: |
Tue, 16 Sep 2008 15:39:27 -0400 |
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)
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Orgmode] escaping of ampersands in latex array environment by latex export,
Sullivan, Gregory \(US SSA\) <=