Discussion:
dvips font problem
(too old to reply)
Russ P.
2018-09-26 20:03:48 UTC
Permalink
I am using LaTeX for an AIAA journal paper:

\documentclass[11pt]{new-aiaa}

I use dvips as intermediate step in converting to pdf, and it has worked for me for many years, but now it is having font problems (see output below). Can someone give me a clue about how to make it work? Thanks.


This is dvips(k) 5.96.1 Copyright 2007 Radical Eye Software (www.radicaleye.com)
' TeX output 2018.09.26:1236' -> trajspec-JAT.ps
kpathsea: Running mktexpk --mfmode ljfour --bdpi 600 --mag 1+48/600 --dpi 648 ec-qhvr
mktexpk: don't know how to create bitmap font for ec-qhvr.
kpathsea: Appending font creation commands to missfont.log.
dvips: Font ec-qhvr not found, characters will be left blank.
dvips: Can't open font metric file ec-qhvr.tfm
dvips: I will use cmr10.tfm instead, so expect bad output.
dvips: Checksum mismatch in ec-qhvr
kpathsea: Running mktexpk --mfmode ljfour --bdpi 600 --mag 1+0/600 --dpi 600 ntx-Regular-tlf-t1
mktexpk: don't know how to create bitmap font for ntx-Regular-tlf-t1.
dvips: Font ntx-Regular-tlf-t1 not found, characters will be left blank.
dvips: Can't open font metric file ntx-Regular-tlf-t1.tfm
dvips: I will use cmr10.tfm instead, so expect bad output.
dvips: Checksum mismatch in ntx-Regular-tlf-t1
kpathsea: Running mktexpk --mfmode ljfour --bdpi 600 --mag 1+437/600 --dpi 1037 ntx-Bold-tlf-t1
mktexpk: don't know how to create bitmap font for ntx-Bold-tlf-t1.
dvips: Font ntx-Bold-tlf-t1 not found, characters will be left blank.
dvips: Can't open font metric file ntx-Bold-tlf-t1.tfm
dvips: I will use cmr10.tfm instead, so expect bad output.
dvips: Checksum mismatch in ntx-Bold-tlf-t1
dvips: Checksum mismatch in ts1-qtmr
kpathsea: Running mktexpk --mfmode ljfour --bdpi 600 --mag 1+0/600 --dpi 600 ntx-Italic-tlf-t1
Peter Flynn
2018-09-26 21:06:20 UTC
Permalink
Post by Russ P.
\documentclass[11pt]{new-aiaa}
I use dvips as intermediate step in converting to pdf, and it has
worked for me for many years,
Is there some reason you are using this route?
The normal method nowadays is to use pdflatex or XeLaTeX which create
PDF directly.
Post by Russ P.
but now it is having font problems (see output below). Can someone
give me a clue about how to make it work? Thanks.
This is dvips(k) 5.96.1 Copyright 2007 Radical Eye Software (www.radicaleye.com)
' TeX output 2018.09.26:1236' -> trajspec-JAT.ps
kpathsea: Running mktexpk --mfmode ljfour --bdpi 600 --mag 1+48/600 --dpi 648 ec-qhvr
As far as I know, the EC fonts are installed by default, but it's
possible that they have only been installed for PDFTeX on your system,
not for dvips. Can you run updmap with the --verbose option and see if
that regenerates the dvips.map file?
Post by Russ P.
kpathsea: Running mktexpk --mfmode ljfour --bdpi 600 --mag 1+0/600 --dpi 600 ntx-Regular-tlf-t1
For the newtx fonts you may need to add the manually if they weren't
installed automatically. Assuming you do actually have the newtx font
files installed in the right places¹, you type

updmap --enable Map=newtx.map

Again, that should update both the pdf and dvips font map files that are
needed.

///Peter
--
¹ "The right places" being in your personal TeX directory, see
http://latex.silmaril.ie/formattinginformation/personal.html
Ulrike Fischer
2018-09-26 21:23:26 UTC
Permalink
Post by Peter Flynn
Post by Russ P.
kpathsea: Running mktexpk --mfmode ljfour --bdpi 600 --mag 1+48/600 --dpi 648 ec-qhvr
As far as I know, the EC fonts are installed by default,
ec-qhvr is from tex-gyre not from the EC fonts.

