[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: top-markup-spacing problem
From: |
Thomas Morley |
Subject: |
Re: top-markup-spacing problem |
Date: |
Mon, 14 Mar 2016 23:29:00 +0100 |
2016-03-14 16:13 GMT+01:00 Sharon Rosner <address@hidden>:
> Sharon Rosner wrote
>> Oh man, sorry for that!
>
> I should add that between my first and second message I've already found a
> possible workaround - adding an empty score using Devnull. But this solution
> is far from ideal as it confuses lilypond into using different sets of
> flexible vertical spacing values. So for example instead of
> mark-markup-spacing, it would score-markup-spacing etc.
>
> Sorry again for the confusion,
> Sharon
>
Hi Sharon,
I'd call it a bug, please report.
Here a smaller example:
\version "2.14.2" %% up to "2.19.38"
#(set-default-paper-size "a6")
\paper {
annotate-spacing = ##t
%% settings to ease comparability of pages:
print-first-page-number = ##t
oddHeaderMarkup = \markup \box \oddHeaderMarkup
evenHeaderMarkup = \markup \box \evenHeaderMarkup
bookTitleMarkup = \markup \fromproperty #'header:title
%% #'-syntax to make it compile with v2.14
top-markup-spacing #'basic-distance = 8
top-markup-spacing #'minimum-distance = 8
top-markup-spacing #'padding = 0 % negative padding to ignore skyline
top-markup-spacing #'stretchability = 0 % fixed position
}
val = 5
%% header on first page
\header {
title =
\markup \box \line { "1 - Hey" \with-color #red \draw-line #`(0 . ,val) }
}
\pageBreak
%% top-level markup on second page
\markup \box \line { "2 - Hey" \with-color #red \draw-line #`(0 . ,val) }
A possible workaround might be to topalign toplevel-markups:
#(define-markup-command (vup layout props arg)
(markup?)
(let* ((mol (interpret-markup layout props arg)))
(ly:stencil-aligned-to mol Y UP)))
%% top-level markup on second page
\markup \vup \box \line { "2 - Hey" \with-color #red \draw-line #`(0 . ,val) }
Cheers,
Harm