Re: Can headers and footers access the current \fromproperty #'header:piece
Thank you for your help Timothy. Le mer. 7 août 2019 à 15:01, Timothy Lanfear a écrit : > > Sorry, I sent a link to my local copy of the LP documentation: should > have been > http://lilypond.org/doc/v2.19/Documentation/notation/multiple-scores-in-a-book > > > On 07/08/2019 19:56, Timothy Lanfear wrote: > > The behaviour of bookpart is described at the end of this section > > http://localhost/~lanfear/lilypond/Documentation/notation/multiple-scores-in-a-book.html. > > Bookparts always start on a new page. Lilypond will distribute the > > material of the preceding bookpart to fill the whole of its last > > page, so provided the sections of your score are not too short, the > > layout will be fine. Otherwise, you might want to group several short > > sections into one bookpart with a common running header. > > > > On 07/08/2019 19:43, Pierre-Luc Gauthier wrote: > >> Thanks Timothy, > >> > >> It sure does the trick ! > >> > >> Though, > >> I was using \pageBreak as an example and I don't actually want them. > >> I've adapted the MWE to reflect more accurately the situation. > >> The point is for the musician to know where he is in the opera on any > >> page he happens to open the book on. As a lousy example, on page 2, > >> the musician does not know where he is in the production and has to > >> open the book where a scene starts or to refer to the TOC of course. > >> > >> As a follow-up question : do you know if \bookparts can *not* produce > >> \pagebreaks? > >> I suppose it's part of what they were made for… > >> > >> Le mer. 7 août 2019 à 13:51, Timothy Lanfear a > >> écrit : > >>> On 07/08/2019 15:29, Pierre-Luc Gauthier wrote: > Hello there, > > I trying to add the *current* piece in the header and/or footer of, > say, every page in a score. > > As mentioned here : > > http://lilypond.org/doc/v2.19/Documentation/notation/creating-titles-headers-and-footers#default-layout-of-headers-and-footers > > > "These markup variables can only access text fields from top-level > \header blocks (which apply to all scores in the book)." > > Is there a way to get around this limitation? > > Thanks for any pointers > Here is a MWE > -- > Pierre-Luc Gauthier > >>> Structure the book with bookparts. As a bonus, a bookpart starts a new > >>> page so you don't need pageBreak. > >>> > >>> > >>> -- > >>> Timothy Lanfear, Bristol, UK. > >>> > >> > -- > Timothy Lanfear, Bristol, UK. > -- Pierre-Luc Gauthier ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Can headers and footers access the current \fromproperty #'header:piece
Sorry, I sent a link to my local copy of the LP documentation: should have been http://lilypond.org/doc/v2.19/Documentation/notation/multiple-scores-in-a-book On 07/08/2019 19:56, Timothy Lanfear wrote: The behaviour of bookpart is described at the end of this section http://localhost/~lanfear/lilypond/Documentation/notation/multiple-scores-in-a-book.html. Bookparts always start on a new page. Lilypond will distribute the material of the preceding bookpart to fill the whole of its last page, so provided the sections of your score are not too short, the layout will be fine. Otherwise, you might want to group several short sections into one bookpart with a common running header. On 07/08/2019 19:43, Pierre-Luc Gauthier wrote: Thanks Timothy, It sure does the trick ! Though, I was using \pageBreak as an example and I don't actually want them. I've adapted the MWE to reflect more accurately the situation. The point is for the musician to know where he is in the opera on any page he happens to open the book on. As a lousy example, on page 2, the musician does not know where he is in the production and has to open the book where a scene starts or to refer to the TOC of course. As a follow-up question : do you know if \bookparts can *not* produce \pagebreaks? I suppose it's part of what they were made for… Le mer. 7 août 2019 à 13:51, Timothy Lanfear a écrit : On 07/08/2019 15:29, Pierre-Luc Gauthier wrote: Hello there, I trying to add the *current* piece in the header and/or footer of, say, every page in a score. As mentioned here : http://lilypond.org/doc/v2.19/Documentation/notation/creating-titles-headers-and-footers#default-layout-of-headers-and-footers "These markup variables can only access text fields from top-level \header blocks (which apply to all scores in the book)." Is there a way to get around this limitation? Thanks for any pointers Here is a MWE -- Pierre-Luc Gauthier Structure the book with bookparts. As a bonus, a bookpart starts a new page so you don't need pageBreak. -- Timothy Lanfear, Bristol, UK. -- Timothy Lanfear, Bristol, UK. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Can headers and footers access the current \fromproperty #'header:piece
The behaviour of bookpart is described at the end of this section http://localhost/~lanfear/lilypond/Documentation/notation/multiple-scores-in-a-book.html. Bookparts always start on a new page. Lilypond will distribute the material of the preceding bookpart to fill the whole of its last page, so provided the sections of your score are not too short, the layout will be fine. Otherwise, you might want to group several short sections into one bookpart with a common running header. On 07/08/2019 19:43, Pierre-Luc Gauthier wrote: Thanks Timothy, It sure does the trick ! Though, I was using \pageBreak as an example and I don't actually want them. I've adapted the MWE to reflect more accurately the situation. The point is for the musician to know where he is in the opera on any page he happens to open the book on. As a lousy example, on page 2, the musician does not know where he is in the production and has to open the book where a scene starts or to refer to the TOC of course. As a follow-up question : do you know if \bookparts can *not* produce \pagebreaks? I suppose it's part of what they were made for… Le mer. 7 août 2019 à 13:51, Timothy Lanfear a écrit : On 07/08/2019 15:29, Pierre-Luc Gauthier wrote: Hello there, I trying to add the *current* piece in the header and/or footer of, say, every page in a score. As mentioned here : http://lilypond.org/doc/v2.19/Documentation/notation/creating-titles-headers-and-footers#default-layout-of-headers-and-footers "These markup variables can only access text fields from top-level \header blocks (which apply to all scores in the book)." Is there a way to get around this limitation? Thanks for any pointers Here is a MWE -- Pierre-Luc Gauthier Structure the book with bookparts. As a bonus, a bookpart starts a new page so you don't need pageBreak. -- Timothy Lanfear, Bristol, UK. -- Timothy Lanfear, Bristol, UK. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Can headers and footers access the current \fromproperty #'header:piece
On 07/08/2019 15:29, Pierre-Luc Gauthier wrote: Hello there, I trying to add the *current* piece in the header and/or footer of, say, every page in a score. As mentioned here : http://lilypond.org/doc/v2.19/Documentation/notation/creating-titles-headers-and-footers#default-layout-of-headers-and-footers "These markup variables can only access text fields from top-level \header blocks (which apply to all scores in the book)." Is there a way to get around this limitation? Thanks for any pointers Here is a MWE -- Pierre-Luc Gauthier Structure the book with bookparts. As a bonus, a bookpart starts a new page so you don't need pageBreak. -- Timothy Lanfear, Bristol, UK. \version "2.19.83" \header { piece = \markup \typewriter \italic \bold "Not the good piece name" } \paper { oddHeaderMarkup = \markup { The piece on this page is : \fromproperty #'header:piece } evenHeaderMarkup = \oddHeaderMarkup oddFooterMarkup = \oddHeaderMarkup evenFooterMarkup = \oddHeaderMarkup } \book { \score { {a''4} \header {piece="Piece A"} } % \pageBreak \bookpart { \header {piece="Piece B"} \score { {b'4} } } % \pageBreak \bookpart { \header {piece="Piece C"} \score { {c'4} } } } ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Can headers and footers access the current \fromproperty #'header:piece
Hello there, I trying to add the *current* piece in the header and/or footer of, say, every page in a score. As mentioned here : http://lilypond.org/doc/v2.19/Documentation/notation/creating-titles-headers-and-footers#default-layout-of-headers-and-footers "These markup variables can only access text fields from top-level \header blocks (which apply to all scores in the book)." Is there a way to get around this limitation? Thanks for any pointers Here is a MWE -- Pierre-Luc Gauthier \version "2.21.0" \header { piece = \markup \typewriter \italic \bold "Not the good piece name" } \paper { oddHeaderMarkup = \markup { The piece on this page is : \fromproperty #'header:piece } evenHeaderMarkup = \oddHeaderMarkup oddFooterMarkup = \oddHeaderMarkup evenFooterMarkup = \oddHeaderMarkup } \book { \score { \header {piece="Piece A"} {a''4} } \pageBreak \score { \header {piece="Piece B"} {b'4} } \pageBreak \score { \header {piece="Piece C"} {c'4} } } dynamicHeaderFooter-01.pdf Description: Adobe PDF document ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user