It is my understanding that \DeclareMathVersion
can be used to switch between math font variants. I am wondering how this can be used in a document that leverages two fonts: Times Roman for body text and Garamond for captions and headings. (The style is certainly unconventional, but works quite nicely.)
Times, through \usepackage{txfonts}
and Garamond through \usepackage[urw-garamond]{mathdesign}
both provide math fonts. What is required for the following example to typeset?
While I believe \DeclareMathVersion
is the solution, documentation is on it is sparse. However, I have seen several LaTeX typeset books which pull this switching off. May be related to Change math font only in some parts of a document?
\documentclass{article}
\usepackage[urw-garamond]{mathdesign}
\usepackage{txfonts}
% ...
\begin{document}
% This will be in times
\[ \int e^{ax}\sin(bx+c)dx \]
% We want this in Garamond
% ...
\[ \int e^{ax}\sin(bx+c)dx \]
\end{document}
Best Answer
After defining new math versions with
\DeclareMathVersion
, you can use\DeclareMathAlphabet
,\SetMathAlphabet
,\DeclareSymbolFont
and\SetSymbolFont
to set all math families manually. You must rename the math family names. You must be sure there are no more than 16 math alphabet families (but symbol familis can be more). And there may be encoding problems.Anyway, although it's quite complex, it is posible: