[MiKTeX] RE: Printing error using \widehat{} and \widetilde{} in the limits of \int^{}_{}
Herman Z. Bennett <hzb <at> MIT.EDU>
2005-01-03 00:07:20 GMT
Hello,
This is a reply to my own email send last week. I have find a partial solution
and would like to share it, and also see if anybody has any new ideas (thanks
in advance).
In short, the problem occurrs when printing a pdf file, generated with latex +
dvi2pdf from a .tex with \widehat{} or \widetilde{} in the limits of \int^{}_{}
(more details in the original postin paste below).
I found out that without \usepackage{amsmath} nor \usepackage{amssymb}, the file
prints ok. One difference between the pdf with and without ams is an extra font
in the former case (with ams): cmex8. From amsguide.pdf and and amsfndoc.pdf I
understood that cmex8 is an additional size of the Computer Modern math
extension Font, which is used in eight-point environments. This make sense,
since it is only when \widehat{} is in the limit of \int_{}^{} that the problem
occurs.
A partial solution is to use \usepackage{amsmath} and
\usepackage[psamsfonts]{amssymb}. If psamsfonts is specified, the eight-point
objects that use cmex8 are produced by interpolation instead of loading cmex8
(as far as I was able to understand). In fact, in this case cmex8 is not part
of the fonts in the pdf file, and the printing goes smooth.
I still have the following questions:
1.- Why is cmex8 causing trouble, while the other 4 fonts that are used in the
pdf file donÂ’t? Is there any way to fix this?
Note that amsfndoc.pdf says: “All of the above packages have a `psamsfonts'
option that should be used if and only if your copy of the AMSFonts collection
is the Y&Y/Blue Sky Research PostScript version. In that version, the font
files are not provided in all the sizes (5,6,7,8,9,10), but only in sizes
5,7,10, with sizes 6,8,9 produced by interpolation. In practice it's easy to
tell if you need to use the psamsfonts option: you'll get an error message
about a missing .tfm file: ! Font \U/AMSa/m/n/9=msam9 not loadable: Metric
(TFM) file not found.”
I checked and this error message doesnÂ’t appear. Plus, doing a search in my C: I
found cmex8 in the system (bakoma installs it, right?). So, I am puzzled why is
cmex8 causing trouble when printing (my system has them and I am telling
dvipdfm to insert the fonts in the pdf file).
2.- amsfndoc.pdf says: “Warning: Adding the option [psamsfonts] to an existing
file may result in changed line and page breaks, owing to the fact that sizes
6, 8, and 9 are produced by interpolation.”
I am not sure I understood the downside of using psamsfonts, is this something
to be worry about? (In case I canÂ’t solve the issue with cmex8, and I keep the
psamsfonts option.)
Once again, thank you very much for your help,
Herman
--------------------------------------------------
My original post (with some changes):
Hello,
I am having trouble printing a pdf file generated with latex + dvi2pdf (from
WinedtÂ’s dvi2pdf.edt I can see the pdf is produced with dvipdfm.bat). I would
very much appreciate any help on the matter.
The problem:
I write \int_{\widetilde{A}}^{\widetilde{A}}, then I do latex + dvi2pdf, and
the pdf file on screen looks ok. I print the file and Acrobat gives me the
following message “An error occurred while downloading a font. This document
might not print correctly.” The printout is a page with no \widehat nor
\widetilde in the limits of the integral (the hat and the tilde disappear from
the limits of the integral and it looks like \int_{A}^{A}). This does not
happened if the \widetilde{A} or \widehat{A} is outside the limits of the
integral. Here is the exact code:
\documentclass[letterpaper, 12pt]{article}
\usepackage{calc}
\usepackage{amsmath}
\usepackage{amssymb}
\oddsidemargin .24in \topmargin .1in \headheight 0pt \headsep 0pt
\textwidth 6in \textheight 9in \footskip .65in \parskip .2in
\begin{document}
Hola $\widehat{A} \widetilde{A}$ (This one is ok)
\begin{equation} \widetilde{A} \int_{\widetilde{A}}^{B}\end{equation}
(the first $\widetilde{A}$ is ok, but the one in the lower limit of $\int$ only
shows an $A$ without the tide).
\end{document}
Please note the following:
1.- C:\localtexmf\miktex\config\updmap.cfg contains only the following lines:
dvipsDownloadBase35 true
pdftexDownloadBase14 true
dvipdfmDownloadBase14 true
And I did initexfm –u and initexmf –mkmaps after the changes (DOS).
2.- C:\texmf\web2c\updmap.cfg contains the line
dvipdfmDownloadBase14 true
3.- I also tried “dvips, open GV and send to print” and it worked fine.
Similarly, pdflatex works fine too. Due to unrelated issues, these two options
do not satisfy my needs and I would prefer to do latex + dvi2pdf instead (but I
still need to solve the issue discussed in this email).
4.- If I do the same example with \int_{A}^{B} there is no problem.
5.- In case it could be useful, the resulting pdf file has the following fonts
(from Doc Properties/Fonts):
CMR12, CMEX10, CMMI12, CMMI8, cmex8
(they all say Type 1, Built-in, Embedded Subset, Type 1)
Thank you very much for any help on how to solve this problem,
Herman
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt