lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some newbie troubles, especially with text


From: Mats Bengtsson
Subject: Re: Some newbie troubles, especially with text
Date: Tue, 21 Mar 2006 22:43:41 +0100
User-agent: Internet Messaging Program (IMP) H3 (4.0.4)

Quoting Stephen <address@hidden>:
That still works for "Fine" and "D.C. al fine" which must be right-aligned with the barline, but is usually on the topmost stave. Bottom line is we have a system that works for them, considering how flexible it needs to be anyway to cover all cases. The only generalization that we could make would be a version of \mark that right-aligns, allows markup of the last bar of a score, and uses a smaller font size by default (with a slightly smaller padding as well) than \mark uses.

Someone else probably wants a version that left aligns and uses
bold font, not to mention ... Therefore, it's possible for you to make your own favourite command, see Sect, "11.1.3 Extending music syntax" and "11.1.6 Using LilyPond syntax inside Scheme" in the manual if you want a command that
takes a text argument. Or even simpler, add a definition like
the following in a file myfavouritemacros.ly:

DS = {
\once \override Score.RehearsalMark #'break-visibility = #begin-of-line-invisible
\once \override Score.RehearsalMark #'self-alignment-X = #right
\mark \markup{\smaller "D.S. al Fine" }
}

Then, you can \include it wherever in whatever .ly file you have
and use it like c1 \DS \bar "|."

 /Mats





reply via email to

[Prev in Thread] Current Thread [Next in Thread]