[Tex/LaTex] How to select a font for math mode only

fontsfontspecmath-mode

I use the class a0poster to write a poster.

\documentclass[a0,portrait]{a0poster}

I have chosen a font named "AntPolt", which however turns out to only take effect on regular text.

\usepackage{antpolt}

Because I do not want to use the default math font, I need to select a slanted font for the math as well, under the condition that the main text is in antpolt. How can I achieve that?

PS. The font eulervm can almost be suitable, except that it is upright.

Best Answer

Note, that text fonts and math fonts are completely independent in every dialect of TeX and LaTeX. By default, they are from the same design (Computer Modern), but you can change either the text fonts or the math fonts (usually be loading a suitable font package).

Note also, that there thousands of usable text fonts around, but math fonts are rare beasts (and math fonts usable with TeX/LeTeX are even more rare).

There are packages for LaTeX setting only the text fonts, only the math fonts, or doing both at the same time (like mathptmx).

For your question, I suggest the package euler in addition to the AntPol font package:

\usepackage{antpolt}
\usepackage{euler}

An alternative to the euler/eulervm packages ist the mathpazo package providing Palatino based math fonts. The order of the packages matters, load mathpazo first, and antpolt second.

\usepackage{mathpazo}
\usepackage{antpolt}