Marcin Borkowski <mb...@wmi.amu.edu.pl> 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.