* Paolo (2008-06-26) writes: > I would change the AUCTex compile button's behaviour when a specific package > is included in the source. The problem is that I use the axodraw package to > make Feynman diagrams, but this package is (unfortunately) not compatible > with pdftex, so I would have that in pdf-mode the button recognize if the > axodraw package is included in the source and, if so, compile the tex > differently to generate correctly a pdf (latex(dvi)->dvips->ps2pdf). > I tried to find out how to do so, but I got lost. > > Is it possible? Could you help me and tell me how to do it? > And if it is not possible to recognize the package presence, how can I add a > function to do this 3 step compilation?
It's probably easier to disable TeX PDF mode for the document in question and put the dvips and ps2pdf calls into `TeX-output-view-style' along with a call to the viewer. The variable allows you to specify a package name which is used to activate an entry if the package is present. Alternatively you could add a dvips+ps2pdf command to `TeX-command-list' and call it between running LaTeX and starting the viewer. -- Ralf _______________________________________________ auctex-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/auctex-devel
