I asked a similar question some time ago which Mats answered most
successfully, with scheme code.  "page number thornock" should bring
it right to the top.

Neil

On Thu, Dec 3, 2009 at 2:06 PM, Nick Payne <nick.pa...@internode.on.net> wrote:
> In the example below, I have found that if I have multiple pieces with a
> table of contents, I have to use first-page-number = 0 in the paper section
> to have the first piece start on page 1. Is there a better way of doing
> this?
>
> The main problem is that if I use print-first-page-number = ##t, in order to
> get a page number on the first page of each piece, then I get a page number
> of 0 appearing on the TOC page. How can I turn that off but still get all
> other pages numbered?
>
> Also, if you keep adding pieces to the book until the TOC uses more than one
> page, then you have to use first-page-number = -1, first-page-number = -2,
> etc, in order to have the first piece start on page 1, and need some way of
> hiding the page numbers on all the TOC pages.
>
> %==================================================
> \version "2.13.8"
>
> \paper {
>   first-page-number = 0
>   print-first-page-number = ##t
>   oddHeaderMarkup = \markup \fill-line { " " }
>   evenHeaderMarkup = \markup \fill-line { " " }
>   oddFooterMarkup = \markup { \fill-line {
>       \bold \fontsize #3 \on-the-fly #print-page-number-check-first
>       \fromproperty #'page:page-number-string } }
>   evenFooterMarkup = \markup { \fill-line {
>       \bold \fontsize #3 \on-the-fly #print-page-number-check-first
>       \fromproperty #'page:page-number-string } }
>   ragged-right = ##t
>   ragged-bottom = ##t
>   ragged-last-bottom = ##t
> }
>  \header {
>    title = "Overall Title"
>    subtitle = "Overall Subtitle"
> }
>
> \markuplines \table-of-contents
>
> \bookpart { \header {
>   subtitle = "Piece One"
>   composer = "Person One"
>   }
>   \tocItem \markup { 1. Piece One }
>   \relative c' { \time 4/4
>       c1
>       \pageBreak
>       c
>   }
> }
>
> \bookpart {     \header {
>       subtitle = "Piece Two"
>       composer = "Person Two"
>   }
>   \tocItem \markup { 1. Piece Two }
>   \relative c' { \time 4/4
>       c1
>       \pageBreak
>       c
>   }
> }
>
> \bookpart {    \header {
>   subtitle = "Piece Three"
>   composer = "Person Three"
>   }
>   \tocItem \markup { 3. Piece Three }
>   \relative c' { \time 4/4
>       c1
>       \pageBreak
>       c
>   }
> }
> %==================================================
>
> Nick
>
>
> _______________________________________________
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>



-- 
Neil Thornock, D.M.
Check out the newly designed website!
http://neilthornock.net
Assistant Professor of Music
Composition/Theory
Brigham Young University


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

Reply via email to