Dnia 2014-08-25, o godz. 18:32:48 Julien Cubizolles <j.cubizol...@free.fr> napisał(a):
> Marcin Borkowski <mb...@wmi.amu.edu.pl> writes: > > > Dnia 2014-08-14, o godz. 11:15:54 > > Sebastien Vauban <sva-n...@mygooglest.com> napisał(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? > >> > >> No variable, no. > >> > >> 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 > > I'm not sure that could be the solution : 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, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University