From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: Custom environment for LaTeX export Date: Mon, 25 Aug 2014 18:43:47 +0200 Message-ID: <20140825184347.13468cc6@aga-netbook> References: <87y4vytg5r.fsf@free.fr> <86k36xedt9.fsf@somewhere.org> <877g2gvni9.fsf@free.fr> <86mwb7a0tx.fsf@somewhere.org> <20140815214520.03c04c98@aga-netbook> <87a96sh6mn.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLxN3-0001VW-O1 for emacs-orgmode@gnu.org; Mon, 25 Aug 2014 12:43:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XLxN2-0002Ql-Ff for emacs-orgmode@gnu.org; Mon, 25 Aug 2014 12:43:53 -0400 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:50065) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLxN2-0002QM-81 for emacs-orgmode@gnu.org; Mon, 25 Aug 2014 12:43:52 -0400 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 7FADE46C64 for ; Mon, 25 Aug 2014 18:43:49 +0200 (CEST) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Tw6G7YI68EL1 for ; Mon, 25 Aug 2014 18:43:49 +0200 (CEST) Received: from aga-netbook (unknown [IPv6:2001:808:114:6:40ca:5c29:9928:1a08]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 6671B45F29 for ; Mon, 25 Aug 2014 18:43:49 +0200 (CEST) In-Reply-To: <87a96sh6mn.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 Dnia 2014-08-25, o godz. 18:32:48 Julien Cubizolles napisa=C5=82(a): > Marcin Borkowski writes: >=20 > > Dnia 2014-08-14, o godz. 11:15:54 > > Sebastien Vauban napisa=C5=82(a): > > > >> 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? > >>=20 > >> No variable, no. > >>=20 > >> You would have to redefine the environment (with LaTeX code) so > >> that it doesn't do anything. > > > > Does this help? > > > > http://www.ctan.org/pkg/comment >=20 > I'm not sure that could be the solution=C2=A0: I don't want to remove > what's inside the "consequence" environment but rather remove the > \begin{consequence} and \end{consequence} surronding it. Sorry, I misunderstood. How about putting this in the preamble (untested)? \makeatletter \@ifclassloaded{beamer}{ \renewenvironment{consequence}{}{} }{} \makeatother See also http://tex.stackexchange.com/questions/73/which-document-class-is-= being-used . > Julien. Hth, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University