[texhax] automatic dependency generation for pdflatex

Uwe Lück uwe.lueck at web.de
Fri Mar 27 11:26:38 CET 2009

>On Sat, 2009-03-07 at 15:03 -0500, Bob Rossi wrote:
> > I'm trying to integrate latex into my build system. I use autotools,

What is autotools?

> > along with make. I can't figure out how to have latex automatically
> > generate the dependencies. The closest I have found is this,
> >   http://www.ams.org/tex/snapshot.html
> > the only problem with it is, it gives relative filenames, not absolute.
> >
> > Shouldn't latex provide this feature? Any user using a build system to
> > build latex would require this functionality. I've found a dozen people
> > asking the same question over the years. Any thoughts on how I can solve
> > this problem?

At 00:59 08.03.09, Steve Schwartz wrote:
>I'm not sure exactly what you want, but have you tried running latex
>with a -recorder option, i.e.,
>latex -recorder file.tex
>? This generates a .fls file that has all the input files, etc., and
>with full paths to the files. I attach a script I wrote around it to
>pack up a latex file together with the various input files, graphics
>files, etc., so I could ship it to someone else. Indeed, my script looks
>for and throws away the files related to latex packages, which I guess
>is what you want to keep!

There are also artex, bundledoc according to


and fink and texdepend according to


However, I am unable to tell from the descriptions whether they generate 
absolute path names.

Moreover, there were two postings on snapshot and bundledoc here January 
2008, thread `Long-term stability of LaTeX documents?'.

HTH -- Uwe.

More information about the texhax mailing list