From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Limit on macro snippet size? Date: Mon, 14 Sep 2015 22:03:37 +0200 Message-ID: <20150914200337.GA30959@chitra.no-ip.org> References: <20150914170120.GF2932@chitra.no-ip.org> <20150914174024.GI2932@chitra.no-ip.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbZzJ-0004mY-SY for emacs-orgmode@gnu.org; Mon, 14 Sep 2015 16:04:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbZzF-00015M-Sz for emacs-orgmode@gnu.org; Mon, 14 Sep 2015 16:04:29 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:34062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbZzF-00015C-Na for emacs-orgmode@gnu.org; Mon, 14 Sep 2015 16:04:25 -0400 Received: by wicfx3 with SMTP id fx3so919064wic.1 for ; Mon, 14 Sep 2015 13:03:40 -0700 (PDT) Received: from chitra.no-ip.org (5072840E.static.ziggozakelijk.nl. [80.114.132.14]) by smtp.gmail.com with ESMTPSA id f17sm17249778wjn.38.2015.09.14.13.03.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Sep 2015 13:03:38 -0700 (PDT) Content-Disposition: inline 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: emacs-orgmode@gnu.org On Mon, Sep 14, 2015 at 08:49:17AM -1000, Thomas S. Dye wrote: > 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. Sorry, I have a shortcut for latex snippets to l. Try replacing the l with latex: #+macro: green @@latex:\textcolor{PaleGreen4}{@@$1@@latex:}@@ -- Suvayu Open source is the future. It sets us free.