This works fine: #(define-markup-command (dle-underline layout props args) (markup?) #:properties ((offset 2) (gap 3)) (interpret-markup layout props (markup #:override (cons 'offset (+ offset gap)) #:underline (#:with-dimensions-from args #:override (cons 'offset offset) #:underline args))))
\markup { \dle-underline "Lorem ipsum" \override #'(offset . 4) \override #'(gap . 5) \dle-underline "dolor sit amet" } Cheers, Pierre Le mar. 15 oct. 2019 à 13:18, Pierre Perol-Schneider < pierre.schneider.pa...@gmail.com> a écrit : > Hi Urs a,d Aaron, > > Simply: > > \markup { > \underline > \override #'(offset . 6)\underline > "Lorem ipsum" > \override #'(offset . 5)\underline > \override #'(offset . 10)\underline > "dolor sit amet" > } > > Works too. However, lines length are not equals, even in Aaron's coding. > HTH, > Cheers, > Pierre > > > > Le mar. 15 oct. 2019 à 11:39, Aaron Hill <lilyp...@hillvisions.com> a > écrit : > >> On 2019-10-15 12:47 am, Urs Liska wrote: >> > Hi all, >> > >> > is there an easy or already-implemented way to have a markup >> > double-underlined, or do I have to draw that manually? >> >> It's not exactly perfect, but you can \underline an \underline: >> >> %%%% >> \version "2.19.83" >> >> #(define-markup-command (double-underline layout props args) >> (markup?) #:properties ((offset 2) (gap 3)) >> (interpret-markup layout props >> (markup #:override (cons 'offset (+ offset gap)) #:underline >> #:override (cons 'offset offset) #:underline args))) >> >> \markup { >> \double-underline "Lorem ipsum" >> \override #'(offset . 4) \override #'(gap . 5) >> \double-underline "dolor sit amet" >> } >> %%%% >> >> >> -- Aaron Hill_______________________________________________ >> lilypond-user mailing list >> lilypond-user@gnu.org >> https://lists.gnu.org/mailman/listinfo/lilypond-user >> >
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user