Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
    
1  
With fonts, then the particular way you invoke tex can make a big difference. Are you using Xe(La)TeX or Lua(La)TeX? –  Loop Space Apr 27 '12 at 7:26
    
@Thorsten Possibly, but if the questioner is using XeTeX or LuaTeX then there's a way to do this using unicode-math which isn't mentioned at that question. –  Loop Space Apr 27 '12 at 7:27
    
@AndrewStacey That's a good point. I wasn't aware of this. (I never use maths in my documents) –  Thorsten Apr 27 '12 at 7:30
    
The MathPazo T is very similar to the CM one: the reader will have a hard time in distinguishing one from the other. –  egreg Apr 27 '12 at 8:54

2 Answers 2

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}
share|improve this answer

If you need more letters, you can use:

\documentclass{article}

\DeclareMathAlphabet\mathpazo{OML}{zplm}{m}{it}

\begin{document}

$Math$ V.S. $\mathpazo{Math}$

\end{document}

But if only one or two letters are needed, use \DeclareSymbolFont and \DeclareMathSymbol would be better.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.