(and you are quite right that probably the map file has not been
correctly updated)
--
Ulrike Fischer
https://www.troubleshooting-tex.de/
Russ P.
2018-09-26 21:42:46 UTC
Permalink
I tried pdflatex years ago but had problems and just went back to using dvips and ps2pdf, which has worked fine for me for many years. I just tried pdflatex again now, and this is what I got:

! LaTeX Error: File `newtxtext.sty' not found.


This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
(./trajspec-JAT.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak, german, ng
erman, danish, esperanto, spanish, catalan, galician, estonian, farsi, finnish,
french, greek, monogreek, ancientgreek, croatian, hungarian, interlingua, ibyc
us, indonesian, icelandic, italian, latin, mongolian, dutch, norsk, polish, por
tuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian, swedish,
turkish, ukenglish, ukrainian, loaded.
(./new-aiaa.cls
Document Class: new-aiaa 2018/01/10, v1.2
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/base/fontenc.sty
(/usr/share/texmf/tex/latex/base/t1enc.def))
(/usr/share/texmf/tex/latex/base/inputenc.sty
(/usr/share/texmf/tex/latex/base/utf8.def
(/usr/share/texmf/tex/latex/base/t1enc.dfu)
(/usr/share/texmf/tex/latex/base/ot1enc.dfu)
(/usr/share/texmf/tex/latex/base/omsenc.dfu)))
(/usr/share/texmf/tex/latex/microtype/microtype.sty
(/usr/share/texmf/tex/latex/graphics/keyval.sty)
(/usr/share/texmf/tex/latex/microtype/microtype.cfg))

! LaTeX Error: File `newtxtext.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Post by Peter Flynn
Post by Russ P.
\documentclass[11pt]{new-aiaa}
I use dvips as intermediate step in converting to pdf, and it has
worked for me for many years,
Is there some reason you are using this route?
The normal method nowadays is to use pdflatex or XeLaTeX which create
PDF directly.
Post by Russ P.
but now it is having font problems (see output below). Can someone
give me a clue about how to make it work? Thanks.
This is dvips(k) 5.96.1 Copyright 2007 Radical Eye Software (www.radicaleye.com)
' TeX output 2018.09.26:1236' -> trajspec-JAT.ps
kpathsea: Running mktexpk --mfmode ljfour --bdpi 600 --mag 1+48/600 --dpi 648 ec-qhvr
As far as I know, the EC fonts are installed by default, but it's
possible that they have only been installed for PDFTeX on your system,
not for dvips. Can you run updmap with the --verbose option and see if
that regenerates the dvips.map file?
Post by Russ P.
kpathsea: Running mktexpk --mfmode ljfour --bdpi 600 --mag 1+0/600 --dpi 600 ntx-Regular-tlf-t1
For the newtx fonts you may need to add the manually if they weren't
installed automatically. Assuming you do actually have the newtx font
files installed in the right places¹, you type
updmap --enable Map=newtx.map
Again, that should update both the pdf and dvips font map files that are
needed.
///Peter
--
¹ "The right places" being in your personal TeX directory, see
http://latex.silmaril.ie/formattinginformation/personal.html
Ulrike Fischer
2018-09-26 22:28:37 UTC
Permalink
Post by Russ P.
LaTeX2e <2005/12/01>
Your system looks quite outdated.
--
Ulrike Fischer
https://www.troubleshooting-tex.de/
Russ P.
2018-09-26 22:44:26 UTC
Permalink
Does pdflatex contain its own version of latex, or does it use the otherwise installed version? If the latter, is it possible to tell it which installed version to use? Or do I just need to get the latest version of pdflatex? Thanks
Post by Ulrike Fischer
Post by Russ P.
LaTeX2e <2005/12/01>
Your system looks quite outdated.
--
Ulrike Fischer
https://www.troubleshooting-tex.de/
Peter Flynn
2018-09-27 09:59:58 UTC
Permalink
Post by Russ P.
Does pdflatex contain its own version of latex, or does it use the
otherwise installed version?
I think on most systems all the binaries in a given distribution share
the same version of the LaTeX code, in the sense that when the .fmt
files are built, it's from the same distribution of TeX/LaTeX.
Post by Russ P.
If the latter, is it possible to tell it which installed version to
use? Or do I just need to get the latest version of pdflatex?
Unless you have multiple distributions installed (very rare), there
should be only one pdflatex binary.

