[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Page numbering
From: |
Neil Thornock |
Subject: |
Re: Page numbering |
Date: |
Thu, 3 Dec 2009 17:02:06 -0700 |
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 <address@hidden> 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
> address@hidden
> 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
- Page numbering, Nick Payne, 2009/12/03
- Re: Page numbering,
Neil Thornock <=