On 15 Aug 2005, at 16:19, Mats Bengtsson wrote:
Could this be used to generate a new command \markbelow, that works as \mark, except that it puts the stuff below?How do I get it printed under the barline?First of all, note that \mark is handled at the score level, so you can only use it to print things above or below the full system, not above/below each stave. So, if you want to printed below the system, just set the 'direction' property: \override Score.RehearsalMard #'direction = #DOWNYou can define your own functions, seehttp://lilypond.org/doc/v2.6/Documentation/user/out-www/lilypond/ Using-LilyPond-syntax-inside-Scheme.htmland other sections of that chapter.
Thanks. I have had a look of it before, but not gotten so far as starting to program scheme, or at least not much so.
One epossible implementation is the following: markbelow = #(def-music-function (parser location text) (markup?)#{\once \override Score.RehearsalMark #'break-visibility = #begin-of-line-invisible\once \override Score.RehearsalMark #'direction = #DOWN \mark #$text #} ) \score{ \relative c'{ c1 \markbelow \markup "below" \bar "|."} \layout{raggedright=##t} }
If I put \layout{raggedright=##t}into my score, I get funny line-breaks. The "below" gets printed not below, but as in the following image:
<<attachment: ex.jpg>>
Hans Aberg
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user