If you do have multiple distributions installed (eg TL2016, TL2017,
TL2018, MikTeX 27/28/29, etc) because you support users with different
distributions, then you would need some kind of local script or command
aliases to make sure you run the right one.

I'm running LaTeX2e <2016/02/01> in XeTeX, Version
3.14159265-2.6-0.99992 (TeX Live 2015/Debian) (preloaded
format=xelatex 2018.8.15) so I think what Ulrike meant was that based on
what looks like a 10-year-old LaTeX, you may be using a 10-year-old
distribution. Which may possibly be why a lot of files and fonts are in
a different place.

///Peter
Post by Russ P.
Post by Ulrike Fischer
Post by Russ P.
LaTeX2e <2005/12/01>
Your system looks quite outdated.
-- Ulrike Fischer https://www.troubleshooting-tex.de/
Russ P.
2018-09-27 19:23:06 UTC
Permalink
I realized that I was using an old version of pdflatex (in my executable search path), but a new version was installed with latex for me a few weeks ago. I was thinking that pdflatex was a standalone application, and I didn't realize that it in included with the latex package. The new version works better, but now I have another problem. I was using

\usepackage[dvips]{graphicx}

to show eps figures, but those figures no longer appear. Now I get a caption and an empty space where the eps figure should be. I tried "graphics" also, but it doesn't work either. What is the trick for including eps figures? Thanks.
Post by Peter Flynn
Post by Russ P.
Does pdflatex contain its own version of latex, or does it use the
otherwise installed version?
I think on most systems all the binaries in a given distribution share
the same version of the LaTeX code, in the sense that when the .fmt
files are built, it's from the same distribution of TeX/LaTeX.
Post by Russ P.
If the latter, is it possible to tell it which installed version to
use? Or do I just need to get the latest version of pdflatex?
Unless you have multiple distributions installed (very rare), there
should be only one pdflatex binary.
If you do have multiple distributions installed (eg TL2016, TL2017,
TL2018, MikTeX 27/28/29, etc) because you support users with different
distributions, then you would need some kind of local script or command
aliases to make sure you run the right one.
I'm running LaTeX2e <2016/02/01> in XeTeX, Version
3.14159265-2.6-0.99992 (TeX Live 2015/Debian) (preloaded
format=xelatex 2018.8.15) so I think what Ulrike meant was that based on
what looks like a 10-year-old LaTeX, you may be using a 10-year-old
distribution. Which may possibly be why a lot of files and fonts are in
a different place.
///Peter
Post by Russ P.
Post by Ulrike Fischer
Post by Russ P.
LaTeX2e <2005/12/01>
Your system looks quite outdated.
-- Ulrike Fischer https://www.troubleshooting-tex.de/
Ulrike Fischer
2018-09-27 20:49:38 UTC
Permalink
Post by Russ P.
I realized that I was using an old version of pdflatex (in my
executable search path), but a new version was installed with
latex for me a few weeks ago. I was thinking that pdflatex was a
standalone application, and I didn't realize that it in included
with the latex package. The new version works better, but now I
have another problem. I was using
\usepackage[dvips]{graphicx}
to show eps figures, but those figures no longer appear. Now I
get a caption and an empty space where the eps figure should be.
I tried "graphics" also, but it doesn't work either. What is the
trick for including eps figures?
Don't confuse pdflatex by using the wrong driver options.

Use

\usepackage{graphicx}

and let the engine figure out the correct driver.

