lilypond-user
[Top][All Lists]
Advanced

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

Re: How to set a fixed distance between upper page edge and top line of


From: Aaron Hill
Subject: Re: How to set a fixed distance between upper page edge and top line of first staff?
Date: Tue, 30 Jul 2019 11:05:20 -0700
User-agent: Roundcube Webmail/1.3.8

On 2019-07-30 10:21 am, kimfierens wrote:
Unfortunately none of your proposed solutions produced entirely satisfactory results. For some odd reason, the one note examples work pretty well, but as
soon as more notes are added to a staff, the staffs are whacked out of
alignment.

It would be helpful to see precisely what you are trying and the results you are getting. Simply saying "more notes are added" and "whacked out of alignment" leaves us having to guess at what might be going wrong.

Additionally, I find it difficult to get all the snippets equal width.

Set paper and line width appropriately with ragged-right set to false. Consider:

%%%%
\version "2.19.83"

#(set-global-staff-size 20)
\paper {
#(set! paper-alist (cons '("custom" . (cons (* 1.5 in) (* 40 pt))) paper-alist))
  #(set-paper-size "custom")
  top-margin = 0 bottom-margin = 0 indent = 0
  line-width = 1.5\in ragged-right = ##f
  oddHeaderMarkup = ##f evenHeaderMarkup = ##f tagline = ##f
  top-system-spacing =
    #'( (basic-distance . 0) (minimum-distance . 4)
        (padding . -100) (stretchability . 0) )
  last-bottom-spacing =
    #'( (basic-distance . 0) (minimum-distance . 0)
        (padding . -100) (stretchability . 0) )
}

music = { \time 3/4 c'4 g' d'' | a''2. \bar "|." }
\score { \transpose c' g \music }
\score { \transpose c' c' \music }
\score { \transpose c' f' \music }
%%%%

Results attached for reference.


-- Aaron Hill

Attachment: top-system-spacing.pdf
Description: Adobe PDF document


reply via email to

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