[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ next ]
If you want to install additional (La)TeX stuff, you have to:
install it at a place where TeX can find it;
register it properly.
This can generally be done site-wide (by an administrator who has write access
to at least /usr/local/share/texmf
and /etc/texmf
),
or on a per-user basis. This can be done by any user on the system, without
requiring write access to system directories. Some people might also find it
more convenient in case they share their home directory between a couple of
machines, even if they do have administrator rights.
In the following, we first explain the principles by describing a site-wide setup; then we explain the details for user-specific setup.
This is usually quite easy. Put the files in an appropriate directory below
TEXMFLOCAL, which is the directory tree rooted at
/usr/local/share/texmf
.
For LaTeX packages, create the directory
tex/latex/packagename
within that tree (or use
tex/latex/misc
) and put the files there; the documentation should
be put into doc/latex/packagename
. If the package
comes as a pair of .dtx
and .ins
files, you need to
run latex
over the .ins
file in order to produce the
package files, and over the .dtx
file to produce the
documentation. After that, the .dtx
and .ins
files
are no longer needed. Please refer to the README
file of the
package if there is one.
After that, registering is easy: just run the command
mktexlsr
(also called texhash
). This will regenerate
the ls-R
file for all TEXMF trees you have write access
to.
With some packages, e.g. when they contain fonts, the procedure is more
complicated. Please follow the instructions given in the package. The
Debian-specific part comes in when the configuration files
texmf.cnf
, fmtutil.cnf
, updmap.cfg
, or
language.dat
need to be changed. See the description above (The files texmf.cnf
,
fmtutil.cnf
, updmap.cfg
and language.*
group, Section 2.4), the manual pages for update-updmap
,
update-texmf
, update-fmtutil
,
update-language
and Font
installation, Section 4.3.
If you wish to install a font package in a system-wide manner, please follow
the instructions in this section. If you are preparing a Debian package
containing fonts, you should refer to the Debian TeX policy instead, which is
shipped in the tex-common
package.
Generally, you should first have a look at the installation instructions that come with the font package, in case there is something specific to that package with respect to installation. But you should make sure that you install most files in a subdirectory of TEXMFLOCAL (see Available TEXMF trees for users and system administrators, Section 2.1). This is because we are describing here a system-wide installation that is not done by Debian packages.
For instance, AFM files should be stored into
TEXMFLOCAL/fonts/afm/supplier/typeface/
where supplier identifies the supplier of the fonts (for instance,
adobe, urw or public) and
typeface refers to the name of the font family (e.g.,
marvosym or lm). If in doubt, you should have a look
at the system trees managed by Debian packages, /usr/share/texmf
and /usr/share/texlive/texmf-dist
; they follow the same layout,
called the TeX Directory Structure (which is documented at http://www.tug.org/tds/
).
In order for the various TeX-related programs to be able to use a font, you need to somehow register its map files (simply copying the files to TEXMFLOCAL is not enough). You can do this with the following steps, performed as root, where foo stands for the name of the font package you are installing:
Make sure you have stored all the relevant files shipped in the package
(.afm
, .tfm
, .pfb
, .pfa
,
.mf
, .fd
, .enc
, .map
,
.sty
are all relevant in this context) in the appropriate
subdirectories of TEXMFLOCAL, as explained above.
List the map files you stored in step 1 under TEXMFLOCAL, with one line per file, as in:
# This is a comment line Map foo.map Map other-map-file-from-package-foo.map
in the file /usr/local/share/texmf/web2c/updmap.cfg
.
If a font is available both as bitmap and outline, you should use
MixedMap instead of Map. Please refer to the manual
pages for updmap
for details.
(not recommended, but possible) You can also use updmap-sys --enable Map
foo.map; this will create/edit the
/etc/texmf/web2c/updmap.cfg
file for you. But since the real
files are stored in TEXMFLOCAL it is better to add the map
directives to the updmap.cfg
in the same tree.
Run the program mktexlsr
. This will record all the newly created
files in ls-R
files (these are used by TeX-related programs as
indices to find the files they need when operating).
Run the program updmap-sys
. This will use your updated
updmap.cfg
to generate files that are needed by
dvips
, pdflatex
, dvipdfm
, etc., such as
psfonts.map
and pdftex.map
.
At this point, the font package should be properly installed for all users on the system.
Instead of a system-wide installation, one can also install input files and
fonts in the private TEXMFHOME, which is set to
$HOME/texmf
by default. For fonts, compared to the system-wide
installation explained above, the following changes have to be made:
In step 1, copy all relevant files to the appropriate subdirectories in TEXMFHOME.
In step 2, edit TEXMFHOME/web2c/updmap.cfg
instead.
As for the site-wide installation, you can also use updmap --enable Map foo.map.
In step 3 run updmap
instead of updmap-sys
. The
generated files are created in directories below TEXMFVAR.
[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ next ]
Debian-specific information about TeX packages
generated from $Id$mailto:debian-tex-maint@lists.debian.org