I'd like to have a macro that lets me say something like
\vector{lambda}
and get an upright and bold lambda. I would like to say something like
\matrix{Lambda}
to get a capital, upright, and bold lambda, but not to say \bm{\Uplambda}
each time (using the bm and the upgreek packages). Also, most of the time I'd like all of my greek letters to be upright, but also to have a way to get back to italic greek if needed. I'd like to use \renenewcommand
as:
\renewcommand{\lambda}{\ensuremath\uplambda}
,
to turn \lambda into my preferred default in math of upright, but also reserve the option to have an italic letter at times. As it turns out, I'll only have an italic greek letter if I also have a hat, dot, bar, or tilde over it). I'm not sure if such a bit of code would do that. (I'm approaching this from a statistics perspective, in which a parameter is upright but an estimate of a parameter would be italic, but would also have a hat or tilde, for example).
One thing I tried was to get the original alpha into an italic, but that doesn't seem to work:
\newcommand{\ialpha}{\alpha}
\renewcommand{\alpha}{\ensuremath{\upalpha}}
as when I use \ialpha
I still get an upright, presumably because it is "pulling" from the newly defined alpha (even though it happens afterward).
Thanks for any thoughts. I've been running in circles trying to find ways to do all of this!
\alpha
whereever you need italic and use\upalpha
for roman.Bold
, you can use as\boldsymbol{\alpha}
and\boldsymbol{\upalpha}
bm
package and its\bm{\alpha}
command.