lilypond-user
[Top][All Lists]
Advanced

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

Re: Label placed at end of \book not recognised in \paper


From: Tom van der Hoeven
Subject: Re: Label placed at end of \book not recognised in \paper
Date: Tue, 21 Jan 2014 19:14:45 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Eluze,

below you will find an example. It is made such that on the first page there is no room left. As you can see I use the last page in order to get the number of pages of a book. I found this solution on the internet, it works but it is not straight forward.
I should like to do something like : print number-of-book-pages
In the Internal Reference book I found the variable ly:paper-book-pages
But I have no idea how to use this function in the \paper context.

Tom

---------------------
\version "2.18.0"

\paper{
  print-first-page-number = ##t
    oddFooterMarkup = \markup {
    \column {
      \fill-line {
        \line {
          Blz
          \on-the-fly #print-page-number-check-first
          \fromproperty #'page:page-number-string
          "van  " \concat {\page-ref #'npages "0" "?"}
        }
      }
    }
  }
}

\header { title = "Example" }

\book {

  \score {
    { \repeat unfold 18 {c''1 \break}  }
    \layout {
      \context {
        \Score
        \override NonMusicalPaperColumn #'line-break-permission = ##f
        \override NonMusicalPaperColumn #'page-break-permission = ##f
               }
            }
  }

  \label #'npages
  \markup{}
}
-------------------
Eluze schreef op 21-1-2014 0:05:
Tom van der Hoeven wrote
it worked, and as a bonus it gave me an extra blanco page.
I don't get a special page - example?!

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Label-placed-at-end-of-book-not-recognised-in-paper-tp158222p158254.html
Sent from the User mailing list archive at Nabble.com.

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user





reply via email to

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