[texhax] Can't install stix2 fonts

Howard Ross howardalfredross at gmail.com
Tue Jul 31 22:04:01 CEST 2018


I have been trying to load the stix2-type1 font set with no luck. Perhaps you can help.

My apologies, but the following is lengthy, just to show where I have put files, and the commands I have run with their output.

I am working on a Mac, and I have texstudio and texlive installed. While I have no experience with TeX, I have been a computer user for 40 years on Mac, Windows and UNIX (as well as VAX-VMS and IBM VM).

I'm hoping that you can indicate either where I have gone wrong or where there are critical steps missing from online documentation.

Hopefully yours,
Howard

++++++++++++++
Starting files
++++++++++++++

I downloaded the stix2-type1.zip from CTAN. It contains:

$ ls -l
total 3064
-rw-rw-r--@  1 hros001  staff      953 13 Apr 16:19 README
drwxrwxr-x@ 26 hros001  staff      832 13 Apr 16:23 enc
drwxrwxr-x@  7 hros001  staff      224 13 Apr 16:22 pfb
drwxrwxr-x@ 41 hros001  staff     1312 13 Apr 14:37 pl
-rw-rw-r--@  1 hros001  staff   197081 13 Apr 15:48 stix2.dtx
-rw-rw-r--@  1 hros001  staff     8798 13 Apr 14:37 stix2.fdd
-rw-rw-r--@  1 hros001  staff     4461 13 Apr 14:37 stix2.map
-rw-rw-r--@  1 hros001  staff  1335964 13 Apr 16:20 stix2.pdf
drwxrwxr-x@ 41 hros001  staff     1312 13 Apr 16:23 tfm


++++++++++++++
Documentation
++++++++++++++
The best documentation that I can find on how to install a font is
http://www.tug.org/fonts/fontinstall.html

and I have been trying to follow it.

Since the directory structure in the stix2 distribution did not match that mentioned in the installation guide, I have tried to reproduce it based on 
http://www.tug.org/tds/tds.pdf

+++++++++++++++++
File distribution
+++++++++++++++++
I created directories and copied files to them as best I could given the information in the TDS document. Here are the files in each directory.

$ pwd
/usr/local/texlive/texmf-local/fonts

$ ls -l -R
total 0
drwxr-xr-x  3 root  wheel   96 31 Jul 14:03 enc
drwxr-xr-x  4 root  wheel  128 31 Jul 14:13 map
drwxr-xr-x  4 root  wheel  128 31 Jul 13:58 source
drwxr-xr-x  4 root  wheel  128 31 Jul 13:55 tfm
drwxr-xr-x  4 root  wheel  128 31 Jul 14:00 type1
drwxr-xr-x  3 root  wheel   96 28 Jul 08:40 vf

./enc:
total 0
drwxr-xr-x  3 root  wheel  96 31 Jul 14:04 dvips

./enc/dvips:
total 0
drwxr-xr-x  26 root  wheel  832 31 Jul 14:04 stix2

