Conditionally setting a package option

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Conditionally setting a package option

YNoel
Hello all,

I am trying to get the following in LyX.

I use the beamer class. I would like it to compile with the "handout" option *only if* some flag is set to true. I put in the Preamble :

\newif\ifhide
\hidetrue
\ifhide\PassOptionsToPackage{handout}{beamer}\fi

but this does not work.

Is there any other mean to get that result?

Thank you very much in advance,

Y.
Loading...