From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uriel Avalos Subject: Re: Insert ampersand in HTML export? Date: Fri, 11 Feb 2011 11:48:31 -0500 Message-ID: <937.506676609878$1297443011@news.gmane.org> References: <20110210152542.26383056amscopub-mail@yahoo.com@dove.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=44160 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PnwAo-0003CG-Ty for emacs-orgmode@gnu.org; Fri, 11 Feb 2011 11:48:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PnwAn-0007il-Mg for emacs-orgmode@gnu.org; Fri, 11 Feb 2011 11:48:46 -0500 Received: from smtp104.prem.mail.sp1.yahoo.com ([98.136.44.59]:20625) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PnwAn-0007iZ-DW for emacs-orgmode@gnu.org; Fri, 11 Feb 2011 11:48:45 -0500 In-Reply-To: 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: Carsten Dominik , emacs On Fri, 11 Feb 2011 09:34:08 +0100 Carsten Dominik wrote: > > On Feb 10, 2011, at 9:25 PM, Uriel Avalos wrote: > > > How do you insert the actual & character in an HTML export? > > > > I'm trying to write a macro to insert a MATHML snippet but org-mode > > converts & to &. > > > > How can I prevent that behavior? > > Hi Uriel, > > do you really want everyone here to construct their own test case for > this? > > Please provide an example file with the macro definition and its > use to make it as easy as possible for someone to try it out and fix it. > > Thanks > > - Carsten > Look, there isn't really a "test" case. I'm just asking if this feature is available. The docs just say that & exports to & in HTML export and \$ in latex export. I'm asking if there's a way to disable that feature on a case-by-case basis i.e., I want & to export to & in HTML export for some situations. Hope that's clear enough. Here's a test macro: #+MACRO: ANG @@@&x2220;@@$1@@@/math> This should be "angle $1". The MATML snippet works fine in a HTML file in firefox linux but the macro does not. I get this in the HTML export: & #x2220; ... & gets incorrectly converted to &