I’m using pdfLaTeX, and I want all vectors I typeset to be in bold, upright font. Unfortunately, based on whether the symbol is latin, lowercase greek, or uppercase greek, there are different commands necessary to make it bold and upright. I’d like to be able to define a single macro — say, \vector
— such that it does what I want no matter the argument and I don’t have to think about it:
\vector{a} => \mathbf{a}
\vector{\alpha} => \boldsymbol{\upalpha}
\vector{\Omega} => \boldsymbol{\Omega}
This popular question deals with some of this issue, but the solutions there still have the lowercase greek vectors in bold italic, not bold upright. Plenty of other questions touch on this issue in various ways, but I haven't been able to find a definitive answer to this exact variant. Perhaps the answer is “you can’t” — but I haven't seen that definitively either.
—
Edited \Alpha
, which doesn't exist, to \Omega
.
unicode-math
package, which provide this support with\symbf
out of the box. (You haave to use XeTeX or LuaTeX though.)