You are not logged in.

#1 2012-06-18 17:58:37

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

[SOLVED] TeXLive: Installing font package and updating font map fails

I am trying to install the newtx package, which is available here at CTAN [1].

Since I don't want to mess with my TeXLive installation, I am trying to do that as a local user only.

So I placed the package into ~/texmf/tex/latex/. , ran texhash on texmf/ to update my local ls-R, and so far everything works nicely; for example, the .sty files in that package can be seen:

$ texhash texmf
texhash: Updating /home/$USER/texmf/ls-R... 
texhash: Done.

$ kpsewhich newtxmath.sty
/home/$USER/texmf/tex/latex/newtx/newtxmath.sty

Now, following the packages README [2], I need to update the my TeX font maps. Seems like 'updmap' is the right tool to do that for my user only:

$ 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.

That's my problem: it can't find ntx.map, although I ran mktexlsr (which is texhash). So what to do?

1: http://www.ctan.org/pkg/newtx
2: http://ftp.uni-erlangen.de/mirrors/CTAN … wtx/README


SOLUTION: The trick consists in placing all files into the necessary folders: *.map goes to fonts/map/newtx/, *.vf to fonts/vf/newtx/, and *.tfm to fonts/tfm/newtx/. Also, *.pfb needs to be placed in fonts/pfb/newtx/. *.enc files go to fonts/enc/newt/, and everything else remains in tex/latex/newtx/.

Last edited by Stalafin (2012-06-20 12:32:16)

Offline

#2 2012-06-18 21:08:03

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [SOLVED] TeXLive: Installing font package and updating font map fails

Edit /home/$USER/.texlive/texmf-config/web2c/updmap.cfg to include

Map ntx.map

and run updmap again.

Last edited by Stefan Husmann (2012-06-18 21:08:24)

Offline

#3 2012-06-18 21:11:25

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: [SOLVED] TeXLive: Installing font package and updating font map fails

In addition to texhash, you could try

mktexmf --all

When updmap complains about missing ntx.map, can you find that file by using locate?


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#4 2012-06-19 00:59:39

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

Re: [SOLVED] TeXLive: Installing font package and updating font map fails

Stefan Husmann wrote:

Edit /home/$USER/.texlive/texmf-config/web2c/updmap.cfg to include

Map ntx.map

and run updmap again.

Okay, I delete my .texlive/ tree and ran just updmap; I then edited updmap.cfg adding Map ntx.map, and ran updmap.cfg again:

$ updmap
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.

As you can see - same result as if I had just run $ updmap --enable Map=ntx.map .

Did you manage to install newtx the way I am trying it to do?


ConnorBehan wrote:

In addition to texhash, you could try

mktexmf --all

When updmap complains about missing ntx.map, can you find that file by using locate?

I ran that command, but it won't change anything. What exactly is it supposed to do? And I don't seem to have 'locate'. Is that a bash buildin? I am running zsh.

Last edited by Stalafin (2012-06-19 01:01:20)

Offline

#5 2012-06-19 07:12:53

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: [SOLVED] TeXLive: Installing font package and updating font map fails

Oh it's part of the mlocate package. It will search your entire filesystem for a filename but there are other programs that do the same. I just meant, can you find ntx.map yourself? If so, you could put it in a new directory or let tex know with the TEXINPUTS environment variable.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#6 2012-06-19 20:06:08

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

Re: [SOLVED] TeXLive: Installing font package and updating font map fails

ConnorBehan wrote:

Oh it's part of the mlocate package. It will search your entire filesystem for a filename but there are other programs that do the same. I just meant, can you find ntx.map yourself? If so, you could put it in a new directory or let tex know with the TEXINPUTS environment variable.

I really don't think that this makes a lot of sense as regards TeXlive; I have checked (with kpsewhich --var-value) if indeed all variables TEXMFHOME, TEXMFVAR, and TEXMFCONFIG are pointing to reasonable places, and indeed they do.

I have found this guide:
http://people.debian.org/~preining/TeX/ … n/ch4.html

Although it is Debian, I figure one can easily adapt it. So I tried that, and placed ntx.map in TEXMFHOME/fonts/map/$SYNTAX/newtx/ntx.map . I wasn't sure about $SYNTAX, so I just tried it with dvips. This time, $ updmap --enable Map=ntx.map did actually work, and there were not errors:

$ updmap --enable Map=ntx.map
copy /etc/texmf/web2c/updmap.cfg => /home/janis/.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         [130 files]

Generating output for dvipdfm...
Generating output for ps2pk...
Generating output for dvips...
Generating output for pdftex...

