From: Chris Lowis Date: 2008-11-04T07:16:17+09:00 Subject: Re: Rake task for building latex? > Can't be that hard run latex about 3 times, once for the intial run. > Once for references to get done right, once for any index to be > created. Then run the dvi converter you want for the output format > you want. I remember looking at the source for Auctex when I decided to write a rake file to automate LaTeX compilation for my thesis. I seem to remember it parses the log output of LaTeX looking for "undefined reference" type warnings and uses that as the trigger to either run Bibtex or Latex again to resolve cross-references. I never bothered writing this step in my rake tasks as the compilation step was always quick enough, but it shouldn't be too hard to use that approach. Chris -- Posted via http://www.ruby-forum.com/.