Is there a package that loads the concrete font, but only for the math, not for the normal text?


3 Answers 3


Using How To Change Math Font Only? as a guide, here's what you can do:

enter image description here

\usepackage{amsmath}% http;//ctan.org/pkg/amsmath
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
\usepackage{ccfonts}% http://ctan.org/pkg/{ccfonts}
\usepackage[T1]{fontenc}% http://ctan.or/pkg/fontenc
\renewcommand{\rmdefault}{cmr}% cmr = Computer Modern Roman
  \frac{1}{2\pi}\int_\gamma f=\sum_{k=1}^m n(\gamma;a_k)\mathrm{Res}(f;a_k) \label{eq}
Take a look at $n(\gamma;a_k)$ in~\eqref{eq}.

Note that inline (or text style) and display math both use Concrete, while the equation numbers are set in Computer Modern.

The idea is, as mentioned in the linked post, you set the entire font change, and revert \rmdefault back to the font of your choice - cmr (or Computer Modern Roman) in this case.

If you're using other type face families, like \textsf and \texttt, these have to be modified (reverted as well):

\renewcommand{\ttdefault}{cmtt}% cmtt = Computer Modern Typewriter
\renewcommand{\sfdefault}{cmss}% cmss = Computer Modern Sans-Serif

The Concrete Roman font is a pure text font; unlike Computer Modern, there's no built-in math font in this family. The textbook Concrete Mathematics authored by Graham, Knuth, and Patashnik used (unsurprisingly) the Concrete Roman text font along with the Euler math font family.

To employ the Euler math font family, you could load the eulervm package.


You can save the default font families before loading ccfonts and then restore them; load any other font package before the code marked "save defaults". In this way you don't need to know what names have the three main font families.


%%% save defaults


%%% restore defaults

a+b=\sin\alpha+e^{\beta}-\sum_{i=1}^n x_i

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .