On Tue, Oct 18, 2011 at 7:18 PM, Wei-Dong Lian <weidong.l...@gmail.com> 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. > I'm not sure if you do so already. Have you tried switching from beamer (presentation) to beamer (article)? I would assume that the beamer version of 'article' would take care of such animations.
Regards Liviu > Does someone know how to determine the current document type to suppress > some unrelated codes for a certain document type. > Thanks, > wd -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail