|
From: | Ben |
Subject: | Re: hbracket question |
Date: | Thu, 14 Feb 2019 18:45:09 -0500 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 |
On 2/14/2019 6:35 PM, Aaron Hill wrote:
On 2019-02-14 3:07 pm, Ben wrote:
Thanks Aaron! This works great.
On 2/14/2019 6:35 PM, Thomas Morley
wrote:
Am Fr., 15. Feb. 2019 um 00:11 Uhr schrieb Ben <address@hidden>:Hi all, Is it possible to adjust the length of the shorter vertical line of \hbracket when you use it as markup?No, it's all hardcoded. But you can redefine it: #(define-markup-command (hbracket-harm layout props arg) (markup?) #:category graphic #:properties ((thickness 1) (height 0.25)) " @cindex placing horizontal brackets around text Draw horizontal brackets around @var{arg}. @lilypond[verbatim,quote] \\markup { \\hbracket { \\line { one two three } } } @end lilypond" (let ((th (* (ly:output-def-lookup layout 'line-thickness) thickness)) (m (interpret-markup layout props arg))) (bracketify-stencil m X th height th))) \relative c' { R1*3 c1^\markup { \override #'(thickness . 2) \override #'(height . 1) \hbracket-harm { \line \pad-around #0.2 { My markup } } } } Probably rename it ;) Best, Harm Harm, Thank you for making this for me, I'll probably rename it yes ;) Works beautifully!
|
[Prev in Thread] | Current Thread | [Next in Thread] |