From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sullivan, Gregory \(US SSA\)" Subject: escaping of ampersands in latex array environment by latex export Date: Tue, 16 Sep 2008 15:39:27 -0400 Message-ID: <73kku8$3tna0@dmzms99901.na.baesystems.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KfgOo-0003gN-9u for emacs-orgmode@gnu.org; Tue, 16 Sep 2008 15:39:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KfgOj-0003cv-Er for emacs-orgmode@gnu.org; Tue, 16 Sep 2008 15:39:45 -0400 Received: from [199.232.76.173] (port=43564 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfgOj-0003cn-8P for emacs-orgmode@gnu.org; Tue, 16 Sep 2008 15:39:41 -0400 Received: from dmzms99901.na.baesystems.com ([149.32.200.65]:48735) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KfgOi-0003i6-9x for emacs-orgmode@gnu.org; Tue, 16 Sep 2008 15:39:40 -0400 content-class: urn:content-classes:message List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org If I have in my .org file: \(\begin{array}{rclr} A & ::=3D & B & \\ & \mid & C & \\ D & ::=3D & E &=20 \mbox{(any value-returning expression)} \end{array}\) and I export as latex, the generated .tex file contains \(\begin{array}{rclr} A \& ::=3D \& B \& \\ \& \mid \& C \& \\ D \& ::=3D \& E \&=20 \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),=A0 978-430-3461 (cell) gregory.sullivan@baesystems.com=20