1. NAME

texdirflatten - Collects all components of a (La)TeX file in a single output directory \*(-- i.e., flattens its hierarchy.

2. SYNOPSIS

texdirflatten -f input.tex [-o outputdir]

3. DESCRIPTION

It parses the source file, following its included children (La)TeX files recursively, to collect together its components, such as graphics and BiBTeX bibliography files in different directories.

4. OPTIONS

-f input.tex 4 Specifies input (La)TeX file.

-o outputdir 4 Directory to collect all files. texdirflatten will copy each source file, graphics and bibliography file to this directory. It will be created if it is unexistent. If unspecified, it defaults to \f(CW\*(C`flat/\*(C'\fR.

5. EXAMPLES

The following example scans \f(CW\*(C`manuscript.tex\*(C'\fR in the current directory and gathers it and all its components in the \f(CW\*(C`submit_01/\*(C'\fR directory:

$ texdirflatten -f manuscript.tex -o submit_01

6. CAVEATS

Please take backups before running this command. No warranties whatsoever provided.

7. BUGS

Bug reports and patches are welcome.

8. AUTHOR

Cengiz Gunay <cengique<AT>users.sf.net>

9. COPYRIGHT AND LICENSE

Copyleft 2003-2009, Cengiz Gunay

This library is free software; you may redistribute it and/or modify it under the same terms as Perl itself.