Differences between revisions 1 and 9 (spanning 8 versions)
Revision 1 as of 2012-10-30 07:51:16
Size: 582
Editor: bonaccos
Comment:
Revision 9 as of 2014-11-05 12:25:41
Size: 1787
Editor: alders
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= How can I use a (updated) LaTeX package not provided by the local installation of texlive? = = How to install a LaTeX package not provided by the local installation of texlive =
Line 3: Line 3:
In this case you can install locally the needed LaTeX package to your home directory. == General howto ==
Line 5: Line 5:
In general download the package from CTAN. Assuming you have downloaded {{{$package_$version.tds.zip}}} extract it in the following way to your {{{~/texmf}}}: You can install the missing LaTeX package to your home directory. If available, always download a LaTeX package that follows the {{{TeX Directory Structure}}}. These packages normally end in {{{.tds.zip}}}. The advantage of these packages is that you do not have to care about the install location within the {{{~/texmf}}} tree. If there is no {{{.tds.zip}}} file, you will have to determine the install location within {{{~/texmf}}} by yourself.

Here is a small howto for a package that follows the {{{TeX Directory Structure}}}:

{{{
cd ~/texmf # Or create this directory if it does not exist yet
wget 'http://mirror.switch.ch/ftp/mirror/tex/install/.../PACKAGE.tds.zip'
unzip PACKAGE.tds.zip
rm PACKAGE.tds.zip
texhash ~/texmf
}}}

If you installed a font, you will also have to update the font map file. First you have to find the name of the font map file of the just installed font (the file ends in {{{.map}}}). Then run:

{{{
updmap --enable Map=FONTNAME.map
}}}

== Example 1: Roboto font ==

The roboto font package follows the {{{TeX Directory Structure}}} so we can just unpack it in the {{{texmf}}} tree.

{{{
cd ~/texmf
wget 'http://mirror.ctan.org/install/fonts/roboto.tds.zip'
unzip roboto.tds.zip
rm roboto.tds.zip
texhash ~/texmf
updmap --enable Map=roboto.map
}}}

== Example 2: mweights package ==

The {{{mweights}}} package seems not to be available as a {{{.tds.zip}}} file so we will have to choose the install location by ourselves.

{{{
cd ~/texmf/tex/latex
wget 'http://mirrors.ctan.org/macros/latex/contrib/mweights.zip'
unzip mweights.zip
rm mweights.zip
texhash ~/texmf
}}}
Line 8: Line 49:
{{{
mkdir -p ~/texmf/tex/generic/$package-$version
unzip $package_$version.tds.zip -d ~/texmf/tex/generic/$package-$version
}}}

After you have unziped all packages, recreated the ls-R Index via

{{{
mktexlsr ~/texmf
}}}
----
[[CategoryLXSW]]

How to install a LaTeX package not provided by the local installation of texlive

General howto

You can install the missing LaTeX package to your home directory. If available, always download a LaTeX package that follows the TeX Directory Structure. These packages normally end in .tds.zip. The advantage of these packages is that you do not have to care about the install location within the ~/texmf tree. If there is no .tds.zip file, you will have to determine the install location within ~/texmf by yourself.

Here is a small howto for a package that follows the TeX Directory Structure:

cd ~/texmf  # Or create this directory if it does not exist yet
wget 'http://mirror.switch.ch/ftp/mirror/tex/install/.../PACKAGE.tds.zip'
unzip PACKAGE.tds.zip
rm PACKAGE.tds.zip
texhash ~/texmf

If you installed a font, you will also have to update the font map file. First you have to find the name of the font map file of the just installed font (the file ends in .map). Then run:

updmap --enable Map=FONTNAME.map

Example 1: Roboto font

The roboto font package follows the TeX Directory Structure so we can just unpack it in the texmf tree.

cd ~/texmf
wget 'http://mirror.ctan.org/install/fonts/roboto.tds.zip'
unzip roboto.tds.zip
rm roboto.tds.zip
texhash ~/texmf
updmap --enable Map=roboto.map

Example 2: mweights package

The mweights package seems not to be available as a .tds.zip file so we will have to choose the install location by ourselves.

cd ~/texmf/tex/latex
wget 'http://mirrors.ctan.org/macros/latex/contrib/mweights.zip'
unzip mweights.zip
rm mweights.zip
texhash ~/texmf


CategoryLXSW

FAQ/InstallLaTeXPackages (last edited 2020-08-31 12:50:20 by alders)