[Tex/LaTex] two fonts in math mode

fontsmath-modemathpazo

In math mode (e.g. between $ $) I would like to use by default computer modern math but to define a new character with a different font e.g. mathpazo. Practically, i want to define a new command \mycommand{T} which use mathpazo for T. Is it possible? I saw that a similar question was asked but for matrices, here I just want one new character.

Best Answer

Try this. I created a command for mathpazo U as well, because it's easier to see the difference.

\documentclass{article}
\DeclareSymbolFont{pazoletters}{OML}{zplm}{m}{it}
\DeclareMathSymbol{\pazoT}{\mathalpha}{pazoletters}{"54}
\DeclareMathSymbol{\pazoU}{\mathalpha}{pazoletters}{"55}
\begin{document}
$U \pazoU$ $T \pazoT$
\end{document}
Related Question