hi Richard,

Thanks a lot for your suggestion. The problem is that my pgf codes are
generated in several external files. In this case, the branch can not be
used, since I assume that branch is controlled by lyx not implemented by Tex
code. I can employ the branch in my external files.

weidong

On Tue, Oct 18, 2011 at 7:57 PM, Richard Heck <[email protected]> wrote:

> On 10/18/2011 01:18 PM, Wei-Dong Lian wrote:
> > Hello,
> >
> > I have a small problem in using the pgf codes. In beamer, I need to
> > define some animations operations, examples \only<1->{pgf code}.
> > However, for my article document, I do not want to invoke the
> > animation operations codes. I wonder if we can determine the document
> > type, if it is beamer, then include the animations codes, otherwise
> > suppress these codes. As such, the pgf codes are applicable to both
> > beamer and article document type. Otherwise, one will maintain two
> > versions of the same file. It is a bit ugly.
> > Does someone know how to determine the current document type to
> > suppress some unrelated codes for a certain document type.
> >
> You can't do this without using more TeX code. In TeX code, you can test
> for some macro that is only defined in one of the two classes.
>
> In LyX, though, you could instead use branches.
>
> Richard
>
>


-- 
Weidong LIAN
Bureau F 230

Telephone: +33 (0)2 40 37 25 79
Fax:  +33 (0)2 40 37 25 73

Email: [email protected]

Ecole Centrale de Nantes
Department Mechanical Engineering and Materials
GEM - Institut de Recherches en Génie Civil et Mécanique
UMR CNRS 6183
Equipe "Structure et Simulation"
B.P. 92101
44321 Nantes cedex 3
FRANCE

Reply via email to