As described in this answer, constants should be typeset upright, not in italics. However the symbol for reduced Planck's constant (, \hbar
) is in italics by default. This is especially obvious when using both h
and \hbar
in one equation. How do I make LaTeX typeset ħ upright?
EDIT: I've tried \mathrm
, \text
, \textup
, none of them works.
Best Answer
I won't delve into the issue whether this should be done or not.
The LaTeX kernel defines
and as such
\mathrm{\hbar}
should give an upright\hbar
. However, the negative space of 9 math units is a wee bit too much for the upright letter;8mu
looks better, so you can useCare should be taken when font packages are loaded, for many of them contain
\hbar
as symbol. Obvious example:amssymb
. In this case the redefinition of\hbar
bust be issued after loading any font packages. To be on the safe side the above redefinition could be put into a\AtBeginDocument
hookEDIT To lower the bar a little the safest way is IMO to put it into a box and lower it by an amount relative to the height of the box.