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.

Thanks,
wd

Reply via email to