Collects all components of a (la)tex file in a single output directory \*(-- i.e., flattens its hierarchy.
texdirflatten -f input.tex [-o outputdir]
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.
Specifies input (La)TeX file.
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 \*(C`flat/\*(C'.
The following example scans \*(C`manuscript.tex\*(C' in the current directory and gathers it and all its components in the \*(C`submit_01/\*(C' directory:
$ texdirflatten -f manuscript.tex -o submit_01
Please take backups before running this command. No warranties whatsoever provided.
Bug reports and patches are welcome.
Cengiz Gunay <cengique<\s-1AT\s0>users.sf.net>
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.