Felix Hammer wrote:
Am Sonntag, 22. Januar 2006 21:24 schrieb Han-Wen Nienhuys:

Please keep discussion on the list.

try


#(def-markup-command (with-dimensions layout props x y arg)
(number-pair? number-pair? markup?)
  "Set the dimensions of @var{arg} to @var{x} and @var{y}."

  (let* ((m (interpret-markup layout props arg)))
    (ly:make-stencil (ly:stencil-expr m) x y)))

{
  c^\markup { \with-dimensions #'(1000 . -1000) #'(1000 . -1000) \bla }
}


Thx Han for answer. Sry but i didnt undertand to use this.
I tried this last with different values for \with-dimension
____________________________________________________
\version "2.6.4"

#(def-markup-command (with-dimensions layout props x y arg)
(number-pair? number-pair? markup?)
        "Set the dimensions of @var{arg} to @var{x} and @var{y}."
(let* ((m (interpret-markup layout props arg)))
        (ly:make-stencil (ly:stencil-expr m) x y)))

\book {
        \markup { "abc" }
        \score {
<< \new Staff { d4^\markup { \with-dimensions #'(10 . -20) #'(10 . -20) "bla" } e f g
        }
        >>
        }
        \markup { \with-dimensions #'(10 . -20) #'(10 . -20) "bla" }
} _____________________________________________________

"bla" did not appear. what i'am doing wrong?


sorry for the confusion, apparently, the "bla" disappears if it doesn't have any dimensions. Try this,

{
  c^\markup { foo
              \with-dimensions #'(0 . 0) #'(0 . 0)
              \translate #'(0 . -5)
              bla }
}


--
 Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen


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

Reply via email to