I am trying to place two LilyPond musical examples side-by-side in a LaTeX document, with captions. How can I achieve that?
This is the code I am using:
\usepackage{float}
...
\begin{document}
...
\begin{minipage}
\begin{example}
\centering
\begin{lilypond}[staffsize=12]
Musical Example 1 comes here
\end{lilypond}
\caption{Caption 1}
\label{ex1}
\end{minipage}
\begin{minipage}
\begin{example}
\centering
\begin{lilypond}[staffsize=12]
Musical Example 2 comes here
\end{lilypond}
\caption{Caption 2}
\label{ex2}
\end{minipage}
\end{document}
By the way, TeXShop with the LilyPond-Book implementation is a life saver!
