Re: [O] Custom environment for LaTeX export

2014-08-25 Thread Marcin Borkowski
Dnia 2014-08-25, o godz. 19:38:26 Julien Cubizolles napisał(a): > Marcin Borkowski writes: > > > > Sorry, I misunderstood. How about putting this in the preamble > > (untested)? > > > > \makeatletter > > \@ifclassloaded{beamer}{ > > \renewenvironment{consequence}{}{} > > }{} > > \makeatothe

Re: [O] Custom environment for LaTeX export

2014-08-25 Thread Julien Cubizolles
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

Re: [O] Custom environment for LaTeX export

2014-08-25 Thread Julien Cubizolles
Sebastien Vauban writes: > Julien Cubizolles wrote: >> I need to export the same org file to both LaTeX and beamer, and I'd >> like the headings that are exported to the "block" environment in beamer >> to be exported to another environment in LaTeX (named >> "consequence"). The LaTeX export engi

Re: [O] Custom environment for LaTeX export

2014-08-25 Thread Marcin Borkowski
Dnia 2014-08-25, o godz. 18:32:48 Julien Cubizolles napisał(a): > Marcin Borkowski writes: > > > Dnia 2014-08-14, o godz. 11:15:54 > > Sebastien Vauban napisał(a): > > > >> Julien Cubizolles wrote: > >> > Sebastien Vauban writes: > >> > > >> >> Throwing an idea here: make the `consequence' env

Re: [O] Custom environment for LaTeX export

2014-08-25 Thread Julien Cubizolles
Marcin Borkowski writes: > Dnia 2014-08-14, o godz. 11:15:54 > Sebastien Vauban 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 varia

Re: [O] Custom environment for LaTeX export

2014-08-15 Thread Marcin Borkowski
Dnia 2014-08-14, o godz. 11:15:54 Sebastien Vauban 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? >

Re: [O] Custom environment for LaTeX export

2014-08-15 Thread Suvayu Ali
Hi Nicolas, On Fri, Aug 15, 2014 at 12:05:36PM +0200, Nicolas Goaziou wrote: > Suvayu Ali writes: > > > This is a bit odd to me; is this a consequence of the fact that > > ox-beamer derives from ox-latex? > > Yes, "ox-beamer.el" knows abouv "ox-latex.el". However, "ox-latex.el" > has no clue ab

Re: [O] Custom environment for LaTeX export

2014-08-15 Thread Nicolas Goaziou
Hello, Suvayu Ali writes: > This is a bit odd to me; is this a consequence of the fact that > ox-beamer derives from ox-latex? Yes, "ox-beamer.el" knows abouv "ox-latex.el". However, "ox-latex.el" has no clue about all possible back-ends that could derive from it. > Is it a feature or a bug?

Re: [O] Custom environment for LaTeX export

2014-08-15 Thread Suvayu Ali
Hi Seb, On Thu, Aug 14, 2014 at 05:03:58PM +0200, Sebastien Vauban wrote: > > > However, I would like to suggest something a bit different. Why not > > instead of #+BEGIN_consequence, you use a macro. Something like this: > > > > #+MACRO: cbeg @@latex:\begin{consequence}@@ > > #+MACRO: cend

Re: [O] Custom environment for LaTeX export

2014-08-14 Thread Sebastien Vauban
Hello Suvayu, Suvayu Ali wrote: > I'm guessing Seb's idea could be implemented by redefining the > consequence environment when in beamer, leave it alone otherwise. Exactly. > However, I would like to suggest something a bit different. Why not > instead of #+BEGIN_consequence, you use a macro.

Re: [O] Custom environment for LaTeX export

2014-08-14 Thread Sebastien Vauban
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

Re: [O] Custom environment for LaTeX export

2014-08-11 Thread Suvayu Ali
On Sun, Aug 10, 2014 at 08:59:10AM +0200, 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 ? I'm guessing Seb's idea

Re: [O] Custom environment for LaTeX export

2014-08-10 Thread Julien Cubizolles
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 ? Julien.

Re: [O] Custom environment for LaTeX export

2014-07-28 Thread Sebastien Vauban
Julien Cubizolles wrote: > I need to export the same org file to both LaTeX and beamer, and I'd > like the headings that are exported to the "block" environment in beamer > to be exported to another environment in LaTeX (named > "consequence"). The LaTeX export engine allows one to specify any > en

[O] Custom environment for LaTeX export

2014-07-12 Thread Julien Cubizolles
I need to export the same org file to both LaTeX and beamer, and I'd like the headings that are exported to the "block" environment in beamer to be exported to another environment in LaTeX (named "consequence"). The LaTeX export engine allows one to specify any environment but it doesn't suit my ne