Hi list,
I have the following problem: I want to use a wrapper for the ly
environment that contains some \layout code, music function definitions
etc. *And* I would like to use lyluatex’s label argument. Any idea how
to do both? The following example shows both a ly environment with label
and a wrapper called “aly”. But I haven’t found a way to label the aly
environment.
Thanks in advance for any hints and help!
Malte
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[a4paper,12pt]{article}
\usepackage{lipsum}
\usepackage[nofragment,labelprefix=nbsp:]{lyluatex}
\newcommand{\preLilyPondExample}{\par\medskip}
\newcommand{\postLilyPondExample}{\par\medskip}
\newenvironment{aly}{
\ly
\layout {
\context {
\Voice
\override NoteHead.color = ##blue
}
}
}{\endly}
\begin{document}
\textbf{\pageref{nbsp:test}}
\lipsum
\begin{ly}[label=test]
\new Staff \with {
instrumentName = "Octobass"
} \relative {
c'1 R1*20
}
\end{ly}
\lipsum
\begin{aly}
\new Staff \with {
instrumentName = "Octobass"
} \relative {
c'1 R1*20
}
\end{aly}
\lipsum
\end{document}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user