./enc/dvips/stix2:
total 224
-rw-r--r--@ 1 root  wheel  2904 31 Jul 14:03 stix2-mathbb.enc
-rw-r--r--@ 1 root  wheel  3037 31 Jul 14:03 stix2-mathbbit.enc
-rw-r--r--@ 1 root  wheel  3356 31 Jul 14:03 stix2-mathcal.enc
-rw-r--r--@ 1 root  wheel  3374 31 Jul 14:03 stix2-mathex.enc
-rw-r--r--@ 1 root  wheel  2803 31 Jul 14:03 stix2-mathfrak-bold.enc
-rw-r--r--@ 1 root  wheel  2841 31 Jul 14:03 stix2-mathfrak.enc
-rw-r--r--@ 1 root  wheel  3402 31 Jul 14:03 stix2-mathit-bold.enc
-rw-r--r--@ 1 root  wheel  3416 31 Jul 14:03 stix2-mathit.enc
-rw-r--r--@ 1 root  wheel  3232 31 Jul 14:03 stix2-mathrm-bold.enc
-rw-r--r--@ 1 root  wheel  3159 31 Jul 14:03 stix2-mathrm.enc
-rw-r--r--@ 1 root  wheel  2883 31 Jul 14:03 stix2-mathscr-bold.enc
-rw-r--r--@ 1 root  wheel  2985 31 Jul 14:03 stix2-mathscr.enc
-rw-r--r--@ 1 root  wheel  3201 31 Jul 14:03 stix2-mathsf-bold.enc
-rw-r--r--@ 1 root  wheel  3241 31 Jul 14:03 stix2-mathsf.enc
-rw-r--r--@ 1 root  wheel  3170 31 Jul 14:03 stix2-mathsfit-bold.enc
-rw-r--r--@ 1 root  wheel  3208 31 Jul 14:03 stix2-mathsfit.enc
-rw-r--r--@ 1 root  wheel  2841 31 Jul 14:03 stix2-mathtt.enc
-rw-r--r--@ 1 root  wheel  2102 31 Jul 14:03 stix2-ot1.enc
-rw-r--r--@ 1 root  wheel  2269 31 Jul 14:03 stix2-ot1sc.enc
-rw-r--r--@ 1 root  wheel  6739 31 Jul 14:03 stix2-ot2.enc
-rw-r--r--@ 1 root  wheel  6794 31 Jul 14:03 stix2-ot2sc.enc
-rw-r--r--@ 1 root  wheel  7007 31 Jul 14:03 stix2-t1.enc
-rw-r--r--@ 1 root  wheel  7017 31 Jul 14:03 stix2-t1sc.enc
-rw-r--r--@ 1 root  wheel  2923 31 Jul 14:03 stix2-ts1.enc

./map:
total 16
drwxr-xr-x  3 root  wheel    96 31 Jul 14:13 dvips

./map/dvips:
total 0
drwxr-xr-x  3 root  wheel  96 31 Jul 14:14 stix2

./map/dvips/stix2:
total 16
-rw-r--r--@ 1 root  wheel  4461 31 Jul 14:14 stix2.map

./source:
total 0
drwxr-xr-x  2 root  wheel  64 28 Jul 08:40 local
drwxr-xr-x  3 root  wheel  96 31 Jul 13:58 public

./source/local:

./source/public:
total 0
drwxr-xr-x  41 root  wheel  1312 31 Jul 13:48 stix2

./source/public/stix2:
total 5880
-rw-r--r--@ 1 root  wheel   49637 31 Jul 13:48 ot1-stix2text-bold.pl
-rw-r--r--@ 1 root  wheel   54629 31 Jul 13:48 ot1-stix2text-bolditalic.pl
-rw-r--r--@ 1 root  wheel   54590 31 Jul 13:48 ot1-stix2text-italic.pl
-rw-r--r--@ 1 root  wheel   49573 31 Jul 13:48 ot1-stix2text.pl
-rw-r--r--@ 1 root  wheel   46108 31 Jul 13:48 ot1-stix2textsc-bold.pl
-rw-r--r--@ 1 root  wheel   46123 31 Jul 13:48 ot1-stix2textsc.pl
-rw-r--r--@ 1 root  wheel   83794 31 Jul 13:48 ot2-stix2text-bold.pl
-rw-r--r--@ 1 root  wheel   81977 31 Jul 13:48 ot2-stix2text-bolditalic.pl
-rw-r--r--@ 1 root  wheel   81952 31 Jul 13:48 ot2-stix2text-italic.pl
-rw-r--r--@ 1 root  wheel   83767 31 Jul 13:48 ot2-stix2text.pl
-rw-r--r--@ 1 root  wheel   79182 31 Jul 13:48 ot2-stix2textsc-bold.pl
-rw-r--r--@ 1 root  wheel   79106 31 Jul 13:48 ot2-stix2textsc.pl
-rw-r--r--@ 1 root  wheel   26860 31 Jul 13:48 stix2-mathbb.pl
-rw-r--r--@ 1 root  wheel   17787 31 Jul 13:48 stix2-mathbbit.pl
-rw-r--r--@ 1 root  wheel   31086 31 Jul 13:48 stix2-mathcal.pl
-rw-r--r--@ 1 root  wheel   23499 31 Jul 13:48 stix2-mathex.pl
-rw-r--r--@ 1 root  wheel   30003 31 Jul 13:48 stix2-mathfrak-bold.pl
-rw-r--r--@ 1 root  wheel   30022 31 Jul 13:48 stix2-mathfrak.pl
-rw-r--r--@ 1 root  wheel   34730 31 Jul 13:48 stix2-mathit-bold.pl
-rw-r--r--@ 1 root  wheel   35615 31 Jul 13:48 stix2-mathit.pl
-rw-r--r--@ 1 root  wheel   33935 31 Jul 13:48 stix2-mathrm-bold.pl
-rw-r--r--@ 1 root  wheel   36891 31 Jul 13:48 stix2-mathrm.pl
-rw-r--r--@ 1 root  wheel   30274 31 Jul 13:48 stix2-mathscr-bold.pl
-rw-r--r--@ 1 root  wheel   30836 31 Jul 13:48 stix2-mathscr.pl
-rw-r--r--@ 1 root  wheel   33867 31 Jul 13:48 stix2-mathsf-bold.pl
-rw-r--r--@ 1 root  wheel   26367 31 Jul 13:48 stix2-mathsf.pl
-rw-r--r--@ 1 root  wheel   34608 31 Jul 13:48 stix2-mathsfit-bold.pl
-rw-r--r--@ 1 root  wheel   26274 31 Jul 13:48 stix2-mathsfit.pl
-rw-r--r--@ 1 root  wheel   23081 31 Jul 13:48 stix2-mathtt.pl
-rw-r--r--@ 1 root  wheel  252684 31 Jul 13:48 t1-stix2text-bold.pl
-rw-r--r--@ 1 root  wheel  275540 31 Jul 13:48 t1-stix2text-bolditalic.pl
-rw-r--r--@ 1 root  wheel  275446 31 Jul 13:48 t1-stix2text-italic.pl
-rw-r--r--@ 1 root  wheel  252454 31 Jul 13:48 t1-stix2text.pl
-rw-r--r--@ 1 root  wheel  263319 31 Jul 13:48 t1-stix2textsc-bold.pl
-rw-r--r--@ 1 root  wheel  263415 31 Jul 13:48 t1-stix2textsc.pl
-rw-r--r--@ 1 root  wheel    7861 31 Jul 13:48 ts1-stix2text-bold.pl
-rw-r--r--@ 1 root  wheel    8334 31 Jul 13:48 ts1-stix2text-bolditalic.pl
-rw-r--r--@ 1 root  wheel    8351 31 Jul 13:48 ts1-stix2text-italic.pl
-rw-r--r--@ 1 root  wheel    7784 31 Jul 13:48 ts1-stix2text.pl

./tfm:
total 0
drwxr-xr-x  2 root  wheel  64 28 Jul 08:40 local
drwxr-xr-x  3 root  wheel  96 31 Jul 13:55 public

./tfm/local:

./tfm/public:
total 0
drwxr-xr-x  41 root  wheel  1312 31 Jul 13:46 stix2

