Introduction
LaTeX can typeset sheet music through specialized packages. MusiXTeX provides comprehensive music notation capabilities.
This guide covers music typesetting in LaTeX.
MusiXTeX Basics
\documentclass{article}
\usepackage{musixtex}
\begin{document}
\begin{music}
\startextract
\notes \ha{c}\qa{c}\hu{g}
\zq{N}{c}\qu{c}\zq{N}{d}\qu{e}
\zq{N}{f}\zq{N}{g}\zq{N}{a}\qu{b}
\wendextract
\end{music}
\end{document}
Notes and Rests
\qu{ } % quarter note
\ha{ } % half note
\wa{ } % whole note
\qa{ } % eighth note
\ca{ } % sixteenth note
\hu{ } % half rest
\qu{ } % quarter rest
Clefs and Keys
\clef treble
\clef bass
\clef alto
\signature{1}
\signature{2}
Conclusion
MusiXTeX enables music notation in LaTeX. For simpler needs, consider lilypond or external tools.
Comments