Re: Using AAP with LaTeX
Bram Moolenaar <[email protected]> Mon, 29 Mar 2004 17:52:26 +0200
| Newsgroups | gmane.comp.tools.aap.user |
|---|---|
| Message-ID | <[email protected]> |
Adriaan de Groot wrote: > So, after dealing with things other than AAP for some while (Bram: Jos > told me you were concerned), You never know whether someone went off to do something else for a while or simply disappeared in a puff of white smoke :-). > I've decided to try to pick it up again for > compiling my thesis. I need to read the manual again, desperately, since > I've forgotten most stuff already. However, there's a couple of tricks > that I'd like to know about before really starting on this: > > Ideally, I'd write: > > main.dvi : main.tex $chapter1 $chapter2 $chapter3 $appendix > > and be done with it. However, the action required for this is manyfold: > > * run "latex main.tex" > * if main.idx has changed, run "makeindex" and then "latex main.tex" again > * if main.toc has changed, run "latex main.tex" again > * ... several more rules like that > > Can I do this cleanly? Or is a big icky :action build .dvi default going > to be the only option? I'm afraid I don't know Tex and how to do these things. Since Aap currently doesn't know about .tex and .dvi files you would have to specify the dependencies and commands yourself. Or implement a module and/or tool that others can use as well. Perhaps you can use the ":produce" command, define steps with ":route" and a few actions. If this would be a common thing then a ":dvi" command could be added, like we have ":ltlib". The circular rule that when "main.toc" has changed, run "latex main.tex" again can't be handled directly. It can be done with a bit of Python, you need to check yourself that it doesn't loop forever. -- If Apple would build a car... ... it would be powered by the sun, be reliable, five times as fast and twice as easy to drive; but would only run on five percent of the roads. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html /// ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click