From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Insert ampersand in HTML export? Date: Sat, 12 Feb 2011 15:13:32 +0100 Message-ID: <85398FB5-8210-46C9-A9E5-55F1EAF22A2E@gmail.com> References: <20110210152542.26383056amscopub-mail@yahoo.com@dove.localdomain> <20110211114831.2a53a9ffamscopub-mail@yahoo.com@dove.localdomain> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=46238 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PoGEG-00049v-0c for emacs-orgmode@gnu.org; Sat, 12 Feb 2011 09:13:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PoGED-000767-Mh for emacs-orgmode@gnu.org; Sat, 12 Feb 2011 09:13:39 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:58538) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PoGED-00075o-GW for emacs-orgmode@gnu.org; Sat, 12 Feb 2011 09:13:37 -0500 Received: by bwz16 with SMTP id 16so4051560bwz.0 for ; Sat, 12 Feb 2011 06:13:36 -0800 (PST) In-Reply-To: <20110211114831.2a53a9ffamscopub-mail@yahoo.com@dove.localdomain> 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: Uriel Avalos Cc: emacs Hi Uriel, On Feb 11, 2011, at 5:48 PM, Uriel Avalos wrote: > 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. But with a test line, it is soo much easier to understand what you are looking for even if your question itself might not be clear - as it was for me in this case. > 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 & Now I see, thank you for the example. Maybe you can use #+MACRO: ANG @@@ \angle @@$1@@@/ math> Org has a whole slew of special characters defined this way, and they translate correctly to both HTML and LaTeX. - Carsten