[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: multi-mark-engraver not working?
From: |
David Nalesnik |
Subject: |
Re: multi-mark-engraver not working? |
Date: |
Thu, 7 Jul 2016 14:18:27 -0500 |
Hi Nik,
On Thu, Jul 7, 2016 at 12:45 PM, Nik Repka <address@hidden> wrote:
> Hello all:
>
> I'm using code from this snippet:
> http://lists.gnu.org/archive/html/lilypond-user/2011-08/msg00157.html to
> create two marks that are split from one another over a system break. Many
> people on the web are reporting that it works perfectly for them, but for
> me, the two marks remain together. Here is an example:
>
> %%%%%%%%%%%% multi-mark engraver definition here
> \layout {
> \context {
> \Score
> \remove "Mark_engraver"
> \consists #multi-mark-engraver
> \consists "Tweak_engraver"
> }
> }
>
>
>
> \relative c' { c4 c c c
> \mark \markup{D.S. al Coda} \break
> \mark \markup{CODA} c c c c }
> %%%%%%%%%%%%%
>
>
> Any ideas what is wrong or how to fix it? This is a pretty important thing
> to be able to typeset honestly...
>
It does work, but you're missing the extra tweaks that the example at
the link includes. Try this, for example:
\relative c' {
c4 c c c
\tweak #'self-alignment-X #RIGHT
\tweak #'break-visibility #begin-of-line-invisible
\mark \markup{D.S. al Coda}
\break
\mark \markup{CODA} c c c c
}
You don't say what version you're using, but in more recent versions
Tweak_engraver is already part of the Score context, so you could
remove that line.
Hope this helps,
David