# How to change the font for math

For my thesis I use the fourier font because I like it as my main font but I have one problem with it: I do not like the font that fourier uses for math. How can I change/override this? I just want the default font for math that tex uses, in my whole document...

\usepackage[T1]{fontenc}

% Font fourier
\usepackage{fourier}

% Try to override it
\usepackage{lmodern}
%\usepackage[mathscr]{eucal}
%\usepackage{kpfonts}%  for math
%\usepackage{kmath,kerkis}

• Don't do that! They don't match well and your document will look horrible. Either use fourier for text and math (you may use erewhon for text, which is a clone/extension of Adobe Utopia, on which Fourier is based). Or use Computer Modern (the default) or Latin Modern if you need accented letters. – Bernard Apr 18 '16 at 11:49
• So because I do not like the \mathcal math letters of fourier I need to change the font for my whole thesis? – GerjanOnline Apr 18 '16 at 11:57
• That's another problem: you always can change a math alphabet. I don't think it's a problem for \mathcal. Just check the thickness of the stroke is compatible. You also can try Zapf Chancery or its URW clone. – Bernard Apr 18 '16 at 12:03
• Done, I have updated my post – GerjanOnline Apr 18 '16 at 12:36

You can easily obtain a horrible document mixing Utopia as text font and Palatino (mathpazo) for math by doing

\documentclass{article}
\usepackage[T1]{fontenc}

\usepackage{mathpazo}
\renewcommand{\rmdefault}{put}

\usepackage[math]{blindtext} % just to produce mock text

\begin{document}

\blindmathtrue
\blindmathpaper

\end{document}


Even more appalling is when Computer Modern is used for math

\documentclass{article}
\usepackage[T1]{fontenc}

\renewcommand{\rmdefault}{put}

\usepackage[math]{blindtext}

\begin{document}

\blindmathtrue
\blindmathpaper

\end{document}


Here is the same with fourier:

1. never load other math font packages along with fourier, because this package sets up different encodings for the math font and you easily get wrong symbols

2. never mix different fonts for text and math

Solved it using:

% Font fourier
\usepackage{fourier}

% Only use the math font of mathpazo
\let\temp\rmdefault
\usepackage{mathpazo}
\let\rmdefault\temp