lilypond-user
[Top][All Lists]
Advanced

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

Re: Spacing between titles


From: Simon Albrecht
Subject: Re: Spacing between titles
Date: Tue, 3 Jan 2017 00:02:51 +0100

On 02.01.2017 23:54, Simon Albrecht wrote:
On 02.01.2017 23:22, Mirosław Doroszewski wrote:
to set spacing for titles, it is needed to set
markup-markup-spacing, but it is not working;

Hi Mirosław,

markup-markup-spacing is for the spacing between multiple top-level markup blocks, like in

%%%%%%%%%%%%%%%
\version "2.18.2"
\markup "Hello"
\markup "world"
%%%%%%%%%%%%%%%

The headers, however, are typeset as a single \markup block, defined as the paper variable bookTitleMarkup, and another single \markup block, defined as scoreTitleMarkup. So in order to adjust spacing between e.g. title and subtitle you have to redefine bookTitleMarkup:

%%%%%%%%%%%%%%%
\version "2.18.2"
\header {
  title = "Beautiful piece"
  subtitle = \markup { in A \flat minor }
}
\paper {
  bookTitleMarkup = \markup {
    \override #'(baseline-skip . 5)
    \column {
\with-color #red \fill-line { \null \fromproperty #'header:title \null }
      %\vspace #10
      \fill-line { \null \fromproperty #'header:subtitle \null }
    }
  }
}
{ c' }
%%%%%%%%%%%%%%%%

This allows creating stylesheets with your own preference on how to place and format the titles.

Find more information here:
<http://lilypond.org/doc/v2.18/Documentation/notation/creating-titles-headers-and-footers#default-layout-of-bookpart-and-score-titles> <http://lilypond.org/doc/v2.18/Documentation/notation/custom-titles-headers-and-footers#custom-layout-for-titles> <http://lilypond.org/doc/v2.18/Documentation/notation/writing-text#separate-text>
<http://lilypond.org/doc/v2.18/Documentation/notation/formatting-text>

It may also be interesting to look at the default definition of these paper variables, which is set in the file
<path-to-your-LilyPond-installation>/lilypond/usr/share/lilypond/current/ly/titling-init.ly
(on Windows, it should be the same, but with \ instead of /.)


HTH, Simon

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user




reply via email to

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