lilypond-user
[Top][All Lists]
Advanced

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

Re: markup free positioning?


From: Han-Wen Nienhuys
Subject: Re: markup free positioning?
Date: Mon, 23 Jan 2006 17:33:04 +0100
User-agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929)

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 - address@hidden - http://www.xs4all.nl/~hanwen




reply via email to

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