On 07/10/13 09:33, EdBeesley wrote:
2.16.2
I've added a title page to my score, the best way I could think of doing it
was to wrap the title page and score in separate \bookpart's . The structure
is like below:
\bookpart {
paper {
first-page-number = #0
print-first-page-number = ##f
}
\markup {blah blah blah title page stuff}
}
\bookpart {
\paper {
first-page-number = #1
print-first-page-number = ##t
}
\header {
<blah blah blah>
}
\score {
c d e f
}
Structurally this works fine /except/ the score starts on page 2 when as you
can see I've tried to make it start on page 1. Have I got the syntax wrong?
Also the copyright stuff in the header isn't being displayed in the second
bookpart, can anyone think of a way to fix this?
This is an example of what I have been using - a separate title page,
page numbering starts with 1 on the next page, page numbers centred at
bottom of page, copyright msg instead of page number at bottom of last
page. If you want an additional blank page so that score starts on a RH
page, then set first-page-number to -1 and insert an additional page break:
\version "2.17.27"
date = #(strftime "%d/%m/%Y" (localtime (current-time)))
\paper {
#(define (print-positive-page-number layout props arg)
(if (> (chain-assoc-get 'page:page-number props -1) 0)
(create-page-number-stencil layout props arg)
empty-stencil))
%% cf. ly/titling-init.ly
#(define (not-last-page layout props arg)
(if (and (chain-assoc-get 'page:is-bookpart-last-page props #f)
(chain-assoc-get 'page:is-last-bookpart props #f))
empty-stencil
(interpret-markup layout props arg)))
first-page-number = 0
print-first-page-number = ##f
oddHeaderMarkup = \markup \null
evenHeaderMarkup = \markup \null
oddFooterMarkup = \markup \fill-line {
\column {
\fontsize #-1
\on-the-fly #not-first-page \on-the-fly #not-last-page \on-the-fly
#print-positive-page-number
\fromproperty #'page:page-number-string \on-the-fly #last-page
\fromproperty #'header:tagline
}
}
evenFooterMarkup = \oddFooterMarkup
}
\header {
title = \markup {
\with-color #grey
\lower #45 \left-align \center-column {
\fontsize #6 \bold \concat { "Lute Sonata " \char ##x2116 " 2 in D major" }
\lower #0.5 \fontsize #0 \bold "From the London Manuscript"
\lower #3 \fontsize #2 \bold "1. Prelude"
\lower #5 \fontsize #-1 "Silvius Leopold Weiss (1687–1750)"
}
}
tagline = \markup {
\fontsize #-3.5 {
\override #'(box-padding . 1.0) \override #'(baseline-skip . 2.7) \box
\center-column {
\line {
Engraved on \date using \with-url #"http://lilypond.org/"
\line {
LilyPond \simple #(lilypond-version) (http://lilypond.org/)
}
}
}
}
}
}
treble = \relative f' {
% treble notes here
d
}
bass = \relative f {
% bass notes here
d
}
\markup \null
\bookpart {
\header {
title = \markup { Lute Sonata \char ##x2116 2 in D major }
subtitle = "From the London Manuscript"
subsubtitle = "1. Prelude"
composer = "Silvius Leopold Weiss"
}
\score {
<<
\context Staff = guitar \with {
instrumentName = \markup \bold { \circle {6} "= D " }
}
{
\clef "treble_8"
\override Staff.ClefModifier.X-offset = #0.7
\set Staff.midiInstrument="acoustic guitar (nylon)"
\key d \major
\time 4/4
\accidentalStyle forget
\override Score.MetronomeMark.stencil = ##f
\tempo 4 = 60
\mergeDifferentlyHeadedOn
\mergeDifferentlyDottedOn
<<
\context Voice = "1" { \voiceOne \treble }
\context Voice = "2" { \voiceTwo \bass }
>>
}
>>
\layout { }
\midi {}
}
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user