From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Cubizolles Subject: Re: Custom environment for LaTeX export Date: Mon, 25 Aug 2014 19:38:26 +0200 Message-ID: <87wq9wfp0t.fsf@free.fr> 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> <20140825184347.13468cc6@aga-netbook> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLyEB-00027w-UO for emacs-orgmode@gnu.org; Mon, 25 Aug 2014 13:38:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XLyE5-00047h-SY for emacs-orgmode@gnu.org; Mon, 25 Aug 2014 13:38:47 -0400 Received: from plane.gmane.org ([80.91.229.3]:41547) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLyE5-00047X-ME for emacs-orgmode@gnu.org; Mon, 25 Aug 2014 13:38:41 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XLyE4-0001jR-Rt for emacs-orgmode@gnu.org; Mon, 25 Aug 2014 19:38:40 +0200 Received: from gas45-3-82-244-252-119.fbx.proxad.net ([82.244.252.119]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Aug 2014 19:38:40 +0200 Received: from j.cubizolles by gas45-3-82-244-252-119.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Aug 2014 19:38:40 +0200 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 Marcin Borkowski writes: > Sorry, I misunderstood. How about putting this in the preamble (untested)? > > \makeatletter > \@ifclassloaded{beamer}{ > \renewenvironment{consequence}{}{} > }{} > \makeatother Actually, I'm using a custom beamer class, so --8<---------------cut here---------------start------------->8--- \newenvironment{consequence}[1]{}{} --8<---------------cut here---------------end--------------->8--- is enough for me. There is still a problem: --8<---------------cut here---------------start------------->8--- \begin{block}{Puissance des force de Laplace sur un moment magnétique} \begin{consequence}[Puissance des force de Laplace sur un moment magnétique] --8<---------------cut here---------------end--------------->8--- in the exported LaTeX file produces --8<---------------cut here---------------start------------->8--- Puissance des force de Laplace sur un moment magnétique Puissance des force de Laplace sur un moment magnétique] --8<---------------cut here---------------end--------------->8--- in the pdf. I think the optional argument to consequence inside the block environment isn't correctly interpreted. Julien.