lilypond-user
[Top][All Lists]
Advanced

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

Re: Double-underline markup


From: Urs Liska
Subject: Re: Double-underline markup
Date: Tue, 15 Oct 2019 13:29:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

Hi all,

thank you for your suggestions. I've implemented Aaron's solution, which seemed to be the most natural and semantically appropriate for my use case. The results seem sufficient too (see attachment).

Best
Urs


Am 15.10.19 um 13:18 schrieb Pierre Perol-Schneider:
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 <address@hidden> 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
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user

Attachment: 1756_BD_26_NBsp_18.png
Description: PNG image


reply via email to

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