Re: TOC entries listed in order of \include

2022-09-28 Thread Brent Annable
Valentin, You're quite right. Sorry about my previous response, I read it after a long and frustrating night of typesetting with a deadline close at hand, and was just frustrated that there was no ready-made solution that my non-programmer mind could instantly grasp. But I got a good night's

Re: TOC entries listed in order of \include

2022-09-25 Thread Valentin Petzel
Hi Brent, this is exactly what my suggestion does. There are of course multiple ways of achieving things. You could give the toc Items labels and then order them by these labels. But my suggestion simply delays interpretation of \tocItem to the point where you need it, by using a function

Re: TOC entries listed in order of \include

2022-09-24 Thread Valentin Petzel
Hi Brent, you could simply delay the execution of your code until the point where you need it like this: bpI = #(define-scheme-function (parser location) ()     #{     \bookpart {     \tocItem "toc1" "a"     { c' }     }    

TOC entries listed in order of \include

2022-09-24 Thread Brent Annable
Hi all, I'm creating a book of music using a master file where I call on \bookpart variables from lots of different files, which are included in the master file using the \include function. I have a list of included files in a separate file, and the master just includes that one file. I want to