From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas S. Dye Subject: Re: Limit on macro snippet size? Date: Mon, 14 Sep 2015 08:49:17 -1000 Message-ID: References: <20150914170120.GF2932@chitra.no-ip.org> <20150914174024.GI2932@chitra.no-ip.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbYov-0004Au-JX for emacs-orgmode@gnu.org; Mon, 14 Sep 2015 14:49:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbYos-00038g-Es for emacs-orgmode@gnu.org; Mon, 14 Sep 2015 14:49:41 -0400 Received: from gproxy8-pub.mail.unifiedlayer.com ([67.222.33.93]:53244) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ZbYos-00038C-5f for emacs-orgmode@gnu.org; Mon, 14 Sep 2015 14:49:38 -0400 In-reply-to: <20150914174024.GI2932@chitra.no-ip.org> 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: Suvayu Ali Cc: emacs-orgmode@gnu.org Hi Suvayu, Suvayu Ali writes: > Hey Tom, > > On Mon, Sep 14, 2015 at 07:34:39AM -1000, Thomas S. Dye wrote: >> Suvayu Ali writes: >> >> > show it actually works. How does the failure happen, what do you see in >> > the exported file? >> >> \textcolor{PaleGreen4}\{the only weapons they had were a >> few stones in some of the Canoes and these they threw overboard >> when they found they were not wanted\}. >> >> Note the curly brackets are escaped. Not sure why ... > > Easy-peasy! Org recognises the first {..} as part of a latex command, > not the later. You need snippets. I always use them to make export > more robust. Try this: > > #+macro: green @@l:\textcolor{PaleGreen4}{@@$1@@l:}@@ This doesn't work for me. The latex output isn't marked up, but the text passed to $1 appears in the tex file. All the best, Tom -- Thomas S. Dye http://www.tsdye.com