lilypond-user
[Top][All Lists]
Advanced

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

Re: When was vspace introduced?


From: Alexander Kobel
Subject: Re: When was vspace introduced?
Date: Mon, 06 Sep 2010 16:00:12 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Lightning/1.0b1 Thunderbird/3.0.6

On 2010-09-06 15:45, Christopher Meredith wrote:
I have been using latest stable (2.12.3) because that's what comes
with Ubuntu. Everything's fine, except it doesn't appear to recognize
vspace (I get compile errors). I installed 2.13.31 which does
recognize vspace, but now I am having problems with placement of all
my other objects (everything seems more cramped). I'd like to try the
earliest version that supports vspace to see if it solves both
problems at once.

Hi, Christopher,

vspace has been introduced in the 2.13.x series. This features the new vertical layout algorithm, which seems to cause you the problems. But the definition of vspace works with 2.12.x (and probably even earlier) - just include the following in your file to "backport" it (taken from scm/define-markup-commands.scm):

#(define-markup-command (vspace layout props amount)
 (number?)
  (let ((amount (* amount 3.0)))
    (if (> amount 0)
        (ly:make-stencil "" (cons 0 0) (cons 0 amount))
        (ly:make-stencil "" (cons 0 0) (cons amount amount)))))


HTH,
Alexander



reply via email to

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