Files generated:
  /home/$USER/.texlive/texmf-var/fonts/map/dvips/updmap:
       11493 2012-06-19 21:57:22 builtin35.map
       15956 2012-06-19 21:57:22 download35.map
      523074 2012-06-19 21:57:22 psfonts_pk.map
      747564 2012-06-19 21:57:22 psfonts_t1.map
      747559 2012-06-19 21:57:22 ps2pk.map
          14 2012-06-19 21:57:24 psfonts.map -> psfonts_t1.map
  /home/$USER/.texlive/texmf-var/fonts/map/pdftex/updmap:
      747566 2012-06-19 21:57:23 pdftex_dl14.map
      745992 2012-06-19 21:57:23 pdftex_ndl14.map
          15 2012-06-19 21:57:24 pdftex.map -> pdftex_dl14.map
  /home/$USER/.texlive/texmf-var/fonts/map/dvipdfm/updmap:
         339 2012-06-19 21:57:22 kanjix.map

Transcript written on "/home/$USER/.texlive/texmf-var/web2c/updmap.log".
/usr/bin/updmap: Updating ls-R files.

There indeed now is a 'Map ntx.map' at ~/.texlive/texmf-config/web2c/updmap.cfg . However, compilation of a document containg `\usepackage{newtx}` still fails (see the bttom of this wall of text):

pdflatex test.tex
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2012/dev/Arch Linux)
 restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2011-07-01, ngerman-x-2011-07-01, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian,
 icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, or
iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji,
 lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, pol
ish, portuguese, romanian, russian, sanskrit, serbian, serbianc, slovak, sloven
ian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded
.
(/usr/share/texmf-dist/tex/latex/base/minimal.cls
Document Class: minimal 2001/05/25 Standard LaTeX minimal class
) (/usr/share/texmf-dist/tex/latex/libertine/libertine.sty
(/usr/share/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/share/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(/usr/share/texmf-dist/tex/latex/lettrine/lettrine.sty
Loading lettrine.cfg
(/usr/share/texmf-dist/tex/latex/lettrine/lettrine.cfg))
(/usr/share/texmf-dist/tex/latex/tools/calc.sty)
(/usr/share/texmf-dist/tex/latex/libertine/fxl.inc)
(/usr/share/texmf-dist/tex/latex/libertine/fxb.inc)
(/usr/share/texmf-dist/tex/latex/libertine/fxk.inc)
(/usr/share/texmf-dist/tex/latex/libertine/fxi.inc))
(/usr/share/texmf-dist/tex/latex/base/fontenc.sty
(/usr/share/texmf-dist/tex/latex/base/t1enc.def))
(/usr/share/texmf-dist/tex/latex/mh/mathtools.sty
(/usr/share/texmf-dist/tex/latex/mh/mhsetup.sty)
(/usr/share/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texmf-dist/tex/latex/amsmath/amsopn.sty)))
(/home/janis/texmf/tex/latex/newtx/newtxmath.sty
`newtxmath' v0.96, 2012/06/05 Math macros based on txfonts (msharpe)
(/usr/share/texmf-dist/tex/generic/kastrup/binhex.tex)
(/usr/share/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texmf-dist/tex/generic/xkeyval/xkeyval.tex))) (./test.aux)
(/home/janis/texmf/tex/latex/newtx/omlntxmi.fd)
(/home/janis/texmf/tex/latex/newtx/omsntxsy.fd)
(/home/janis/texmf/tex/latex/newtx/omxntxex.fd)
(/home/janis/texmf/tex/latex/newtx/untxexa.fd)
(/usr/share/texmf-dist/tex/latex/libertine/t1fxl.fd)
(/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/share/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/usr/share/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/share/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/usr/share/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
))) (/usr/share/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
(/usr/share/texmf-dist/tex/generic/oberdiek/ifpdf.sty))
(/usr/share/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(/usr/share/texmf-dist/tex/latex/oberdiek/grfext.sty
(/usr/share/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty))
(/usr/share/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(/usr/share/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/usr/share/texmf-dist/tex/generic/oberdiek/etexcmds.sty)))
(/usr/share/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg)))
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.
kpathsea: Appending font creation commands to missfont.log.

! Font OML/ntxmi/m/it/10=ntxmi at 10.0pt not loadable: Metric (TFM) file not fo
und.
<to be read again> 
                   relax 
l.13 \begin{equation*}


EDIT: Of course, everything else from the newtx pacakge was still in TEXMFHOME/tex/latex/newtx/ .

Last edited by Stalafin (2012-06-19 20:08:30)

Offline

Board footer

Powered by FluxBB