Page 1 of 1

bad \sim in subscript, mtp2 beta 0.991

Posted: Thu Mar 30, 2006 9:21 pm
by murray
As a subscript, the \sim character is neither printing clearly nor previewing clearly in MiKTeX. In the source LaTeX below, this is in the SUBSCRIPT to the \sim in item 1 of the Theorem.

After copying the entire new distribution into localtexmf, I did, of course, run mkfntmap and referesh the filename database in MiKTeX before trying this.

On the other hand, this symbol is OK in PCTeX.

%%%%%

\documentclass{book}
\usepackage{amsmath,amsthm}
\usepackage[scaled=0.92]{helvet}
\renewcommand{\rmdefault}{ptm}
\usepackage[subscriptcorrection,slantedGreek,nofontinfo,mtpbb,eucal,boldalphabet]{mtpro2}

\newtheorem{theorem}{Theorem}[section]

\DeclareMathOperator{\partsim}{\sim_{\!\mathcal{A}}}
\newcommand{\quotset}[1]{{#1}/\!\sim}
\newcommand{\subquotset}[1]{{#1}/\!\mspace{3mu}\sim}

\begin{document}

\begin{theorem}
Let $X$ be a set. Then:
\begin{enumerate}
\item For each equivalence relation $\sim$ on $X$,
\[
\sim_{\!\mspace{4mu}(\subquotset{X})}\,\,=\,\,\sim .
\]
\item For each partition $\mathcal{A}$ of $X$,
\[
\quotset{\left(\partsim\right)}\,\,=\mathcal{A} .
\]
\end{enumerate}
\end{theorem}
\end{document}

Ok under teTeX

Posted: Fri Mar 31, 2006 9:28 am
by kolchin
Your example yields perfect output under teTeX
(TeX (Web2C 7.3.1) 3.14159,
xdvi version 22.84.10 (@(#)Motif Version 2.1.30, runtime version 2.1)

Posted: Fri Mar 31, 2006 2:20 pm
by Michael Spivak
I suspect that this is a problem with MikTeX; the character in question has two points that are extremely close together, and possibly this creates some problems. I have emailed you a new version where those pairs are simply replaced by a single point. See if it helps.

Re: bad \sim in subscript, mtp2 beta 0.991

Posted: Fri Mar 31, 2006 4:23 pm
by WaS
murray wrote:As a subscript, the \sim character is neither printing clearly nor previewing clearly in MiKTeX. [...]
On the other hand, this symbol is OK in PCTeX.
What do you mean by "MikTex" vs "PCTeX"?
Did you create Postscipt or PDF output?
Which Postscript or PDF viewer are you using?
Are you using different viewers in both environments?
Does the result depend on the way the output was created,
or does it depend on the previewing program used?

Walter

Re: bad \sim in subscript, mtp2 beta 0.991

Posted: Fri Mar 31, 2006 6:14 pm
by murray
WaS wrote:
murray wrote:As a subscript, the \sim character is neither printing clearly nor previewing clearly in MiKTeX. [...]
On the other hand, this symbol is OK in PCTeX.
What do you mean by "MikTex" vs "PCTeX"?
Did you create Postscipt or PDF output?
Which Postscript or PDF viewer are you using?
Are you using different viewers in both environments?
Does the result depend on the way the output was created,
or does it depend on the previewing program used?

Walter
With PCTeX, I'm using PCTeX's own previewer. With MiKTeX, I'm using the Yap previewer that comes with MiKTeX. I'm viewing directly on-screen the dvi in each case that is created by running that TeX system's latex command.

Re: bad \sim in subscript, mtp2 beta 0.991

Posted: Mon Apr 03, 2006 7:07 am
by zedler
With the first beta version of MTPro2 I can reproduce the error with Miktex (Fontlab also showed an erraneous glyph), with the current beta everything is fine.

Michael

Posted: Tue Apr 04, 2006 6:41 am
by WaS
@murray:

Yes, there was a bug concerning \sim, but it should have been fixed
in the meantime. Please, make sure to use the latest version of the fonts,
both on Y&Y-TeX and on MikTeX. It seems as if you had erroneaoul y
installed wrong tfm and/or pfb files on MikTeX.

Bug fixed in \sim for MiKTeX?

Posted: Tue Apr 04, 2006 8:12 pm
by murray
WaS wrote:@murray:

Yes, there was a bug concerning \sim, but it should have been fixed
in the meantime. Please, make sure to use the latest version of the fonts,
both on Y&Y-TeX and on MikTeX. It seems as if you had erroneaoul y
installed wrong tfm and/or pfb files on MikTeX.
I'll check this Wednesday.

bad subscript \sim persists in MiKTeX

Posted: Thu Apr 06, 2006 9:11 am
by murray
WaS wrote:@murray:

Yes, there was a bug concerning \sim, but it should have been fixed
in the meantime. Please, make sure to use the latest version of the fonts,
both on Y&Y-TeX and on MikTeX. It seems as if you had erroneaoul y
installed wrong tfm and/or pfb files on MikTeX.
I just checked this again after replacing from mtp2fonts.zip.tpm dated 3/25/2006 all the files that go into localtexmf, executing again command mkfntmap, and refreshing MiKTeX's file database. (I even replaced with the 3/25/2006 versions all the pfb's and pfm's that go into the separate location where Adobe Type Manager Deluxe 4.2 expects to find them and re-activated them in ATM.)

Still a _subscript_ \sim does not preview correctly in Yap nor print properly from Yap: The left and right ends of the character are very thick.

NOTE: This happens ONLY at the default size of 10pt for the document class. If I use option [11pt] or [10pt], on the other hand, the subscript \sim is normal!

Here's the (now simplified) source file:

\documentclass{article}

\usepackage[subscriptcorrection,slantedGreek,nofontinfo,mtpbb,
eucal,boldalphabet]{mtpro2}

\begin{document}
$\sim X_{\sim}$
\end{document}

Re: bad subscript \sim persists in MiKTeX

Posted: Fri Apr 07, 2006 5:18 am
by zedler
Still a _subscript_ \sim does not preview correctly in Yap nor print properly from Yap: The left and right ends of the character are very thick.
You need to delete the old mtpro2-related pk files.

Michael

Re: bad subscript \sim persists in MiKTeX; FIXED!

Posted: Fri Apr 07, 2006 7:42 pm
by murray
zedler wrote:
Still a _subscript_ \sim does not preview correctly in Yap nor print properly from Yap: The left and right ends of the character are very thick.
You need to delete the old mtpro2-related pk files.

Michael
Aha! That fixes the problem. I thank you. And I think Michael Spivak will be happy to see that this problem has gone away.