./tfm/public/stix2:
total 760
-rw-r--r--@ 1 root  wheel   6680 31 Jul 13:46 ot1-stix2text-bold.tfm
-rw-r--r--@ 1 root  wheel   7268 31 Jul 13:46 ot1-stix2text-bolditalic.tfm
-rw-r--r--@ 1 root  wheel   7240 31 Jul 13:46 ot1-stix2text-italic.tfm
-rw-r--r--@ 1 root  wheel   6672 31 Jul 13:46 ot1-stix2text.tfm
-rw-r--r--@ 1 root  wheel   6140 31 Jul 13:46 ot1-stix2textsc-bold.tfm
-rw-r--r--@ 1 root  wheel   6140 31 Jul 13:46 ot1-stix2textsc.tfm
-rw-r--r--@ 1 root  wheel   8944 31 Jul 13:46 ot2-stix2text-bold.tfm
-rw-r--r--@ 1 root  wheel   8716 31 Jul 13:46 ot2-stix2text-bolditalic.tfm
-rw-r--r--@ 1 root  wheel   8708 31 Jul 13:46 ot2-stix2text-italic.tfm
-rw-r--r--@ 1 root  wheel   8964 31 Jul 13:46 ot2-stix2text.tfm
-rw-r--r--@ 1 root  wheel   8260 31 Jul 13:46 ot2-stix2textsc-bold.tfm
-rw-r--r--@ 1 root  wheel   8260 31 Jul 13:46 ot2-stix2textsc.tfm
-rw-r--r--@ 1 root  wheel   2024 31 Jul 13:46 stix2-mathbb.tfm
-rw-r--r--@ 1 root  wheel   1544 31 Jul 13:46 stix2-mathbbit.tfm
-rw-r--r--@ 1 root  wheel   1984 31 Jul 13:46 stix2-mathcal.tfm
-rw-r--r--@ 1 root  wheel   1684 31 Jul 13:46 stix2-mathex.tfm
-rw-r--r--@ 1 root  wheel   2184 31 Jul 13:46 stix2-mathfrak-bold.tfm
-rw-r--r--@ 1 root  wheel   2188 31 Jul 13:46 stix2-mathfrak.tfm
-rw-r--r--@ 1 root  wheel   2676 31 Jul 13:46 stix2-mathit-bold.tfm
-rw-r--r--@ 1 root  wheel   2564 31 Jul 13:46 stix2-mathit.tfm
-rw-r--r--@ 1 root  wheel   2656 31 Jul 13:46 stix2-mathrm-bold.tfm
-rw-r--r--@ 1 root  wheel   3100 31 Jul 13:46 stix2-mathrm.tfm
-rw-r--r--@ 1 root  wheel   2208 31 Jul 13:46 stix2-mathscr-bold.tfm
-rw-r--r--@ 1 root  wheel   2200 31 Jul 13:46 stix2-mathscr.tfm
-rw-r--r--@ 1 root  wheel   2432 31 Jul 13:46 stix2-mathsf-bold.tfm
-rw-r--r--@ 1 root  wheel   1880 31 Jul 13:46 stix2-mathsf.tfm
-rw-r--r--@ 1 root  wheel   2644 31 Jul 13:46 stix2-mathsfit-bold.tfm
-rw-r--r--@ 1 root  wheel   1964 31 Jul 13:46 stix2-mathsfit.tfm
-rw-r--r--@ 1 root  wheel   1468 31 Jul 13:46 stix2-mathtt.tfm
-rw-r--r--@ 1 root  wheel  28532 31 Jul 13:46 t1-stix2text-bold.tfm
-rw-r--r--@ 1 root  wheel  30864 31 Jul 13:46 t1-stix2text-bolditalic.tfm
-rw-r--r--@ 1 root  wheel  30900 31 Jul 13:46 t1-stix2text-italic.tfm
-rw-r--r--@ 1 root  wheel  28540 31 Jul 13:46 t1-stix2text.tfm
-rw-r--r--@ 1 root  wheel  28324 31 Jul 13:46 t1-stix2textsc-bold.tfm
-rw-r--r--@ 1 root  wheel  28348 31 Jul 13:46 t1-stix2textsc.tfm
-rw-r--r--@ 1 root  wheel   1480 31 Jul 13:46 ts1-stix2text-bold.tfm
-rw-r--r--@ 1 root  wheel   1568 31 Jul 13:46 ts1-stix2text-bolditalic.tfm
-rw-r--r--@ 1 root  wheel   1556 31 Jul 13:46 ts1-stix2text-italic.tfm
-rw-r--r--@ 1 root  wheel   1460 31 Jul 13:46 ts1-stix2text.tfm

./type1:
total 0
drwxr-xr-x  2 root  wheel  64 28 Jul 08:40 local
drwxr-xr-x  3 root  wheel  96 31 Jul 14:00 public

./type1/local:

./type1/public:
total 0
drwxr-xr-x  7 root  wheel  224 31 Jul 14:00 stix2

