Home
Random
Log in
Settings
About LilyPond wiki
LilyPond wiki
Search
Editing
Strikethrough text
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Here is how to print text with a horizontal line drawn in the middle, <s>much like what you can get in HTML or CSS</s>. <lilypond version="2.24.0"> #(define-markup-command (strikethrough layout props arg) (markup?) #:category font #:properties ((thickness 2)) " @cindex strikethrough, text Draw an horizontal line through the markup's middle. @lilypond[verbatim,quote] \\markup { The \\strikethrough Well- Tempered Clavier } @end lilypond" (let* ((th (* (ly:output-def-lookup layout 'line-thickness) thickness)) (stil (interpret-markup layout props arg)) (xextent (ly:stencil-extent stil X)) (yextent (ly:stencil-extent stil Y)) (y-pos (/ (- (cdr yextent) (car yextent)) 2))) (ly:stencil-add stil (make-line-stencil th (car xextent) y-pos (cdr xextent) y-pos)))) \header { title = \markup { The \strikethrough Well- Tempered Clavier } } \markup { by \strikethrough J.S. P.D.Q. Bach. } </lilypond> [[Category:Text]]
Summary:
Please note that all contributions to LilyPond wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Meta:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)