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 22:11:11 +0200 Message-ID: <20140825221111.2fb1f43a@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> <20140825184347.13468cc6@aga-netbook> <87wq9wfp0t.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]:60736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XM0bo-0006gP-SV for emacs-orgmode@gnu.org; Mon, 25 Aug 2014 16:11:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XM0bj-0000dU-5K for emacs-orgmode@gnu.org; Mon, 25 Aug 2014 16:11:20 -0400 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:55322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XM0bi-0000dE-Ul for emacs-orgmode@gnu.org; Mon, 25 Aug 2014 16:11:15 -0400 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 5D1744578E for ; Mon, 25 Aug 2014 22:11:13 +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 IhG4nGZFyTnr for ; Mon, 25 Aug 2014 22:11:13 +0200 (CEST) Received: from aga-netbook (unknown [185.13.171.31]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 3E7C445774 for ; Mon, 25 Aug 2014 22:11:13 +0200 (CEST) In-Reply-To: <87wq9wfp0t.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. 19:38:26 Julien Cubizolles napisa=C5=82(a): > Marcin Borkowski writes: >=20 >=20 > > Sorry, I misunderstood. How about putting this in the preamble > > (untested)? > > > > \makeatletter > > \@ifclassloaded{beamer}{ > > \renewenvironment{consequence}{}{} > > }{} > > \makeatother >=20 > Actually, I'm using a custom beamer class, so=20 >=20 > --8<---------------cut here---------------start------------->8--- > \newenvironment{consequence}[1]{}{} > --8<---------------cut here---------------end--------------->8--- >=20 > is enough for me. There is still a problem:=20 >=20 > --8<---------------cut here---------------start------------->8--- > \begin{block}{Puissance des force de Laplace sur un moment magn=C3=A9tiqu= e} > \begin{consequence}[Puissance des force de Laplace sur un moment > magn=C3=A9tique] --8<---------------cut > here---------------end--------------->8--- >=20 > in the exported LaTeX file produces >=20 > --8<---------------cut here---------------start------------->8--- > Puissance des force de Laplace sur un moment magn=C3=A9tique > Puissance des force de Laplace sur un moment magn=C3=A9tique] > --8<---------------cut here---------------end--------------->8--- >=20 > in the pdf. I think the optional argument to consequence inside the > block environment isn't correctly interpreted. What about \newenvironment{consequence}[1][]{}{} ? > Julien. Best, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University