I like the DejaVu Serif Condensed font as text font, but I did not find an appropriate math font for it.
To overcome this, I thought about two possible solutions:
Finding an existing math font that looks good combined with DejaVu Serif Condensed
Using the
\SetMathAlphabetcommand to use DejaVu Serif as math alphabet.
I'm really interested in this second point. Does this work and would it make sens? Or will this mess up with the math symbols (that have to come from another font)?
Up to now I did not manage to make this second point working, following the solution shown in here.
Any suggestions?
So, here is a minimal example:
\documentclass{article}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[scaled=.85]{DejaVuSerifCondensed}
\usepackage[scaled=.85]{DejaVuSansCondensed}
% Math letters in Times font
\DeclareMathVersion{mathtimes}
\SetSymbolFont{letters}{mathtimes}{OML}{txmi}{m}{it}
\newcommand\timesmath{\mathversion{mathtimes}}
% Math letters in DejaVu font
\DeclareMathVersion{mathdeja}
\SetSymbolFont{letters}{mathdeja}{OML}{dejavu}{m}{it}
\newcommand\dejamath{\mathversion{mathdeja}}
\parindent 0pt
\begin{document}
Some text written in DejaVu Serif Condensed. And the math is as default in CM.
\[
\frac{a}{b} + c \cdot d = \sum \int E \, .
\]
Now I can change the math alphabet with
\verb|\timesmath|
\timesmath
and the result is
\[
\frac{a}{b} + c \cdot d = \sum \int E \, .
\]
Now I would like to do the same, but with the DejaVu Serif font, but if I do this the same
way, the command \verb|\dejamath|
does not work, as \verb|dejavu| is obviously not the correct name for the font shape.
\dejamath
\[
\frac{a}{b} + c \cdot d = \sum \int E \, .
\]
My question is now, how do I get the correct font shape (equivalent to \verb|txmi|) for
DejaVu; and does it make sense after all to use such a font in this way. One problem is, that
DejaVu produces quite big letters (that is why I used the \verb|scaled=.85| option).
\end{document}
inputencandfontenc. – Martin Schröder Dec 21 '13 at 13:29