How do I install new packages on Texmaker? I use Ubuntu 10.04 LTS.
[Tex/LaTex] How to install new packages on Texmaker on Ubuntu
installingpackagestexmakerUbuntu
Related Solutions
- The most straightforward you can do is to open Synaptic package manager, or Ubuntu software center, or whatever other distro manager you have and look for a system package which enhances your TeX distribution with packages you need.
- The second option you have is to get the packages you need from CTAN, install (unpack) them into your
LOCALTEXMF
tree and reruntexhash
so that your TeX will find them. This however might sound easier than it is for more complex packages, fonts, bibliography styles, etc. - The last option, is to download and install the latest TeXLive distribution, where you would have
tlmgr
and friends. If you have a good network connection and enough space on your disk, just go with the full installation.
Personally, I very much recommend to go with the last option, that is the full TeXLive install from scratch. The point is that Ubuntu still ships TeXLive 2009 packages, while recently TeXLive 2012 came out. Going with the most recent distro will ensure that you will have all the new things done in XeTeX, or LuaTeX which might be of your interest, since as you speak you are after non-latin fonts/encodings and such.
Before doing the full TeXLive install, do not forget to purge the Ubuntu TeXLive 2009 installation, otherwise the two will clash.
actually this is a further comment on corentin's answer, but it exceeds 600 characters.
Since http://www.tug.org/texlive/devsrc/Master/texmf-dist/tex/latex/ is an Apache directory listing you can try downloading packages with wget. For example if you want to download l3experimental
where xcoffins
is a subfolder you can invoke wget like
wget --cut-dir=4 -np -R "index.html*" -nH -P ~/texmf -r http://www.tug.org/texlive/devsrc/Master/texmf-dist/tex/latex/l3experimental/
or
wget --cut-dir=6 -np -R "index.html*" -P ~/texmf/tex/latex -r http://www.tug.org/texlive/devsrc/Master/texmf-dist/tex/latex/l3experimental/
this.
-P ~/dir/in/home/directory/
specifies the local directory wherewget
should put your files.-nH
tellswget
that you don't want to create directories named after the host i.e.~/texmf/www.tug.org/*/*/
looks not so nice and latex won't find anything under~/texmf/www.tug.org
. But you can omit-nH
and change the local directory to-P ~/textmf/tex/latex
. Then you have a seperate directory tree that latex also searches.- whereby
--cut-dir=x
means that you don't want to create the first x folders of the uri in your local directory (you want to create~/texmf/tex/latex/l3experimental/
or~/texmf/tex/latex/www.tug.org/l3experimental/
instead of~/textmf/texlive/devsrc/Master/texmf-dist/tex/latex/l3experimental
). -R
instructswget
to exclude all files beginning withindex.html
.-r
is for recursive fetch- the argument of
-P
is the directory where you want to save all those things -np
excludes all parent directories ofl3experimental
(of course you can find a more detailed description in the manual pages ofwget
)
but generally be careful if you download things with wget
recursively it could mess up a whole directory tree. I would recommend you to first download the files in a temporary directory (for example with -P ~/texmftemporary
) where you can examine the downloaded directory tree.
Since latex also searches recursively for packages in ~/texmf/tex/latex
you don't have to bother if xcoffins
is a subfolder of any other folder/folders.
Of course you can redefine things further if you write a little bash
, perl
or whatever
script that is based on the above command.
Maybe this helps you!?
Best Answer
You've got some options.
The easy and consistent way is to use your Ubuntu package manager, Synaptic or Ubuntu Software Center. The Ubuntu repositories contain TeX Live bundles, but their names often don't match a specific package. So, use the search feature to search the package descriptions for the package name. Click to choose and install.
You could install (extract, copy) the package into your user home directory, to ~/texmf. This is an option if Ubuntu really doesn't provide it or if you would like to use a newer version. In that case, download it from http://ctan.org/pkg/packagename. There are often installation instructions available. On this site, you could additionally check questions regarding installation of packages in general.
If you want to use the latest version of TeX Live, newer than Ubuntu provides and with its own package management, you could install the original TeX Live. Visit http://tug.org/texlive/. You might also read How to install “vanilla” TeXLive on Debian or Ubuntu.
You may follow the suggestions in this post.
After all, it's independent of Texmaker.