Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

text braces in display math environments with MathTime Pro 2 fonts

28 views
Skip to first unread message

John Bullock

unread,
Nov 12, 2009, 1:43:56 PM11/12/09
to
I am unable to use text braces in display math environments while
using
the MathTime Pro 2 package from PCTeX. Here is a minimal example:

\documentclass{article}
\usepackage{mtpro2}
\begin{document}
$$\textrm{\{x\}}$$
\end{document}

I am using pdflatex and MiKTeX 2.7. When I try to compile this
example,
I get a "Missing $ inserted" message and no PDF is created. Not
loading
the mtpro2 package fixes the problem -- but is there an easy way to
fix
the problem while using that package?

I can get around the problem by replacing the text braces (\{ and \})
with
\textbraceleft and \textbraceright. But I would like to find a more
succinct fix.

Thank you,
--John

Martin Berggren

unread,
Nov 12, 2009, 3:56:26 PM11/12/09
to

I have the Math Time Pro fonts, and the above code works fine for me
(Mactex 2007).


kea

unread,
Nov 13, 2009, 4:31:09 PM11/13/09
to
On Nov 12, 3:56 pm, Martin Berggren <o.martin.bergg...@gmail.com>
wrote:

The code works for me too (XP, pdflatex miktex 2.7).

John Bullock

unread,
Nov 14, 2009, 4:01:33 PM11/14/09
to

Kea, Martin, thank you. This surprises me.

Are either of you using the MathTime Pro 2 update (v 2.1) that was
issued
around February 2009? I ask because this update (which I am using)
made
a number of changes to brace handling in the MTPro2 fonts. (See
http://pctex.com/MTPro2Update.html.) I haven't been able to
determine
whether the update is the source of my problems, but I wonder if it
is.

Martin Berggren

unread,
Nov 14, 2009, 4:52:05 PM11/14/09
to
On Nov 14, 10:01 pm, John Bullock <john.bull...@gmail.com> wrote:
> Are either of you using the MathTime Pro 2 update (v 2.1) that was
> issued
> around February 2009?  I ask because this update (which I am using)
> made
> a number of changes to brace handling in the MTPro2 fonts.  (Seehttp://pctex.com/MTPro2Update.html.)  I haven't been able to

> determine
> whether the update is the source of my problems, but I wonder if it
> is.

No, I don't use the update. Didn't even know it existed...

Ulrike Fischer

unread,
Nov 18, 2009, 5:18:23 AM11/18/09
to
Am Sat, 14 Nov 2009 13:01:33 -0800 (PST) schrieb John Bullock:


>>> > I am unable to use text braces in display math environments while
>>> > using the MathTime Pro 2 package from PCTeX. �Here is a minimal
>>> > example:
>>
>>> > � � � � \documentclass{article}
>>> > � � � � \usepackage{mtpro2}
>>> > � � � � \begin{document}
>>> > � � � � � � $$\textrm{\{x\}}$$
>>> > � � � � \end{document}

> Are either of you using the MathTime Pro 2 update (v 2.1) that was


> issued around February 2009? I ask because this update (which I
> am using) made a number of changes to brace handling in the
> MTPro2 fonts. (See http://pctex.com/MTPro2Update.html.) I
> haven't been able to determine whether the update is the source
> of my problems, but I wonder if it is.

I don't have the fonts, but the update you mentioned certainly
contains the code which would led to this problem. In standard LaTeX
\{ is defined so that it can be used in math and text.
mtpro2 redefines \{ so that it can now be used only in math.


You could try the following after loading mtpro2:

\DeclareRobustCommand{\{}{\ifmmode\lbrace\else\textbraceleft\fi}
\DeclareRobustCommand{\}}{\ifmmode\rbrace\else\textbraceright\fi}

--
Ulrike Fischer

John Bullock

unread,
Nov 18, 2009, 2:39:15 PM11/18/09
to
> >>> > I am unable to use text braces in display math
> >>> > environments while using the MathTime Pro 2 package
> >>> > from PCTeX. Here is a minimal example:
>
> >>> > \documentclass{article}
> >>> > \usepackage{mtpro2}
> >>> > \begin{document}
> >>> > $$\textrm{\{x\}}$$
> >>> > \end{document}
> >
> > Are either of you using the MathTime Pro 2 update (v 2.1)
> > that was issued around February 2009?
>
> I don't have the fonts, but the update you mentioned
> certainly contains the code which would led to this problem.
> In standard LaTeX \{ is defined so that it can be used in
> math and text. mtpro2 redefines \{ so that it can now be
> used only inmath.
>
> You could try the following after loading mtpro2:
> \DeclareRobustCommand{\{}{\ifmmode\lbrace\else\textbraceleft\fi}
> \DeclareRobustCommand{\}}{\ifmmode\rbrace\else\textbraceright\fi}

This works! Thank you.

0 new messages