How should I write the Bémol, dièse symbols in TeX?
Best Answer
\documentclass{article}
\usepackage{musicography}
\begin{document}
There is a new package \texttt{musicography}, that provides easy writing of
\musFlat{} or \musSharp{} or \musNatural{} and some more music symbols.
\end{document}
You could use a matrix for this. I put everything in custom commands. Like this, you can adjust kerning, line thickness, arraystretch, font, and so on later.
The notes are quite common in unicode text fonts, although for some reason the default latin modern has quaver but not crotchet, I picked a Garamond clone here
Use with lualatex or xelatex
\documentclass{article}
\usepackage{xcolor}
\usepackage{fontspec}
\setmainfont{Garamond Libre}
\begin{document}
\textcolor{red}{a red quaver ♪ and a crotchet ♩}
\end{document}
Best Answer
Other solutions can be found in the answers to question: How to look up a symbol or identify a math symbol or character?