Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

The following MWE shows the problem:

\documentclass{article}
\usepackage{amsmath}
\usepackage[lite]{mtpro2}
\usepackage{refcheck}

\begin{document}
\begin{align}
  a & \leq b
\end{align}
\end{document}

And I get a ! Missing $ inserted.. The problem disappears when refcheck is not used, or when mtpro2 is not used.

Does anyone sees a way to use both packages simultaneously?

share|improve this question
add comment

1 Answer

up vote 8 down vote accepted

mtpro2 redefines \{ and \} in an incompatible way with respect to the usual LaTeX setting. It seems that restoring the commands to the right definition (after loading mtpro2) fixes the issue.

The problem might present itself also without refcheck, because the redefinition performed by mtpro2 doesn't allow \{ and \} to be used in text mode.

\documentclass{article}
\usepackage{amsmath}
\usepackage{refcheck}
\usepackage[lite]{mtpro2}

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

\begin{document}
Braces \{in text\}

\begin{align}
  a & \leq b
\end{align}
\end{document}
share|improve this answer
    
Great. Do I lose any functionality of mtpro2 when redefining the braces as you suggested? –  mafp Dec 17 '12 at 23:51
1  
@mafp I don't think so. It's just an oversight by the package author. –  egreg Dec 18 '12 at 0:13
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.