[Top][All Lists]

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

Re: Creating books with Scheme

From: Reinhold Kainhofer
Subject: Re: Creating books with Scheme
Date: Sat, 29 Aug 2009 14:28:49 +0200
User-agent: KMail/1.11.4 (Linux/2.6.29-02062906-generic; KDE/4.2.4; i686; ; )

Hash: SHA1

Am Montag, 17. August 2009 12:05:23 schrieb Nicolas Sceaux:
> Le 17 août 09 à 09:23, Nicolas Sceaux a écrit :
> > If you look at the definition of `bookpart-score-handler' in my
> > file, you see that the book-part argument is not used. Instead,
> > all scores are added to the toplevel-scores parser variable (even
> > though they are not really toplevel, it does not matter).
> > The `toplevel-bookpart-handler' then uses this variable to actually
> > add the scores to the bookpart. This function is called by the parser
> > when a \bookpart block is closed, so at this point the bookpart object
> > is known.
> >
> > You can change the book-score-handler and toplevel-book-handler to
> > act the same way.
> Here is a short example showing how that may be done.

Thanks a lot, but I just realized that if you use several bookparts, the 
\header section of the bookparts get ignored. Also, you cannot mix explicitly 
written scores with computer-generated scores...

Attached is a modified sample file:
- -) if you have explicitly written \score{..}s and computer-created ones, the 
explicitly written ones will start a new book part, even if all are inside the 
same \bookpart.
- -) Only the first bookpart uses the global \header for piece names
- -) The scheme-generated scores in the second and further bookparts will 
all header settings! 
- -) The explicitly written scores in the second bookpart will also ignore all 
global header settings?!?

Do you have any idea, how I can (i) assign the correct header blocks to the 
generated scores (ie. proper hierarchy: score-level header, bookpart-level 
header, book-level header and finally global header block in this order) and 
(ii) how I can treat generated and explicitly written scores really equal.

Thanks a lot,

PS: It works correctly, if I use different \book blocks instead of \bookpart 
blocks, but that's not what I want.
- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, address@hidden,
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 *, DVR: 0005886
 * LilyPond, Music typesetting,
Version: GnuPG v1.4.9 (GNU/Linux)


Description: Text Data

reply via email to

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