2

I'm trying to set up my preferred mix of fonts from mathptmx and newtxmath. This would require using the largsymbols font from newtxmath, since I like its integrals better than those from mathptmx. However, this one font just won't load. Here is a simple snippet illustrating the problem:

\documentclass[a4paper]{report}
\DeclareSymbolFont{largesymbols}{OMX}{ntxex}{m}{n}

\begin{document}
$\forall\exists<>\leq\geq\int\subseteq\supseteq$
\[\int abcdefghijklmnopqrstuvwxyz+-=\alpha\]
\end{document}

Result with pdfTeX:

This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./newtxtest2.tex
LaTeX2e <2014/05/01>
Babel <3.9k> and hyphenation patterns for 78 languages loaded.
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/report.cls
Document Class: report 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/size10.clo))
(./newtxtest2.aux)

LaTeX Font Warning: Font shape `OMX/ntxex/m/n' undefined
(Font)              using `OMX/cmex/m/n' instead on input line 5.

[1{/usr/local/texlive/2014/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./newtxtest2.aux)

LaTeX Font Warning: Some font shapes were not available, defaults substituted.

 )</usr/local/texlive/2014/texmf-dist/fonts/type1/public/amsfonts/cm/cmex10.pfb
></usr/local/texlive/2014/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb>
</usr/local/texlive/2014/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></
usr/local/texlive/2014/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb>
Output written on newtxtest2.pdf (1 page, 37359 bytes).
SyncTeX written on newtxtest2.synctex.gz.
Transcript written on newtxtest2.log.

enter image description here

Same goes for XeLaTeX. Now, in a more complicated situation with a package of mine, I got an error. In this case, I get a warning, and the wrong shape for the integral: I get the Computer Modern one, the default one, if I read that cmex correctly. Indeed, adding

\SetSymbolFont{largesymbols}{bold}{OMX}{ntxex}{b}{n}
  \DeclareFontSubstitution{OMX}{ntxex}{m}{n}

produces, with XeLaTeX:

This is XeTeX, Version 3.14159265-2.6-0.99991 (TeX Live 2014) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
(./newtxtest2.tex
LaTeX2e <2014/05/01>
Babel <3.9k> and hyphenation patterns for 78 languages loaded.
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/report.cls
Document Class: report 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/size10.clo))
(./newtxtest2.aux)
No file OMXntxex.fd.

./newtxtest2.tex:6: LaTeX Error: This NFSS system isn't set up properly.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.6 \begin{document}

Yet the code is copied literally from the package, so what is going on here? Why is that .fd not found? I know where it is, but TeX seems not to, and if I put it where TeX can find it, it starts doing strange things and calling metafont and ending up with no .tfm:

[…]
kpathsea: Running mktextfm bickham-r
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input bickham-r
This is METAFONT, Version 2.7182818 (TeX Live 2014) (preloaded base=mf)

kpathsea: Running mktexmf bickham-r

! I can't find file `bickham-r'.
<*> ...jfour; mag:=1; nonstopmode; input bickham-r

Please type another input file name
! Emergency stop.

Why is this coming about? How do I get the desired shape for the integral symbol without loading newtxmath directly?

MickG
  • 5,426
  • There is no such file. Hence, it cannot be found. *Which* package did you copy those lines from? Certainly not newtxmath.sty. – cfr Apr 19 '15 at 19:26
  • There is no OMX encoded font ntxex. The newtxmath package uses a different encoding for the math extension font called LMX. – egreg Apr 19 '15 at 19:26
  • Note that the equivalent of the .fd file for the LMX encoding and the setup of that encoding are part of newtxmath.sty. So you cannot use those lines on their own substituting LMX either. – cfr Apr 19 '15 at 19:32
  • I have found the .fd file with newtxmath.sty, in the same directory I mean; 2) newtxmath.sty has precisely that line on my HD; 3) Indeed I tried LMX and it didn't work.
  • – MickG Apr 19 '15 at 19:41
  • Those lines are not in the copy of newtxmath.sty which I have. – cfr Apr 19 '15 at 19:48
  • Curious. Has that package been changed since the last TeXLive release? I should be up-to-date up to that time. – MickG Apr 19 '15 at 19:49
  • I'm using the frozen TL 2014 release. That is, I've updated TL 2014 as far as possible but that's it. Note that the string ntxexv does not occur in my copy of newtxmath.sty at all. (I know you're not using it but it is in the snippet you showed.) – cfr Apr 19 '15 at 19:50
  • What does your newtxmath say instead of what I have? – MickG Apr 19 '15 at 19:53
  • @MickG Are you using pretest? The package has been updated since the freeze. I have the set up of the LMX encoding etc. – cfr Apr 19 '15 at 19:55
  • So you have what you put in your answer? – MickG Apr 19 '15 at 19:56
  • No. Not quite. Hang on a minute... Here is what I have. But the package has since been updated with changes to the maths extension configuration (according to the readme on CTAN). So if you are using pretest, you very likely have something different. What is the date of the file you have? EDIT: v. 1.434 2015/04/07. – cfr Apr 19 '15 at 19:58
  • \def\fileversion{1.11} \def\filedate{2013/05/25} \ProvidesPackage{newtxmath} [\filedate\space v\fileversion] – MickG Apr 19 '15 at 20:03
  • However, the updated version on CTAN has the same as mine, even though it is a newer version... – cfr Apr 19 '15 at 20:04
  • @MickG That is old... You're not using TeX Live 2014? – cfr Apr 19 '15 at 20:05
  • Whoops, wrong directory, I have \def\fileversion{1.27} \def\filedate{2014/04/26} and the same as you for largesymbols. I have two distributions on my computer and copied code from the wrong one accidentally. – MickG Apr 19 '15 at 20:08