GeneralPackage installation help

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
sugarat
Posts: 9
Joined: Sat Nov 21, 2009 4:36 pm

Package installation help

Post by sugarat »

Hi All,

I have just come to run pdflatex on an old.tex document of mine and it is saying that I am missing 'arev.sty'. Seems like I used to have some packages installed a while back that aren't there now.

I am now using Fedora Linux 12 and have TeXlive installed.

I must admit I never got round to learning how to install files from CTAN into TeX so here is my chance...

Can anyone offer any advice as to how to go about getting the packages installed into TeXlive on Linux? I would really like to nail this and understand how to get all this CTAN goodness installed!

Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Package installation help

Post by meho_r »

If you installed TeXLive from DVD, you'll be able to install/update packages through TeXLive Manager (command: tlmgr) which has a GUI too (command: tlmgr -gui). Note that you may need to run these commands with root privileges.

If you installed TL from Fedora repos, then you may manually install packages that are missing from TL installation. Generally, you'll need to:

1. download the package you need,

2. extract the content (if the package is in a .zip or tar.gz archive),

3. put it on a place where LaTeX would find it (somewhere in /usr/local/texlive... or /usr/share/texlive...; you should check the path on your system. For example, on my Ubuntu machine, the path is: /usr/share/texmf-texlive/). When you learn what is the path to your TL installation, you may put the package you want to install in a new folder in /tex/latex (e.g. on my machine, the full path for newly installed hypothetical package "example" would be: /usr/share/texmf-texlive/tex/latex/example/),

4. run texhash command to refresh the database and your package should be ready for use.

Of course, don't forget to read instructions which come with most of packages regarding how to install and where to put which files (e.g. you may want to put documentation files into /doc folder, fonts into /fonts etc.).
sugarat
Posts: 9
Joined: Sat Nov 21, 2009 4:36 pm

Re: Package installation help

Post by sugarat »

Thanks for your help.

I put the package I had downloaded into /usr/share/texmf/tex/latex and I read something about compiling the .ins file, so I ran pdflatex on that file and it produced a .sty file.

After running texhash it seemed to work.

My document then produced other difficulties, as it was originally done with MikTeX on Windows, and made use of XeTex and a font installed on Windows (Zapfino Linotype) , so thats now another problem for another thread....

Many thanks
Post Reply