lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem controlling page numbers in bookparts


From: Vincent Gay
Subject: Problem controlling page numbers in bookparts
Date: Mon, 3 Jan 2022 20:50:50 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1

Hello,

I'm a french Lilypond user and I use to discuss on the LilyPond French-speaking list.

I recently found a post of Thomas Morley about page numbering within a \bookpart (this page). It is very useful for me, is there a more recent version?

Here are a few things I'm having trouble with :

1- the example in the post compiles perfectly, mine (first example below) ends with this error.

FORMAT: error with call: (format #f "~(~@r<===~)" ===>0 )

only positive integers can be romanized

<unnamed port>: In procedure scm-error in _expression_ (scm-error (quote misc-error) #f ...):

<unnamed port>: error in format

I don't understand where the difference is.

2- If I compile two books in the same document and print-first-page-number has the value ##f the second page of the second book is numbered with the value 0. If print-first-page-number has the value ##t the result is correct. See the second example below.

3- Even with print-first-page-number = ##f the first pages of the \bookparts (starting from the second one) are printed. Is there a way to hide them?

Many thanks in advance.


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

First example :
\version "2.22.1"
\include "BookPartPagesNumber.ly"
musique = \relative c'' { \repeat unfold 2 { d1 \pageBreak } }

\book {
  \bookpart {
    \paper {
      oddHeaderMarkup = \oddMarkup #'roman-lower
      evenHeaderMarkup = \evenMarkup #'roman-lower
    }
    \score {
      \musique
    }
  }
  \bookpart {
    \paper {
      oddHeaderMarkup = \oddMarkup #'arabic
      evenHeaderMarkup = \evenMarkup #'arabic
    }
    \score {
      \musique
    }
  }
}


Second example :
\version "2.22.1"
\include "BookPartPagesNumber.ly"
musique = \relative c'' { \repeat unfold 2 { d1 \pageBreak } }

\paper {
  print-first-page-number = ##f
}

\book {
  \bookpart {
    \paper {
      oddHeaderMarkup = \oddMarkup #'arabic
      evenHeaderMarkup = \evenMarkup #'arabic
    }
    \score {
      \musique
    }
  }
  \bookpart {
    \paper {
      oddHeaderMarkup = \oddMarkup #'arabic
      evenHeaderMarkup = \evenMarkup #'arabic
    }
    \score {
      \musique
    }
  }
}

\book {
  \bookpart {
    \paper {
      oddHeaderMarkup = \oddMarkup #'arabic
      evenHeaderMarkup = \evenMarkup #'arabic
    }
    \score {
      \musique
    }
  }
  \bookpart {
    \paper {
      oddHeaderMarkup = \oddMarkup #'arabic
      evenHeaderMarkup = \evenMarkup #'arabic
    }
    \score {
      \musique
    }
  }
}
-- 
Vincent Gay
Envoyé depuis mon saxo-phone :)
https://myrealbook.vintherine.org/ - http://photos.vintherine.org/

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]