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.

I am using the package mathptmx to change the text font to Times. However, the mathcal font is changed as well, which is think is a bit ugly.

How can I reset the mathcal font to its default?

share|improve this question
    
If you just want to change the text fonts, use times package, or use newtxtext as Juri Robl said. –  Leo Liu Aug 20 '12 at 10:35
add comment

3 Answers

Add the following line to your preamble:

\DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}
share|improve this answer
    
Thanks, that does the trick. The advantage of this approach is that only the mathcal alphabet is reset, whereas the others stay as defined by mathptmx –  Thomas Aug 20 '12 at 10:55
add comment

You could just use \usepackage{newtxtext} from the newtx package, which loads a Times-like font for the text, but shouldn't change the math fonts.

share|improve this answer
add comment

I restored \boldmath to make sure that bold version is available.

\documentclass{article}

\let\saveboldmath\boldmath
\usepackage{mathptmx}
\let\boldmath\saveboldmath
\usepackage{bm}

\DeclareSymbolFont{cmsymbols}{OMS}{cmsy}{m}{n}
\SetSymbolFont{cmsymbols}{bold}{OMS}{cmsy}{b}{n}
\DeclareSymbolFontAlphabet{\mathcal}{cmsymbols}

\begin{document}

Times $\mathcal{ABCD}$ $\bm{\mathcal{ABCD}}$

\end{document}
share|improve this answer
    
mathptmx has no bold math version; in case bold math is needed, the newtxtext and newtxmath packages should be used. –  egreg Aug 20 '12 at 10:44
    
Indeed, but cmsy (\mathcal) has bold version. I don't like mathptmx that simply forbid \boldmath. –  Leo Liu Aug 20 '12 at 10:55
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.