From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Custom environment for LaTeX export Date: Fri, 15 Aug 2014 11:46:09 +0200 Message-ID: <20140815094609.GA2329@chitra.no-ip.org> References: <87y4vytg5r.fsf@free.fr> <86k36xedt9.fsf@somewhere.org> <877g2gvni9.fsf@free.fr> <20140811092430.GB2336@chitra.no-ip.org> <86vbpv6rkx.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIE5P-0007iz-8M for emacs-orgmode@gnu.org; Fri, 15 Aug 2014 05:46:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XIE5O-0001bB-26 for emacs-orgmode@gnu.org; Fri, 15 Aug 2014 05:46:15 -0400 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:53664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIE5N-0001b3-S0 for emacs-orgmode@gnu.org; Fri, 15 Aug 2014 05:46:13 -0400 Received: by mail-wg0-f42.google.com with SMTP id l18so2075233wgh.25 for ; Fri, 15 Aug 2014 02:46:12 -0700 (PDT) Received: from chitra.no-ip.org ([2001:610:120:3001:2ad2:44ff:fe4a:b029]) by mx.google.com with ESMTPSA id ft17sm17672651wjc.14.2014.08.15.02.46.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Aug 2014 02:46:11 -0700 (PDT) Content-Disposition: inline In-Reply-To: <86vbpv6rkx.fsf@somewhere.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: emacs-orgmode@gnu.org Hi Seb, On Thu, Aug 14, 2014 at 05:03:58PM +0200, Sebastien Vauban wrote: > > > 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. If I understood you correctly, you think LaTeX snippets will still be exported when exporting to beamer, but not the other way around? If so, I don't think that is correct. I'll do a quick test just to be sure :-p. Okay you are right! The above example when exported to either LaTeX or beamer looks like this: \begin{consequence} stuff \end{consequence} This is a bit odd to me; is this a consequence of the fact that ox-beamer derives from ox-latex? Is it a feature or a bug? Anyway, given the above your suggestion seems to be the correct solution for now. Cheers, -- Suvayu Open source is the future. It sets us free.