| 1 |
######################################################### |
| 2 |
# Bundle all the files needed to build a LaTeX document # |
| 3 |
# By Scott Pakin, [email protected] # |
| 4 |
######################################################### |
| 5 |
|
| 6 |
|
| 7 |
Description |
| 8 |
----------- |
| 9 |
|
| 10 |
bundledoc is a post-processor for the snapshot package that bundles |
| 11 |
together all the classes, packages, and files needed to build a given |
| 12 |
LaTeX document. It reads the .dep file that snapshot produces, finds |
| 13 |
each of the files mentioned therein, and archives them into a single |
| 14 |
.tar.gz (or .zip, or whatever) file, suitable for moving across |
| 15 |
systems, transmitting to a colleague, etc. |
| 16 |
|
| 17 |
As an added bonus, this distribution includes a small script called |
| 18 |
arlatex. arlatex is a LaTeX-specific archiving program that combines |
| 19 |
a bunch of files into a single .tex file. When the .tex file is run |
| 20 |
through latex, all of the original files are recreated and the LaTeX |
| 21 |
document is built. bundledoc can be easily configured to use arlatex |
| 22 |
as its archiver in place of tar, zip, etc. |
| 23 |
|
| 24 |
|
| 25 |
Files |
| 26 |
----- |
| 27 |
|
| 28 |
-rw-r--r-- 1 pakin users 4476 May 16 11:33 README |
| 29 |
-rwxr-xr-x 1 pakin users 9850 May 16 11:08 arlatex |
| 30 |
-rw-r--r-- 1 pakin users 7716 May 16 11:32 arlatex.1 |
| 31 |
-rw-r--r-- 1 pakin users 35789 May 16 11:32 arlatex.pdf |
| 32 |
-rwxr-xr-x 1 pakin users 31303 May 16 11:30 bundledoc |
| 33 |
-rw-r--r-- 1 pakin users 20521 May 16 11:32 bundledoc.1 |
| 34 |
-rw-r--r-- 1 pakin users 52035 May 16 11:32 bundledoc.pdf |
| 35 |
-rw-r--r-- 1 pakin users 342 Jan 22 2014 miktex.cfg |
| 36 |
-rw-r--r-- 1 pakin users 248 Aug 24 2014 texlive-unix-arlatex.cfg |
| 37 |
-rw-r--r-- 1 pakin users 230 Apr 9 2010 texlive-unix.cfg |
| 38 |
|
| 39 |
|
| 40 |
Requirements |
| 41 |
------------ |
| 42 |
|
| 43 |
bundledoc and arlatex are both Perl scripts, so you naturally need |
| 44 |
Perl installed on your system. bundledoc relies on the snapshot |
| 45 |
package, which is available from CTAN (https://www.ctan.org/) and |
| 46 |
included in most TeX distributions. Before running bundledoc, you |
| 47 |
must have used snapshot to produce a dependency list for your |
| 48 |
document. Finally, bundledoc requires that you have some program for |
| 49 |
archiving a bunch of files into a single file (e.g. tar, shar, zip, or |
| 50 |
arlatex) and some program that can search your TeX tree(s) for a given |
| 51 |
file (e.g., kpsewhich or initexmf). |
| 52 |
|
| 53 |
|
| 54 |
Installation |
| 55 |
------------ |
| 56 |
|
| 57 |
Installation is fairly flexible. The bundledoc and arlatex scripts |
| 58 |
should be put somewhere in your executable search path (e.g., |
| 59 |
/usr/local/bin on a typical Unix-like system). The Unix man pages, |
| 60 |
bundledoc.1 and arlatex.1, should be put in the corresponding man |
| 61 |
directory (e.g., /usr/local/man/man1) -- or discarded, if you're not |
| 62 |
on a Unix-like system and therefore have no interest in having a man |
| 63 |
page. |
| 64 |
|
| 65 |
The *.cfg files can go anywhere -- just don't forget where you put |
| 66 |
them. ;-) I guess I'd recommend .../texmf/tex/latex/bundledoc (where |
| 67 |
"..." is /usr/share or wherever your TeX tree is rooted), assuming |
| 68 |
your TeX distribution follows the TDS directory structure (meaning, it |
| 69 |
*has* a .../texmf/tex/latex directory). |
| 70 |
|
| 71 |
bundledoc.pdf and arlatex.pdf are pretty-printed PDF versions of |
| 72 |
bundledoc.1 and arlatex.1 and can also go anywhere. If you want |
| 73 |
printed documentation, these PDF files will give the nicest results. |
| 74 |
Just note that they're formatted for U.S. Letter-sized paper, so you |
| 75 |
may need to scale them slightly to print on A4 paper. |
| 76 |
|
| 77 |
Note that it's possible to produce documentation in other formats. |
| 78 |
The bundledoc and arlatex scripts contain documentation in POD format. |
| 79 |
You can therefore extract the documentation into your favorite format -- |
| 80 |
LaTeX, HTML, plain text, etc. -- using the various pod2*** tools that |
| 81 |
come with Perl. |
| 82 |
|
| 83 |
|
| 84 |
Copyright and license |
| 85 |
--------------------- |
| 86 |
|
| 87 |
bundledoc |
| 88 |
Copyright (C) 2018-2026 Scott Pakin |
| 89 |
|
| 90 |
This program may be distributed and/or modified under the conditions |
| 91 |
of the LaTeX Project Public License, either version 1.3c of this |
| 92 |
license or (at your option) any later version. |
| 93 |
|
| 94 |
The latest version of this license is in: |
| 95 |
|
| 96 |
http://www.latex-project.org/lppl.txt |
| 97 |
|
| 98 |
and version 1.3c or later is part of all distributions of LaTeX |
| 99 |
version 2008/05/04 or later. |
| 100 |
|
| 101 |
This program consists of the file bundledoc and all the files listed |
| 102 |
in the Files section of the associated README file. |
| 103 |
|
| 104 |
The license basically says that you can do whatever you want with |
| 105 |
bundledoc, as long as you give me credit for writing it. Also, if you |
| 106 |
modify any of the files, you have to call your modified version |
| 107 |
something other than "bundledoc". |