Symbol/Unicode | Hash/U+0023 |
---|---|
Type of symbol | Typographical |
Package (requirement) | No |
Argument | No |
Latex command | \# |
Example | \# → # |
Sometimes we need a hash symbol in a latex document. You need to use the \#
command to print this symbol in a latex document.
\documentclass{article}
\begin{document}
\# LaTeXhelp\\[6pt]
\# hashtag\\[6pt]
\# learning
\end{document}
Output :
There is another method by which you can print the hash symbol in a LaTeX document, which is by using the \char"0023
command. If the \#
command doesn’t work, you can print the hash symbol to the document with the \char"0023
command.
\documentclass{article}
\begin{document}
\verb|\char"0023| $\rightarrow $ \char"0023\\[6pt]
\char"0023 latexhelp\\[6pt]
$ V^{\char"0023}\Big|_n $
\end{document}
Output :