LaTeX Package bundledoc in Ubuntu 12.04

Bismillahirrahmanirrahim.

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


  1. Diagnose first. Compare them. Precise hereVivid here.
  2. Found the problem. Precise has no bundledoc.
  3. Search for texlive-extra-utils for Vivid. Found it in Launchpad.
  4. Open the package download page for that package in Launchpad.
  5. Download that package.
  6. Install with –simulate argument. See the output.
  7. Apparently, texlive-extra-utils for Vivid is no way compatible with Precise. It breaks texlive-base package in Precise.
  8. I failed with automatic package management system. These steps are deprecated.

latex-bundledoc3

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.

  1. Open CTAN.
  2. Search for bundledoc.
  3. Download the package.
  4. Unzip the package.
  5. Copy the binary package to binary executable search path. I copy bundledoc package to /usr/bin directory.
  6. Copy the manual package to manpage executable search path. I copy bundledoc.1 package to /usr/local/man/man1 directory.
  7. Finish.

latex-bundledoc5

latex-bundledoc2

bundledoc command in Precise

latex-bundledoc1

Leave a comment