[Tex/LaTex] How to add new packages to Texmaker

texmaker

How can I add a package, e.g., program into Texmaker in Ubuntu?
I tried to include it as follows but it didn't work:

\usepackage{program}

Best Answer

Assuming you haven't done it, the command sudo apt-get install texlive-full in terminal gives you all the packages in the Ubuntu repositories, which should give you the package you seek.

It is a pretty large chunk of files, so be sure to have enough space. The drawback with this method is of course that you get a lot of packages you might never use, and documentation. To prevent this a search for texlive in Synaptic gives you the possibility to install the bundles you want. The description of the package states which tex-packages that comes with it.

Another possibility is to install "vanilla" TeX. It is described here. This gives you better package managing.