From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: Re: Custom environment for LaTeX export Date: Thu, 14 Aug 2014 17:03:58 +0200 Message-ID: <86vbpv6rkx.fsf@somewhere.org> References: <87y4vytg5r.fsf@free.fr> <86k36xedt9.fsf@somewhere.org> <877g2gvni9.fsf@free.fr> <20140811092430.GB2336@chitra.no-ip.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hello Suvayu, Suvayu Ali wrote: > I'm guessing Seb's idea could be implemented by redefining the > consequence environment when in beamer, leave it alone otherwise. Exactly. > 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. That could be a good idea, but I'm pretty sure (99.999%) that LaTeX export snippets are read in Beamer -- though the opposite is false, it's useless for the problem at hand. Best regards, Seb -- Sebastien Vauban