2017-04-15 10:35 GMT+02:00 Richard Shann <rich...@rshann.plus.com>:
> 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

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

Reply via email to