lilypond-user
[Top][All Lists]
Advanced

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

Re: What are the units for \hspace?


From: Thomas Morley
Subject: Re: What are the units for \hspace?
Date: Sat, 15 Apr 2017 13:04:55 +0200

2017-04-15 10:35 GMT+02:00 Richard Shann <address@hidden>:
> Is it documented anywhere what the units used in the markup command
> \hspace are?

The general doc is at NR 5.4.3 Distances and measurements

>
> the documentation is:
>
> \hspace amount (number)
>
>         Create an invisible object taking up horizontal space amount.
>
>
> The "amount" appears to be smaller than the width of the "m", but larger
> than a staff-space...
>
> Richard


It's exactly staff-space. See also the terminal-output of:

#(define-markup-command (demo layout props) ()
(let ((stil (interpret-markup layout props #{ \markup \hspace #1 #} )))
(format #t
"\n++++++++++++++++++++++++++++++++++++++\n
staff-space is:                   ~a\n
length of \\markup \\hspace \\#1 is: ~a
\n++++++++++++++++++++++++++++++++++++++
"
(assoc-get 'staff-space (ly:module->alist (ly:output-def-scope layout)))
(interval-length (ly:stencil-extent stil X)))

 stil))


\markup \demo


Cheers,
  Harm



reply via email to

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