4

I like to use fouriernc package. But unfortunately the mathcal font in this package doesn't look nice to me and I would like to ask if it is possible to use this package while changing the mathcal font, say in mathpazo package.

Thanks

MO B
  • 249

2 Answers2

6

In mathpazo.sty we find

 \DeclareSymbolFontAlphabet{\mathcal}   {symbols}

which sends us to

\DeclareSymbolFont{symbols}       {OMS}{zplm}{m}{n}

You can then do

\DeclareMathAlphabet{\mathcal}{OMS}{Zplm}{m}{n}
\SetMathAlphabet{\mathcal}{bold}{OMS}{zplm}{b}{n}

See texdoc fntguide for more information. The second line is for the \boldmath version.

Full example:

\documentclass{article}
\usepackage{fouriernc}

\DeclareMathAlphabet{\mathcal}{OMS}{zplm}{m}{n}

\begin{document}

This is math: $a+b\in\mathcal{F}(Z)$.

\end{document}

enter image description here

Without the suggested declaration, we'd get

enter image description here

egreg
  • 1,121,712
3

I have never used mathpazo before, but here's a possible solution

\documentclass[]{article}
\usepackage{fouriernc}

\usepackage{lipsum}

\DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}

\begin{document}
\lipsum[2]


\begin{equation}
\sin(x) = x + \mathcal{O}(x^3)
\end{equation}


\end{document}

enter image description here

caverac
  • 7,931
  • 2
  • 15
  • 31