This ℏ letter from the Latin alphabet is used in physics as a symbol of the Planck constant, and it is also used as a symbol for Hedera Hashgraph’s native cryptocurrency. How to use this symbol in Latex will be discussed in this tutorial.
Symbol | H-bar |
---|---|
Type of symbol | Mathematics |
Package (requirement) | No |
Argument | No |
Latex command | \hbar |
Example | \hbar → ℏ |
LaTeX provides a command to print the h-bar symbol in a LaTeX document, which is \hbar
. This command lets you easily print the h-bar symbol to the document and is a default command in LaTeX. Since this command works in math mode, you must always enclose the command in single-dollar($) or \[...\]
.
Below are some examples of the use of \hbar
command.
\documentclass{article}
\begin{document}
\[ J_z = m \hbar \]
\[ \hbar = \frac{h}{2\pi} \]
\[ p^N = \hbar \left(\frac{w}{c}, \vec{K} \right) \]
\end{document}
Output :
H-bar symbol using other packages
You can also use other packages to print h-bar symbols in latex documents. Some packages use a similar command as the default command in \hbar
, and some packages use a slightly different command to print the h-bar symbol to the document.
But you can see some differences in the h-bar symbols of different packages in the output. The following table shows how the h-bar symbol will appear in various packages, commands, and output.
Package | Command and Output |
---|---|
amsmath | \hbar → ![]() |
fdsymbol | \hbar → ![]() |
boisik | \hbar → ![]() |
boisik | \hslash → ![]() |
phonetic | \planck → ![]() |
wsuipa | \crossh → ![]() |
tipa | \textcrh → ![]() |
To use this symbol in text mode, you can use the \planck
command from the phonetic package or the \textcrh
command from the tipa package. The following example shows the use of these two packages.
\documentclass{article}
\usepackage{phonetic,tipa}
\begin{document}
E=\planck$\omega $\\[4pt]
\textcrh=$1.054571817\times 10^{-34} $ J-s
\end{document}
Output :
WOOOOOPPPP ,…. top post ,.. gona save it!