# How to write h-bar (Planck constant divided by 2 $\pi$) using MathJax?

In this question I wrote

$$|\mathbf{k_{scat}}| = \frac{2 \pi}{h} \sqrt{2 m_e e V}$$

where $$h$$ is the Planck constant.

In physics we have h-bar which is $$h/ 2 \pi$$ but I don't know how to add h-bar using MathJax.

• \hbar should produce $\hbar$. Apr 23, 2020 at 23:42
• @IvoTerek indeed it should, and does! I wonder if that could be added to MathJax basic tutorial and quick reference page somehow?
– uhoh
Apr 23, 2020 at 23:45
• I just checked it quickly and it doesn't seem that this would fit with any of the current answers (and it doesn't warrant a new answer by itself). However, one of the answers does mention the Detexify website, where you can draw a symbol and they recognize what it is to give you the code. There is also a mobile app. I just made a sloppy h-bar on the mobile app and it was easily recognized. Apr 23, 2020 at 23:48
• @IvoTerek yay! i.stack.imgur.com/peJsY.png
– uhoh
Apr 23, 2020 at 23:51

\hbar produces $$\hbar$$ (as @IvoTerek has mentioned) and \hslash produces $$\hslash$$.