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>

HTH, Simon

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

Reply via email to