hi, Yes, you were right. I did not use beamer article but the ordinary article and elesvier article. Then I got error message.
wd On Tue, Oct 18, 2011 at 8:41 PM, Liviu Andronic <landronim...@gmail.com>wrote: > 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 > -- Weidong LIAN Bureau F 230 Telephone: +33 (0)2 40 37 25 79 Fax: +33 (0)2 40 37 25 73 Email: weidong.l...@gmail.com 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