I am trying to install newtx from CTAN for my user only. At first, I tried to follow the README which is available there.
First of, I am using TeXlive 2011
on Archlinux
. I have also checked if all my TEXMF...
variables point to the right places using kpsewhich --var-value
:
TEXMFHOME
=/home/$USER/texmf
TEXMFCONFIG
=/home/$USER/.texlive/texmf-config
Then I did the "installation":
mkdir -p /home/$USER/texmf/tex/latex/newtx
cp -r
everything fromnewtx.zip
to that file- Create the
ls-R
by runningtexhash /home/$USER/texmf/
- Run
updmap --enable Map=ntx.map
- Get the first error:
$ updmap --enable Map=ntx.map
:
copy /etc/texmf/web2c/updmap.cfg => /home/$USER/.texlive/texmf-config/web2c/updmap.cfg
Config file: "/home/$USER/.texlive/texmf-config/web2c/updmap.cfg"
dvips output dir: "/home/$USER/.texlive/texmf-var/fonts/map/dvips/updmap"
pdftex output dir: "/home/$USER/.texlive/texmf-var/fonts/map/pdftex/updmap"
dvipdfm output dir: "/home/$USER/.texlive/texmf-var/fonts/map/dvipdfm/updmap"
pxdvi output dir: "/home/$USER/.texlive/texmf-var/fonts/map/pxdvi/updmap"
/usr/bin/updmap is creating new map files
using the following configuration:
LW35 font names : URWkb
prefer outlines : true
texhash enabled : true
download standard fonts (dvips) : true
download standard fonts (pdftex) : true
create a mapfile for pxdvi : false
Scanning for LW35 support files [ 3 files]
Scanning for MixedMap entries [ 36 files]
Scanning for KanjiMap entries [ 0 files]
Scanning for Map entries [129 files]
ERROR: The following map file(s) couldn't be found:
ntx.map
Did you run mktexlsr?
You can delete non-existent map entries using the option
--syncwithtrees.
It can't find ntx.map
! I found this guide for installing maps on Debian, and tried to adapt it to my system. So I did the same steps as above, but now putting ntx.map
into /home/$USER/texmf/fonts/map/newtx/
.
updmap --enable Map=ntx.map
runs through nicely now, and I can find an entry Map ntx.map
in /home/$USER/.texlive/texmf-config/web2c/updmap.cfg
, as it should.
But having a minimal example:
\documentclass{minimal}
\usepackage{mathtools}
\usepackage{newtxmath}
\begin{document}
\begin{equation*}
\Phi(u) = \frac{1}{\sqrt{2\pi}} \int^u_{-\infty} e^{-t^2/2} dt
\end{equation*}
\end{document}
I get a compilation error with pdflatex
now, it can't find the font ntxmi
(just a small excerpt from the log):
kpathsea: Running mktextfm ntxmi
/usr/share/texmf/web2c/mktexnam: Could not map typeface abbreviation tx for ntxmi.
/usr/share/texmf/web2c/mktexnam: Need to update /usr/share/texmf-dist/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ntxmi
This is METAFONT, Version 2.718281 (TeX Live 2012/dev/Arch Linux)
kpathsea: Running mktexmf ntxmi
! I can't find file `ntxmi'.
<*> ...e:=ljfour; mag:=1; nonstopmode; input ntxmi
Please type another input file name
! Emergency stop.
<*> ...e:=ljfour; mag:=1; nonstopmode; input ntxmi
Transcript written on mfput.log.
grep: ntxmi.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ntxmi' failed to make ntxmi.tfm.
What to do?
EDIT: kpsewhich newtxmath.sty
correctly points to /home/$USER/texmf/tex/latex/newtx/newtxmath.sty
, and kpsewhich ntx.map
to /home/$USER/texmf/fonts/map/newtx/ntx.map
.
Best Answer
You can't copy all the content of your zip into
tex/latex/
. The various file types must go in different branches of your local texmf tree. E.g. the.tfm
should go in/fonts/tfm/newtx
, the.vf
infonts/vf/newtx
and so on. Look in your main texmf tree for examples of correct pathes.