How could one use MathTime Professional 2 fonts on only one line of text (in math mode) in a document, where every other line of text (in math mode) displays as though the mtpro2 package is not being used at all?
1 Answer
Here's a somewhat kludgy suggestion:
Create a one-line document using the standalone
document class. Suppose this text file is called mmm.tex
:
%% mmm.tex
\documentclass[border=0.25pt]{standalone}
\usepackage{mtpro2}
\begin{document}
$\displaystyle a^2+b^2=c^2$
\end{document}
Compile this tex file; let's assume the resulting pdf file is called mmm.pdf
.
Next, set up a "regular" tex file:
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\[ \raisebox{-0.25ex}{\includegraphics{mmm}} \]
\end{document}
The contents of mmm.pdf
-- the one-line equation -- will show up as the contents of the display-math environment. Use the first argument of \raiesebox
to raise (positive argument) or lower (negative argument) the graphic.
amsmath
,amssymb
,amsfonts
don't load any non-default font families. Are you usingComputer Modern
for your document? And, are you saying you would like to useComputer Modern
(both as a text and as a math font) everywhere in the paper except for the material of one line, which should useTimes
text andMathTime Professional
math fonts? I assume you're aware thatTimes
andComputer Modern
don't harmonize particularly well, right?