lilypond-user
[Top][All Lists]
Advanced

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

Re: columns in markup-command


From: Jan-Peter Voigt
Subject: Re: columns in markup-command
Date: Mon, 18 Nov 2013 15:08:06 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.1.0

Hi Kevin,

you can make it a bit easier, if you enter the markup in a #{#} construct:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#(define-markup-command (extender layout props) ()
   #:properties ((xLength 4))
   (interpret-markup layout props
     #{
       \markup \concat {
         "V" \super \override #'(baseline-skip . 0) \column {
           \line { \fontsize #-2 \number #"6"
                   \raise #.5 \draw-line #(cons xLength 0)
                   \fontsize #-2 \number #"5" }
           \line { \fontsize #-2 \number #"4"
                   \raise #.5 \draw-line #(cons xLength 0)
                   \fontsize #-2 \number #"3" }
         }
       }
     #}
))

\relative c' {
  c1_\markup { \extender }
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

HTH
Best, Jan-Peter


Am 18.11.2013 14:57, schrieb Kevin Patrick Barry:
> Dear lilypond users,
> 
> I am trying to make a lilypond command for Roman numerals with a length
> property that I can override.  I have no idea what I'm doing when it
> comes to scheme, and I can't seem to get a column to work properly.  The
> function I am trying to write is below.  The problem is that the second
> #:line is placed outside the column after it, instead of within it.  My
> various attempts to force it into the column all meet with errors.  I
> tried using the make-column-markup function as well to no avail.  I can
> do it correctly using ordinary markup commands, but then I can't seem to
> introduce the property I want to be able to modify without causing
> errors. Any help would be appreciated.
> 
> Kevin




reply via email to

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