Beside this: it would be much easier to help you, if you would show
complete examples and the log-files.
--
Ulrike Fischer
https://www.troubleshooting-tex.de/
Peter Flynn
2018-09-27 22:51:28 UTC
Permalink
[...] I didn't realize that it in included with the latex
package.
I think pdflatex has been the default for many years now.
but now I have another problem. I was using
\usepackage[dvips]{graphicx}
to show eps figures, but those figures no longer appear.
See http://latex.silmaril.ie/formattinginformation/images.html#fileformats
Now I get a caption and an empty space where the eps figure should
be. I tried "graphics" also, but it doesn't work either. What is the
trick for including eps figures?
EPS files ONLY work with original (old) LaTeX.
For pdflatex you must use JPG or PNG bitmaps for photos, and PDF vectors
for diagrams.

You can convert EPS to PDF with the ps2pdf utility which comes with TL.

EPS has its uses still, but it is obsolescent in most circumstances.

///Peter
Herb Schulz
2018-09-28 00:57:11 UTC
Permalink
Post by Peter Flynn
[...] I didn't realize that it in included with the latex
package.
I think pdflatex has been the default for many years now.
but now I have another problem. I was using
\usepackage[dvips]{graphicx}
to show eps figures, but those figures no longer appear.
See http://latex.silmaril.ie/formattinginformation/images.html#fileformats
Now I get a caption and an empty space where the eps figure should
be. I tried "graphics" also, but it doesn't work either. What is the
trick for including eps figures?
EPS files ONLY work with original (old) LaTeX.
For pdflatex you must use JPG or PNG bitmaps for photos, and PDF vectors
for diagrams.
You can convert EPS to PDF with the ps2pdf utility which comes with TL.
EPS has its uses still, but it is obsolescent in most circumstances.
///Peter
Howdy,

Recent versions of pdflatex will automatically convert eps to pdf
(file.eps->file-eps-converted-to.eps by default) and include that. It uses
ps2pdf via the restricted version of epstopdf, repstopdf.

Good Luck,
Herb Schulz
Russ P.
2018-09-28 02:01:25 UTC
Permalink
Post by Herb Schulz
Recent versions of pdflatex will automatically convert eps to pdf
(file.eps->file-eps-converted-to.eps by default) and include that. It uses
ps2pdf via the restricted version of epstopdf, repstopdf.
pdfTeX 3.14159265-2.6-1.40.19 (TeX Live 2018)

Is that recent enough? It doesn't seem to work for me.
Bob Tennent
2018-09-28 06:57:54 UTC
Permalink
Post by Russ P.
Post by Herb Schulz
Recent versions of pdflatex will automatically convert eps to pdf
(file.eps->file-eps-converted-to.eps by default) and include that. It uses
ps2pdf via the restricted version of epstopdf, repstopdf.
pdfTeX 3.14159265-2.6-1.40.19 (TeX Live 2018)
Is that recent enough? It doesn't seem to work for me.
This works for me:

\usepackage[pdftex]{graphicx}

\includegraphics*{file.eps}

Bob T.
Herb Schulz
2018-09-28 14:37:17 UTC
Permalink
Post by Russ P.
Post by Herb Schulz
Recent versions of pdflatex will automatically convert eps to pdf
(file.eps->file-eps-converted-to.eps by default) and include that. It uses
ps2pdf via the restricted version of epstopdf, repstopdf.
pdfTeX 3.14159265-2.6-1.40.19 (TeX Live 2018)
Is that recent enough? It doesn't seem to work for me.
Howdy,

That's certainly recently enough.

Don't use the epstopdf package. Do use the graphicx package.

BTW: the conversion should have been file.eps->file-eps-converted-to.pdf (not
eps again).

Good Luck,
Herb Schulz
Peter Flynn
2018-09-28 13:31:48 UTC
Permalink
On 28/09/18 01:57, Herb Schulz wrote:
[...]
Post by Herb Schulz
Recent versions of pdflatex will automatically convert eps to pdf
(file.eps->file-eps-converted-to.eps by default) and include that.
It uses ps2pdf via the restricted version of epstopdf, repstopdf.
It will indeed, but I think it does it afresh each time; or does it
know the filenames it created on a previous pass?
///Peter
Herb Schulz
2018-09-28 14:41:19 UTC
Permalink
Post by Peter Flynn
[...]
Post by Herb Schulz
Recent versions of pdflatex will automatically convert eps to pdf
(file.eps->file-eps-converted-to.eps by default) and include that.
It uses ps2pdf via the restricted version of epstopdf, repstopdf.
It will indeed, but I think it does it afresh each time; or does it
know the filenames it created on a previous pass?
///Peter
Howdy,

