Kieren MacMillan <kieren_macmil...@sympatico.ca> writes:

> What's the easy way of saying "center the number in a box at least
> 'this big', but use the number's real extent if it's bigger than
> that"?

\hcenter-in does that.

#(define-markup-command (ellipse layout props text) (markup?)
  #:properties ((thickness 0.2) (box-padding 0))
   (ellipse-stencil (interpret-markup layout props text)
    thickness box-padding box-padding))

\markup \ellipse \hcenter-in #2.5 { "1" "12" "123" "1234" }

-- 
David Kastrup


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

Reply via email to