Re: Reset page numbers on \bookpart?
Thanks! Will check it out. On Sat, Jun 19, 2021, 10:23 Mats Bengtsson wrote: > > On 2021-06-18 03:12, Ignacio Lois wrote: > > No particular reason. My aim is to have one pdf with all the instrumental > parts, each with its own numbering. > it felt like it was a book, and each individual instrument was a bookpart. > Will making separate books solve the numbering issue? I guess I can try > that. > > Yes, you will get one PDF file per \book{...}, with separate page > numbering, whereas all \bookpart{...} end up in the same PDF file. Just as > you, I often prefer to collect all instrumental parts in a single PDF file. > > I've used a variation of the hints provided in an earlier response, see > the LilyPond files available at > https://imslp.org/wiki/Quatuor_Scientifique_(Reicha%2C_Anton). The only > detail I haven't yet had the time to resolve is that the choice between > left hand or right hand version of the page headers and footers is still > determined by the page number, as counted from the top of the file, not on > the printed page number, so if a new instrument part happens to begin on an > even page (as counted from the top of the file), then the left and right > version of the page headers are reversed. > > In this particular piece, I also used a number of extra tricks for the > titling commands, to be able to create a title page for each separate part, > I'm sure there are cleaner solutions to obtain the same result. > >/Mats > > > On Thu, Jun 17, 2021 at 3:51 AM Xavier Scheuer > wrote: > >> On Thu, 17 Jun 2021 at 04:30, Ignacio Lois wrote: >> > >> > Hello all, >> > >> > I'm putting together a set of orchestral parts of a piece where each >> \bookpart is a separate instrument. >> > >> > Is it possible to reset the page numbering for each bookpart? >> >> Hello, >> >> Is there a reason you put each separate instrument in a \bookpart and not >> in a \book ? >> >> Cheers, >> Xavier >> >> -- >> Xavier Scheuer >> >>
Re: Reset page numbers on \bookpart?
On 2021-06-18 03:12, Ignacio Lois wrote: No particular reason. My aim is to have one pdf with all the instrumental parts, each with its own numbering. it felt like it was a book, and each individual instrument was a bookpart. Will making separate books solve the numbering issue? I guess I can try that. Yes, you will get one PDF file per \book{...}, with separate page numbering, whereas all \bookpart{...} end up in the same PDF file. Just as you, I often prefer to collect all instrumental parts in a single PDF file. I've used a variation of the hints provided in an earlier response, see the LilyPond files available at https://imslp.org/wiki/Quatuor_Scientifique_(Reicha%2C_Anton). The only detail I haven't yet had the time to resolve is that the choice between left hand or right hand version of the page headers and footers is still determined by the page number, as counted from the top of the file, not on the printed page number, so if a new instrument part happens to begin on an even page (as counted from the top of the file), then the left and right version of the page headers are reversed. In this particular piece, I also used a number of extra tricks for the titling commands, to be able to create a title page for each separate part, I'm sure there are cleaner solutions to obtain the same result. /Mats On Thu, Jun 17, 2021 at 3:51 AM Xavier Scheuerwrote: On Thu, 17 Jun 2021 at 04:30, Ignacio Lois wrote: > > Hello all, > > I'm putting together a set of orchestral parts of a piece where each \bookpart is a separate instrument. > > Is it possible to reset the page numbering for each bookpart? Hello, Is there a reason you put each separate instrument in a \bookpart and not in a \book ? Cheers, Xavier -- Xavier Scheuer
Re: Reset page numbers on \bookpart?
Thanks! This *almost* works. The problem with this is that it's switching page number sides, I need it to reset to right side page together with the numbering. I'll try fiddling with this a bit. On Thu, Jun 17, 2021 at 1:50 AM Jacques Menu wrote: > Converting this file with convert-ly on the command line works, though, as > well as the result, with \tocItem lines active. Find it attached. > > JM > > > > > > Le 17 juin 2021 à 06:42, Jacques Menu a écrit : > > > > Hello Ignacio, > > > >> Le 17 juin 2021 à 04:30, Ignacio Lois a écrit : > >> > >> Hello all, > >> > >> I'm putting together a set of orchestral parts of a piece where each > \bookpart is a separate instrument. > >> > >> Is it possible to reset the page numbering for each bookpart? > > > > For what it’s worth, maybe start from the attached file, which I found > on this list (didn’t add the author’s name, though)? > > > > I’ve had to comment the \tocItem lines because they’re no longer > accepted as is by Lily 2.22. > > > > BTW, convert-ly crashes Frescobaldi on this file here, just sent them a > bug report: > > > > Python path configuration: > > PYTHONHOME = '/Applications/Frescobaldi.app/Contents/Resources' > > PYTHONPATH = '/Applications/Frescobaldi.app/Contents/Resources' > > program name = '/opt/local/bin/python3.8' > > isolated = 0 > > environment = 1 > > user site = 1 > > import site = 1 > > sys._base_executable = '/opt/local/bin/python3.8' > > sys.base_prefix = '/Applications/Frescobaldi.app/Contents/Resources' > > sys.base_exec_prefix = '/Applications/Frescobaldi.app/Contents/Resources' > > sys.executable = '/opt/local/bin/python3.8' > > sys.prefix = '/Applications/Frescobaldi.app/Contents/Resources' > > sys.exec_prefix = '/Applications/Frescobaldi.app/Contents/Resources' > > sys.path = [ > > '/Applications/Frescobaldi.app/Contents/Resources', > > '/Applications/Frescobaldi.app/Contents/Resources/lib/python38.zip', > > '/Applications/Frescobaldi.app/Contents/Resources/lib/python3.8', > > > '/Applications/Frescobaldi.app/Contents/Resources/lib/python3.8/lib-dynload', > > ] > > Fatal Python error: init_fs_encoding: failed to get the Python codec of > the filesystem encoding > > Python runtime state: core initialized > > ModuleNotFoundError: No module named 'encodings' > > > > Current thread 0x000100b1bd40 (most recent call first): > > > > > > > > Le document n'a pas été modifié. > > > > JM > > > > > > > > > >
Re: Reset page numbers on \bookpart?
No particular reason. My aim is to have one pdf with all the instrumental parts, each with its own numbering. it felt like it was a book, and each individual instrument was a bookpart. Will making separate books solve the numbering issue? I guess I can try that. On Thu, Jun 17, 2021 at 3:51 AM Xavier Scheuer wrote: > On Thu, 17 Jun 2021 at 04:30, Ignacio Lois wrote: > > > > Hello all, > > > > I'm putting together a set of orchestral parts of a piece where each > \bookpart is a separate instrument. > > > > Is it possible to reset the page numbering for each bookpart? > > Hello, > > Is there a reason you put each separate instrument in a \bookpart and not > in a \book ? > > Cheers, > Xavier > > -- > Xavier Scheuer > >
Re: Reset page numbers on \bookpart?
On Thu, 17 Jun 2021 at 04:30, Ignacio Lois wrote: > > Hello all, > > I'm putting together a set of orchestral parts of a piece where each \bookpart is a separate instrument. > > Is it possible to reset the page numbering for each bookpart? Hello, Is there a reason you put each separate instrument in a \bookpart and not in a \book ? Cheers, Xavier -- Xavier Scheuer
Re: Reset page numbers on \bookpart?
Converting this file with convert-ly on the command line works, though, as well as the result, with \tocItem lines active. Find it attached. JM ControllingBookPartsPageNumbersExample_2.22.ly Description: Binary data > Le 17 juin 2021 à 06:42, Jacques Menu a écrit : > > Hello Ignacio, > >> Le 17 juin 2021 à 04:30, Ignacio Lois a écrit : >> >> Hello all, >> >> I'm putting together a set of orchestral parts of a piece where each >> \bookpart is a separate instrument. >> >> Is it possible to reset the page numbering for each bookpart? > > For what it’s worth, maybe start from the attached file, which I found on > this list (didn’t add the author’s name, though)? > > I’ve had to comment the \tocItem lines because they’re no longer accepted as > is by Lily 2.22. > > BTW, convert-ly crashes Frescobaldi on this file here, just sent them a bug > report: > > Python path configuration: > PYTHONHOME = '/Applications/Frescobaldi.app/Contents/Resources' > PYTHONPATH = '/Applications/Frescobaldi.app/Contents/Resources' > program name = '/opt/local/bin/python3.8' > isolated = 0 > environment = 1 > user site = 1 > import site = 1 > sys._base_executable = '/opt/local/bin/python3.8' > sys.base_prefix = '/Applications/Frescobaldi.app/Contents/Resources' > sys.base_exec_prefix = '/Applications/Frescobaldi.app/Contents/Resources' > sys.executable = '/opt/local/bin/python3.8' > sys.prefix = '/Applications/Frescobaldi.app/Contents/Resources' > sys.exec_prefix = '/Applications/Frescobaldi.app/Contents/Resources' > sys.path = [ > '/Applications/Frescobaldi.app/Contents/Resources', > '/Applications/Frescobaldi.app/Contents/Resources/lib/python38.zip', > '/Applications/Frescobaldi.app/Contents/Resources/lib/python3.8', > '/Applications/Frescobaldi.app/Contents/Resources/lib/python3.8/lib-dynload', > ] > Fatal Python error: init_fs_encoding: failed to get the Python codec of the > filesystem encoding > Python runtime state: core initialized > ModuleNotFoundError: No module named 'encodings' > > Current thread 0x000100b1bd40 (most recent call first): > > > > Le document n'a pas été modifié. > > JM > > > >
Re: Reset page numbers on \bookpart?
Hello Ignacio, > Le 17 juin 2021 à 04:30, Ignacio Lois a écrit : > > Hello all, > > I'm putting together a set of orchestral parts of a piece where each > \bookpart is a separate instrument. > > Is it possible to reset the page numbering for each bookpart? For what it’s worth, maybe start from the attached file, which I found on this list (didn’t add the author’s name, though)? I’ve had to comment the \tocItem lines because they’re no longer accepted as is by Lily 2.22. BTW, convert-ly crashes Frescobaldi on this file here, just sent them a bug report: Python path configuration: PYTHONHOME = '/Applications/Frescobaldi.app/Contents/Resources' PYTHONPATH = '/Applications/Frescobaldi.app/Contents/Resources' program name = '/opt/local/bin/python3.8' isolated = 0 environment = 1 user site = 1 import site = 1 sys._base_executable = '/opt/local/bin/python3.8' sys.base_prefix = '/Applications/Frescobaldi.app/Contents/Resources' sys.base_exec_prefix = '/Applications/Frescobaldi.app/Contents/Resources' sys.executable = '/opt/local/bin/python3.8' sys.prefix = '/Applications/Frescobaldi.app/Contents/Resources' sys.exec_prefix = '/Applications/Frescobaldi.app/Contents/Resources' sys.path = [ '/Applications/Frescobaldi.app/Contents/Resources', '/Applications/Frescobaldi.app/Contents/Resources/lib/python38.zip', '/Applications/Frescobaldi.app/Contents/Resources/lib/python3.8', '/Applications/Frescobaldi.app/Contents/Resources/lib/python3.8/lib-dynload', ] Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core initialized ModuleNotFoundError: No module named 'encodings' Current thread 0x000100b1bd40 (most recent call first): Le document n'a pas été modifié. JM ControllingBookPartsPageNumbersExample.ly Description: Binary data