From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: MACRO and HTML escapes and migration to org-mode 8 Date: Tue, 02 Apr 2013 13:33:44 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMzRf-0004vB-Gp for emacs-orgmode@gnu.org; Tue, 02 Apr 2013 07:32:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UMzRa-0005LE-Ih for emacs-orgmode@gnu.org; Tue, 02 Apr 2013 07:32:07 -0400 Received: from mail2.b1.hitrost.net ([91.185.211.205]:30709) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMzRa-0005Kx-BN for emacs-orgmode@gnu.org; Tue, 02 Apr 2013 07:32:02 -0400 In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Adrian Cc: emacs-orgmode@gnu.org Hi, Adrian, The fine manual is not yet up to date with the new exporter, so when you're bitten, check http://orgmode.org/worg/org-8.0.html. The "@" html-tag quoting has been replaced with a generalized "export snippets" syntax (currently described at http://orgmode.org/worg/org-8.0.html#sec-8-1). This works: #+MACRO: datetime @@html:$2@@ Yours, Christian Adrian writes: > I've finally bitten the bullet and tried to get my org-mode export > working with the new export mechanisms, so far so good. > > My current sticking point is with my use of #+MACRO and "@" escapes in > them -- they used to work in the old version of org-mode, in the current > one I get them quoted verbatim into the HTML output with text like > > @<span blah blah >text@</span> > > I must be missing the key part of TFM, since section 12.5.3 seems to say > that "@" still escapes simple HTML tags. I've got a header file that > includes the line: > > #+MACRO: datetime @$2@ > > This is then included in the org-mode files with > > #+SETUPFILE: ~/path/macros.inc > > Then in the text I have entries such as > {{{datetime(2013-04-01,yesterday)}}} -- and it all used to work.