Hello all!
I'm currently in a Linear Algebra class and like to type up my solutions to the weekly homework. I follow the convention in the textbook to write linear operators and vector spaces as captial, sans-serif characters, for instance:
Instead of $T$, we would write $\mathsf{T}$.
So it's become a real pain having to write "\mathsf{}" so many times. Is there any way to have "T" automatically change to "\mathsf{T}" in math mode, unless I somehow explicitly say not to?
I would like to do this to the characters T, U, V, and W. Is this possible?
I suppose another solution to be to define a command for each of those characters as follows:
\newcommand{\T}{\mathsf{T}}
But if I can avoid this, that would be nice. Any suggestions?
General ⇒ Redefining Characters in Math Mode
NEW: TikZ book now 40% off at Amazon.com for a short time.

Redefining Characters in Math Mode
Hello,
add this to your preamble:
add this to your preamble:
Code: Select all
\DeclareSymbolFont{sansserif}{OT1}{\sfdefault}{m}{n}
\DeclareMathSymbol{T}{\mathalpha}{sansserif}{`T}
\DeclareMathSymbol{U}{\mathalpha}{sansserif}{`U}
\DeclareMathSymbol{V}{\mathalpha}{sansserif}{`V}
\DeclareMathSymbol{W}{\mathalpha}{sansserif}{`W}