From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Custom environment for LaTeX export Date: Mon, 11 Aug 2014 11:24:30 +0200 Message-ID: <20140811092430.GB2336@chitra.no-ip.org> References: <87y4vytg5r.fsf@free.fr> <86k36xedt9.fsf@somewhere.org> <877g2gvni9.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGlqE-0001ax-MI for emacs-orgmode@gnu.org; Mon, 11 Aug 2014 05:24:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XGlqD-0000qp-Uc for emacs-orgmode@gnu.org; Mon, 11 Aug 2014 05:24:34 -0400 Received: from mail-wg0-x22d.google.com ([2a00:1450:400c:c00::22d]:65374) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XGlqD-0000ql-NR for emacs-orgmode@gnu.org; Mon, 11 Aug 2014 05:24:33 -0400 Received: by mail-wg0-f45.google.com with SMTP id x12so8141432wgg.4 for ; Mon, 11 Aug 2014 02:24:33 -0700 (PDT) Received: from chitra.no-ip.org ([2001:610:120:3001:2ad2:44ff:fe4a:b029]) by mx.google.com with ESMTPSA id ek3sm103510wjd.17.2014.08.11.02.24.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Aug 2014 02:24:32 -0700 (PDT) Content-Disposition: inline In-Reply-To: <877g2gvni9.fsf@free.fr> 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 Sun, Aug 10, 2014 at 08:59:10AM +0200, Julien Cubizolles wrote: > > > Sebastien Vauban > writes: > > > > Throwing an idea here: make the `consequence' environment be a no-op in Beamer? > > How would I do that, is there a variable excluding some environments ? I'm guessing Seb's idea could be implemented by redefining the consequence environment when in beamer, leave it alone otherwise. However, I would like to suggest something a bit different. Why not instead of #+BEGIN_consequence, you use a macro. Something like this: #+MACRO: cbeg @@latex:\begin{consequence}@@ #+MACRO: cend @@latex:\end{consequence}@@ Then you can do: {{{cbeg}}} stuff {{{cend}}} and only LaTeX export will have the environment. Hope this helps, -- Suvayu Open source is the future. It sets us free.