I only converts again if the eps date is later than the converted file date.

Note: there is no need for using the [pdftex] option with the graphicx
package; that will be determined automatically be the graohicx package.

Good Luck,
Herbert Schulz
Peter Flynn
2018-09-28 15:57:16 UTC
Permalink
Post by Herb Schulz
Post by Peter Flynn
[...]
Post by Herb Schulz
Recent versions of pdflatex will automatically convert eps to pdf
(file.eps->file-eps-converted-to.eps by default) and include that.
It uses ps2pdf via the restricted version of epstopdf, repstopdf.
It will indeed, but I think it does it afresh each time; or does it
know the filenames it created on a previous pass?
///Peter
Howdy,
I only converts again if the eps date is later than the converted file date.
Thanks. That makes sense...and there are still large numbers of numeric
analysis packages out there that only output EPS graphics.

///Peter

Michael Shell
2018-09-27 01:24:25 UTC
Permalink
On Thu, 27 Sep 2018 00:28:37 +0200
Post by Ulrike Fischer
Post by Russ P.
LaTeX2e <2005/12/01>
Your system looks quite outdated.
On Wed, 26 Sep 2018 23:40:13 +0100
Post by Ulrike Fischer
! LaTeX Error: File `newtxtext.sty' not found.
My system has it in
/usr/share/texlive/texmf-dist/tex/latex/newtx/newtxtext.sty
I replied to the original post before I saw the follow ups.

In this case, I recommend a full reinstall of a recent version of
TeX Live. If this is an older system, then I would go with
TeX Live 2017 as that will still work with older versions of
glibc (pre 2.14).

Also, is it possible that Peter's system has two different
installations of LaTeX systems that are conflicting with each
other?


Mike
Peter Flynn
2018-09-27 10:03:42 UTC
Permalink
On 27/09/18 02:24, Michael Shell wrote:
[...]
Post by Michael Shell
Also, is it possible that Peter's system has two different
installations of LaTeX systems that are conflicting with each other?
Not on the laptop I was on when I gave that filename, although I would
have a lot of additional typefaces which are common to all my systems.

On my production server, for sure: I have clients with different
distributions and versions, but I don't read News on that system :-)

///Peter
Peter Flynn
2018-09-26 22:40:13 UTC
Permalink
Post by Russ P.
I tried pdflatex years ago but had problems
I sympathise with this; I had the same thing when I finally moved, but
that was a very long time ago. It's worth persevering and fixing the
problems, IMHO, but YMMV.
Post by Russ P.
and just went back to using dvips and ps2pdf, which has worked fine
for me for many years. I just tried pdflatex again now, and this is
! LaTeX Error: File `newtxtext.sty' not found.
My system has it in
/usr/share/texlive/texmf-dist/tex/latex/newtx/newtxtext.sty

I assume original LaTeX doesn't use it because it is using a different
suite of fonts than pdflatex uses. Or something.

///Peter
Michael Shell
2018-09-27 01:13:30 UTC
Permalink
On Wed, 26 Sep 2018 13:03:48 -0700 (PDT)
Post by Russ P.
mktexpk: don't know how to create bitmap font for ec-qhvr
mktexpk: don't know how to create bitmap font for ntx-Regular-tlf-t1
Russ,

The ec-qhvr font is in the tex-gyre package:

https://ctan.org/pkg/tex-gyre

The ntx- fonts are part of the newtx package:

https://ctan.org/texarchive/fonts/newtx

So, you will have to install those two packages and update your font
map files to make those fonts available to dvips et al. (You didn't
mention which LaTeX system you are using, so I can't be more specific
on how to do this.)


Cheers,

Mike Shell
Loading...