./type1/public/stix2:
total 6080
-rw-r--r--@ 1 root  wheel  1095268 31 Jul 13:52 STIX2Math.pfb
-rw-r--r--@ 1 root  wheel   537414 31 Jul 13:52 STIX2Text-Bold.pfb
-rw-r--r--@ 1 root  wheel   488859 31 Jul 13:52 STIX2Text-BoldItalic.pfb
-rw-r--r--@ 1 root  wheel   452561 31 Jul 13:52 STIX2Text-Italic.pfb
-rw-r--r--@ 1 root  wheel   526217 31 Jul 13:52 STIX2Text-Regular.pfb

./vf:
total 0
drwxr-xr-x  2 root  wheel  64 28 Jul 08:40 local

./vf/local:

++++++++++++
stix2.fdd
++++++++++++
The TDS document dealt with all of the files except stix2.fdd. On the advice given at
https://tex.stackexchange.com/questions/430749/problem-with-stix-fonts-in-texlive-2018

I copied the .fdd file to /usr/local/texlive/2018/texmf-dist/source/fonts/stix2

and ran 
$ tex stix2.fdd

This produced:

$ ls -l /usr/local/texlive/2018/texmf-dist/source/fonts/stix2
total 136
-rw-r--r--  1 root  wheel  1832 31 Jul 14:23 ls1stix2.fd
-rw-r--r--  1 root  wheel  1799 31 Jul 14:23 ls1stix2bb.fd
-rw-r--r--  1 root  wheel  1690 31 Jul 14:23 ls1stix2frak.fd
-rw-r--r--  1 root  wheel  1747 31 Jul 14:23 ls1stix2scr.fd
-rw-r--r--  1 root  wheel  1869 31 Jul 14:23 ls1stix2sf.fd
-rw-r--r--  1 root  wheel  1832 31 Jul 14:23 ls2stix2.fd
-rw-r--r--  1 root  wheel  1685 31 Jul 14:23 ls2stix2cal.fd
-rw-r--r--  1 root  wheel  1656 31 Jul 14:23 ls2stix2ex.fd
-rw-r--r--  1 root  wheel  1674 31 Jul 14:23 ls2stix2tt.fd
-rw-r--r--  1 root  wheel  2265 31 Jul 14:23 ot1stix2.fd
-rw-r--r--  1 root  wheel  2265 31 Jul 14:23 ot2stix2.fd
-rw-r--r--@ 1 root  wheel  8798 31 Jul 14:22 stix2.fdd
-rw-r--r--  1 root  wheel  4039 31 Jul 14:23 stix2.log
-rw-r--r--  1 root  wheel  2241 31 Jul 14:23 t1stix2.fd
-rw-r--r--  1 root  wheel  2260 31 Jul 14:23 ts1stix2.fd

