[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lyluatex: wrapper with both lilypond code and optional arguments
From: |
Malte Meyn |
Subject: |
Re: lyluatex: wrapper with both lilypond code and optional arguments |
Date: |
Mon, 17 Sep 2018 16:33:43 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 |
Am 17.09.18 um 16:30 schrieb Malte Meyn:
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
Forgot to mention: I tried to use \begin{dly}[…] here instead of \ly:
\newenvironment{aly}{
\ly
\layout {
\context {
\Voice
\override NoteHead.color = ##blue
}
}
}{\endly}
But then the LilyPond code is processed by LuaLaTeX. And LuaLaTeX
complains that it doesn’t know the \layout command ;)