Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!samsung!crackers!m2c!umvlsi!dime!hgschulz From: hgschulz@.cs.umass.edu (Henning Schulzrinne) Newsgroups: comp.text.tex Subject: Expanding \input, \include to obtain single file Message-ID: <25080@dime.cs.umass.edu> Date: 14 Jan 91 17:12:45 GMT Sender: news@dime.cs.umass.edu Reply-To: hgschulz@cs.umass.edu (Henning Schulzrinne) Organization: University of Massachusetts, Amherst Lines: 13 When shipping TeX and LaTeX files to others which may or may not have the same operating system (and file naming convention) and probably no access to all style files used, it would be helpful to "expand" or merge all input, includes and documentstyle options to generate a single file. In other words, each input, include, etc. would be replaced by the file contents it references. A crude approach is to use SED on Unix to convert \include and \input to #include's and then run the C preprocessor across the root file, but that still does not handle the style files (and has other problems). Is anybody aware of easier alternatives? Henning Schulzrinne University of Massachusetts