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/texmfTEXMFCONFIG=/home/$USER/.texlive/texmf-config
Then I did the "installation":
mkdir -p /home/$USER/texmf/tex/latex/newtxcp -reverything fromnewtx.zipto that file- Create the
ls-Rby 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.
tfmandvffiles in the wrong place: they should go under/home/$USER/texmf/fonts/tfmand/home/$USER/texmf/fonts/vfrespectively. However it's in general not a good idea to useupdmapand install font packages in TEXMFHOME. Better use TEXMFLOCAL andupdmap-sys, if you have administrator privileges. – egreg Jun 20 '12 at 11:56.pfband.fdfiles? Also, I just realized: is the place forntx.mapcorrect, or do I need to place it intoTEXMFHOME/fonts/dvips/newtx(or change dvips to pdftex or something like that alternatively)? You are right about TEXMFLOCAL; but since the TeXlive 2012 update is supposed to come soon, I just wanted to have this in my $HOME to get rid of it quickly. – mSSM Jun 20 '12 at 12:03.fdfiles should go in.../tex/latex/newtx. Note thattexhash(ormktexlsras it's called now) is not necessary for things in TEXMFHOME – egreg Jun 20 '12 at 12:16.pfbfiles intoTEXMFHOME/fonts/type1/newtx/, and now everything compiles. I am happy! :-D – mSSM Jun 20 '12 at 12:25texhashonTEXMFHOME? If I do not do this, thenpdflatexwill not seenewtxmath.sty. The same is true for any other package installed inTEXMFHOME(for example, I also have the developmental version ofPGFin there). Withouttexhashand the properls-RinTEXMFHOME,pdflatexwill always useTEXMFDIST(/usr/share/texmf-dst/). – mSSM Jun 20 '12 at 12:27kpsewhich -var-value TEXMF, the/home/$USER/texmfsubpath should not be preceded by!!, like, for instance,/usr/local/texlive/2011/texmf-dist. If this is the case, remove thels-Rfile and never forcemktexlsron TEXMFHOME. – egreg Jun 20 '12 at 12:39