+++++++++++++++++++++++
TeX filename database
+++++++++++++++++++++++
Then I updated the TeX filename database (following http://www.tug.org/fonts/fontinstall.html)

$ sudo -H mktexlsr
mktexlsr: Updating /usr/local/texlive/2018/texmf-config/ls-R... 
mktexlsr: Updating /usr/local/texlive/2018/texmf-dist/ls-R... 
mktexlsr: Updating /usr/local/texlive/2018/texmf-var/ls-R... 
mktexlsr: Updating /usr/local/texlive/texmf-local/ls-R... 
mktexlsr: Done.

+++++++++++++++++++++
Font map
+++++++++++++++++++++
I updated the font map.

$ sudo -H updmap-sys --force --enable Map=stix2.map
updmap will read the following updmap.cfg files (in precedence order):
  /usr/local/texlive/2018/texmf-dist/web2c/updmap.cfg
updmap may write changes to the following updmap.cfg file:
  /usr/local/texlive/2018/texmf-config/web2c/updmap.cfg
Creating new config file /usr/local/texlive/2018/texmf-config/web2c/updmap.cfg
dvips output dir: "/usr/local/texlive/2018/texmf-var/fonts/map/dvips/updmap"
pdftex output dir: "/usr/local/texlive/2018/texmf-var/fonts/map/pdftex/updmap"
dvipdfmx output dir: "/usr/local/texlive/2018/texmf-var/fonts/map/dvipdfmx/updmap"

updmap is creating new map files
using the following configuration:
  LW35 font names                  : URWkb (/usr/local/texlive/2018/texmf-dist/web2c/updmap.cfg)
  prefer outlines                  : true (/usr/local/texlive/2018/texmf-dist/web2c/updmap.cfg)
  texhash enabled                  : true
  download standard fonts (dvips)  : true (/usr/local/texlive/2018/texmf-dist/web2c/updmap.cfg)
  download standard fonts (pdftex) : true (/usr/local/texlive/2018/texmf-dist/web2c/updmap.cfg)
  jaEmbed replacement string       : ipaex (/usr/local/texlive/2018/texmf-dist/web2c/updmap.cfg)
  jaVariant replacement string     : <empty> (default)
  scEmbed replacement string       : arphic (/usr/local/texlive/2018/texmf-dist/web2c/updmap.cfg)
  tcEmbed replacement string       : arphic (/usr/local/texlive/2018/texmf-dist/web2c/updmap.cfg)
  koEmbed replacement string       : baekmuk (/usr/local/texlive/2018/texmf-dist/web2c/updmap.cfg)
  create a mapfile for pxdvi       : false (default)

Scanning for LW35 support files  [  3 files]
Scanning for MixedMap entries    [ 44 files]
Scanning for KanjiMap entries    [ 11 files]
Scanning for Map entries         [271 files]

Generating output for dvipdfmx...
Generating output for ps2pk...
Generating output for dvips...
Generating output for pdftex...

Files generated:
  /usr/local/texlive/2018/texmf-var/fonts/map/dvips/updmap:
       15796 2018-07-31 14:27:20 builtin35.map
       21269 2018-07-31 14:27:20 download35.map
     2465655 2018-07-31 14:27:20 psfonts_pk.map
     2726550 2018-07-31 14:27:20 psfonts_t1.map
     2720839 2018-07-31 14:27:20 ps2pk.map
          14 2018-07-31 14:27:21 psfonts.map -> psfonts_t1.map
  /usr/local/texlive/2018/texmf-var/fonts/map/pdftex/updmap:
     2720846 2018-07-31 14:27:21 pdftex_dl14.map
     2719181 2018-07-31 14:27:21 pdftex_ndl14.map
          15 2018-07-31 14:27:21 pdftex.map -> pdftex_dl14.map
  /usr/local/texlive/2018/texmf-var/fonts/map/dvipdfmx/updmap:
        8565 2018-07-31 14:27:19 kanjix.map

Transcript written on "/usr/local/texlive/2018/texmf-var/web2c/updmap.log".
updmap: Updating ls-R files.

+++++++++++++++++
Results
+++++++++++++++++
Updating the system font map appears to have failed. The font map that I specified was not read and TeX does not recognise the font.

If I put
    \usepackage{stix2}
in a file, I get the error
    File `stix2.sty' not found.

Also if I use
$ tex testfont
This is TeX, Version 3.14159265 (TeX Live 2018) (preloaded format=tex)
(/usr/local/texlive/2018/texmf-dist/tex/plain/knuth-lib/testfont.tex

Name of the font to test = stix2

kpathsea: Running mktextfm stix2
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input stix2
This is METAFONT, Version 2.7182818 (TeX Live 2018) (preloaded base=mf)


kpathsea: Running mktexmf stix2
! I can't find file `stix2'.
<*> ...e:=ljfour; mag:=1; nonstopmode; input stix2
                                                  
Please type another input file name
! Emergency stop.
<*> ...e:=ljfour; mag:=1; nonstopmode; input stix2
                                                  
Transcript written on mfput.log.
grep: stix2.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input stix2' failed to make stix2.tfm.
kpathsea: Appending font creation commands to missfont.log.
! Font \testfont=stix2 not loadable: Metric (TFM) file not found.

++++++++++++++++++
Created updmap.cfg
++++++++++++++++++

I tried editing the updmap.cfg file at /usr/local/texlive/2018/texmf-dist/web2c, and reran updmap-sys without success.

I created a local version of the updmap.cfg file
$ more /usr/local/texlive/texmf-local/web2c/updmap.cfg
Map stix2.map

and reran updmap-sys also without success.

Can you help?
—
Howard Ross
Kingston, ON Canada
howardalfredross at gmail.com




More information about the texhax mailing list