1TEXDIRFLATTEN(1)      User Contributed Perl Documentation     TEXDIRFLATTEN(1)
2
3
4

NAME

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

SYNOPSIS

10       texdirflatten [-1|--onetex] [-f|--file input.tex] [-o outputdir]
11                  [--imgexts .ext1,.ext2,...] [--debug] [-V|--version]
12       [-?|--help]
13

DESCRIPTION

15       This Perl script parses a LaTeX file recursively, scanning all child
16       files, and collects details of any included and other data files, such
17       as graphics and BiBTeX bibliography files. These component files, are
18       then all put into a single directory (thus "flattening" the document's
19       directory tree). This is useful in distributing manuscripts to
20       collaborators or in submitting to journals.
21

OPTIONS

23       --file, -f input.tex
24           Specifies input (La)TeX file.
25
26       --onetex, -1
27           If specified, produces a single TeX file by expanding all \input
28           and \include commands in place.
29
30       --output, -o outputdir
31           Directory to collect all files. texdirflatten will copy each source
32           file, graphics and bibliography file to this directory. It will be
33           created if it is unexistent. If unspecified, it defaults to
34           "flat/".
35
36       --imgexts .ext1,.ext2[,...]
37           Prepends to the prioritized list of image extensions to search when
38           trying to find the image to copy to output folder. The first file
39           with the extension found will be copied and search stopped. Default
40           order is "", ".eps", ".pdf", ".pstex" (note that it includes files
41           with no extension). If using pdflatex, one may want to add PDF
42           before EPS with "--imgexts .pdf". Don't forget the dot before the
43           extension!
44
45       --debug
46           Enables copious amounts of debugging output - useful if something
47           is going wrong.
48
49       --version, -V
50           Displays the current version number and the usage and exits.
51
52       --help, -?
53           Show this manual page.
54

EXAMPLES

56       The following example scans "manuscript.tex" in the current directory
57       and gathers it and all its components in the "submit_01/" directory:
58
59        $ texdirflatten -f manuscript.tex -o submit_01
60

CAVEATS

62       Please take backups before running this command. No warranties
63       whatsoever provided.
64
65       You may need to run "epstopdf" on EPS files if you are using
66       "pdflatex":
67
68        $ for i in *.eps; do epstopdf $i; done
69

BUGS

71       Bug reports and patches are welcome.
72

AUTHOR

74       Cengiz Gunay <cengique<AT>users.sf.net>
75
77       Copyleft 2003-2017, Cengiz Gunay
78
79       This library is free software; you may redistribute it and/or modify it
80       under the same terms as Perl itself.
81
82
83
84texdirflatten-v1.3                2017-07-03                  TEXDIRFLATTEN(1)
Impressum