LATEXPAND(1) User Contributed Perl Documentation LATEXPAND(1) NNAAMMEE latexpand - Flatten LaTeX file by expanding \include and \input, remove comments SSYYNNOOPPSSIISS latexpand [options] FILE... Options: --verbose show what's going on --keep-comments don't strip comments --empty-comments keep empty comments (i.e. % at end of lines) for clarity --keep-includes don't expand \input and \include directives --expand-usepackage Expand \usepackage{...} directives if the corresponding .sty file is found in $TEXINPUTS --expand-bbl FILE Expand the bibliography by inlining FILE (should be a *.bbl file) --help this help message --output , -o generate output in --explain generate explanatory comments in output --show-graphics show included graphics --graphics_extensions colon-separated list of possible graphics extensions (used by --show-graphics to find the actual graphics files) UUSSEESS The most common use of latexpand is to simplify distribution of source LaTeX files, typically to satisfy the requirement of editors and archival sites (springer, arXiv.org, ...) who force the authors to submit sources. One does not necessarily want to submit sources with comments, and uploading a document made of several files including each other is a bit painful. By default, latexpand answers both problems by outputing a single LaTeX file that contain no comment. GGEETTTTIINNGG LLAATTEEXXPPAANNDD The latest version of latexpand is available here: https://gitorious.org/latexpand BBUUGGSS Please, report bugs to Matthieu Moy . perl v5.10.1 2012-11-07 LATEXPAND(1)