[Tex/LaTex] Keeping only the \mathcal fonts from the CM fonts package

fonts

So thanks to may resourceful people of TeX exchange, I managed to change the greek fonts only to Bodoni, and math font for times.

But there is no end to human desire and… now I want to use the math calligraphic (math cal) fonts from the CM modern package.

So I am looking for something \Declaremathfont, except that it is only for the calligraphic letters.

Is it possible?

Best Answer

Don't try this at home...

Mixing fonts in this way is not recommended and is likely to produce results which are significantly suboptimal.

However, if you really must:

\DeclareMathAlphabet\mathcal{OMS}{cmsy}{m}{n}
\SetMathAlphabet\mathcal{bold}{OMS}{cmsy}{b}{n}

font mishmash

Complete code:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[polutonikogreek,british]{babel}
\usepackage{mathptmx}
\usepackage{substitutefont}
\substitutefont{LGR}{\rmdefault}{bodoni}
\DeclareMathAlphabet\mathcal{OMS}{cmsy}{m}{n}
\SetMathAlphabet\mathcal{bold}{OMS}{cmsy}{b}{n}

\begin{document}
This is English

\textgreek{Πάτερ ἡμῶν ὁ ἐν τοῖς οὐρανοῖς·}

$\mathcal{ABC}$

\end{document}

Based on egreg's answer to your earlier question. I can't find the code you are using for Times so I've guessed but it shouldn't matter.

[EDITED to simplify thanks to egreg's comment.]

Related Question