From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: How to export the ampersand (&) symbol correctly for both LaTeX and HTML documents? Date: Thu, 23 Dec 2010 12:35:43 -0500 Message-ID: <8762ukwfww.fsf@norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=48033 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVp51-0000cK-Ch for emacs-orgmode@gnu.org; Thu, 23 Dec 2010 12:35:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PVp4z-0007G7-Fg for emacs-orgmode@gnu.org; Thu, 23 Dec 2010 12:35:55 -0500 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:55964) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PVp4z-0007EY-Cp for emacs-orgmode@gnu.org; Thu, 23 Dec 2010 12:35:53 -0500 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: "Kyeong Soo (Joseph) Kim" Cc: emacs-orgmode@gnu.org "Kyeong Soo (Joseph) Kim" writes: > This may be a FAQ, but I couldn't find it mentioned either in the Manual or in the mailing list. > > To use the ampersand symbol ('&') in HTML export, I use "\amp" per the manual and the "Publishing > Org-mode files to HTML" tutorial at Worg site. Later, however, I found that the "\amp" is exported > to "$\amp$" in LaTeX, which causes a compile error (i.e., "undefined control sequence"); it should > be "\&" in a normal TeX/LaTeX document. > > I'm currently using 6.33x version of Org-mode with GNU Emacs 23.2.1 on Windows 7. > > Any guidance on this issue would be greatly appreciated. Guidance: Upgrade your version of org-mode. Exporting the following subtree to HTML works for me ,----[ test.org ] | * Export test for ampersand | This & that is cool. | This \amp that. `---- ,----[ test.html ] | ... |

Export test for ampersand

| |

This & that is cool. | This & that. |

|

Author: Bernt Hansen |

| ... `---- My version of org-mode is Org-mode version 7.4 (release_7.4.89.g4ed00.dirty) HTH, Bernt