I need a technique to do collect output in my LaTeX document. So, my LaTeX document will be exactly same with any LibreOffice document in which a single file contains all resource files. In LaTeX terms, collect output is called bundle. The tools to do that is bundledoc. bundledoc main purpose is to collect all resource files (LaTeX calls them dependencies) and package them into a single tarball file. Exactly same with what I need. In Ubuntu, bundledoc tool contained inside texlive-extra-utils package. It is an official package and my Precise already has this package. But the problem is texlive-extra-utils in Precise didn’t contain bundledoc package. texlive-extra-utils in Vivid has. So how to resolve this problem?
Automatic Package Management System
- Diagnose first. Compare them. Precise here, Vivid here.
- Found the problem. Precise has no bundledoc.
- Search for texlive-extra-utils for Vivid. Found it in Launchpad.
- Open the package download page for that package in Launchpad.
- Download that package.
- Install with –simulate argument. See the output.
- Apparently, texlive-extra-utils for Vivid is no way compatible with Precise. It breaks texlive-base package in Precise.
- I failed with automatic package management system. These steps are deprecated.
Manual Package Management System
Special for LaTeX, actually we can install any new package by downloading the package files from CTAN. It is a big example we knew for years happened in LaTeX (CTAN) and Perl (CPAN). Big example for manual package management system.
- Open CTAN.
- Search for bundledoc.
- Download the package.
- Unzip the package.
- Copy the binary package to binary executable search path. I copy bundledoc package to /usr/bin directory.
- Copy the manual package to manpage executable search path. I copy bundledoc.1 package to /usr/local/man/man1 directory.