[Tex/LaTex] LaTeX for music

musictypography

I need help how to construct in Latex the following:

enter image description here

This is one of the standard chord explanations in the music theory or practice. It is used to explain the harmonic processes in a piece of music. There are several different ways to describe the harmonic progressions, this one is the German standard, having roots in the Baroque music and Generalbaß (Figured Bass). As a music teacher, I need to put these symbols in the score to explain the music. This one is a combination of the tonal system (T, D, S, s, P, F…) and the Figured Bass numbers.

Best Answer

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.

% arara: pdflatex

\documentclass{article}
\usepackage{mathtools}
\newcommand{\mystack}[1]{\mspace{1mu}{\scriptsize\begin{matrix*}[l]#1\end{matrix*}}\mspace{4mu}}
\newcommand*{\myrule}[1]{~\rule[.5ex]{#1}{0.3pt}~}

\begin{document}    
\[D\mystack{7 \cr 6\myrule{2em}5  \cr 4\myrule{1.5em}3} T\mystack{5\\3}\]
\end{document}

enter image description here