For my instrumental scores, I need to create a proper title page using 
bookTitleMarkup. Unfortunately, there are several problems:

-) The lines of the markup are never stretched to be spaced evenly on the page

-) If you use hardcoded vertical distances between the lines, the footer line 
will be placed either too high or two low, depending on whether some header 
fields use one or two lines

-) There is no page break possible inside the bookTitleMarkup, so you have to 
manually add a \pageBreak\allowPageTurn right before the score.

-) The normal title markup can only be generated by abusing the 
scoreTitleMarkup field.


Attached is a sample score showing these problems: In one score the instrument 
name takes up just one line, in the other score it takes three lines. As a 
consequence, the publisher footer line on the title page is either way too 
much up or way too much down on the page...

Is there any way to create the bookTitleMarkup in a way that 

1) allows page breaks in between (i.e. on the second page there should be the 
"normal" title markup

2) the contents of the title page are stretched, so that one does not have to 
use explicit \vspace{..}, which does not work at all.

Thanks,
Reinhold

-- 
------------------------------------------------------------------
Reinhold Kainhofer, [email protected], http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org
\version "2.13.35"

\header {
  instrument = "Violin"
  title = "My Work"
  composer = "Somebody special"
  dedication = "To whomever it applies"
  publisher = "Published by no particular publisher"
}

% Very simple definition of my title page (in reality, it contains many more possible entries):
titlePageMarkup = \markup \abs-fontsize #10 \column {
	\vspace #6
	\fill-line { \fontsize #8 \fromproperty #'header:composer }
	\vspace #8
	\fill-line { \fontsize #10 \bold \fromproperty #'header:title }
	\vspace #1
	\fill-line { \postscript #"-20 0 moveto 40 0 rlineto stroke" }
	\vspace #13
	\fill-line { \bold \fontsize #6 \rounded-box \fromproperty #'header:instrument }
	\vspace #16
	\fill-line { \fromproperty #'header:publisher }
}

% I need the "normal" title on the second page at the begin of the piece, 
% For now, I have to abuse the scoreTitleMarkup and copy the original 
% bookTitleMarkup from titling-init.ly, as the bookTitleMarkup
% cannot contain a page break!
originalBookTitleMarkup = \markup {
  \override #'(baseline-skip . 3.5)
  \column {
    \fill-line { \fromproperty #'header:dedication }
    \override #'(baseline-skip . 3.5)
    \column {
      \huge \larger \bold
      \fill-line {
        \larger \fromproperty #'header:title
      }
      \fill-line {
        \large \smaller \bold
        \larger \fromproperty #'header:subtitle
      }
      \fill-line {
        \smaller \bold
        \fromproperty #'header:subsubtitle
      }
      \fill-line {
        \fromproperty #'header:poet
        { \large \bold \fromproperty #'header:instrument }
        \fromproperty #'header:composer
      }
      \fill-line {
        \fromproperty #'header:meter
        \fromproperty #'header:arranger
      }
    }
  }
}



\paper {
	bookTitleMarkup = \titlePageMarkup
	scoreTitleMarkup = \originalBookTitleMarkup
}

\book {
	\header {
		instrument = "Violin"
	}
	% This explicit page break should not be necessary! I'd really like to 
	% add the page break to the title page markup!
	\pageBreak
	\allowPageTurn
	
	\score { \relative c' {c1}}
}

\book {
	% This three-line instrument name shifts the publisher down beyond the edge of the page:
	\header {
		instrument = \markup \center-column { "Violoncello" "Contrabasso" "ed Organo" }
	}
	\pageBreak
	\allowPageTurn
	
	\score { \relative c' {c1}}
}
_______________________________________________
bug-lilypond mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to