[Top][All Lists]

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

Creating books with Scheme

From: Reinhold Kainhofer
Subject: Creating books with Scheme
Date: Fri, 14 Aug 2009 21:40:02 +0200
User-agent: KMail/1.11.4 (Linux/2.6.28-13-generic; KDE/4.2.4; i686; ; )

Hash: SHA1

Apparently Nicolas' commit da383997e929d8301424e9d320e3f5ada7cf6a58 two years 
ago (yeah, a long time ago, but I hadn't use that functionality until today, 
when I had to create dozens of examples for my girlfriend's thesis) removed 
the possibility to add scores to a book using scheme rather than the parser.

My orchestrallily package creates a score object using scheme rather than an 
explicit "\score" that is interpreted by the parser. Until that da38... patch, 
I could simply call the book-score-handler instead of toplevel-score-handler 
on the score object and the score was added to the current book.

Now, however, the call to the book handler needs the book, which I'm not able 
to obtain. Does anyone have any idea how I can insert a scheme score into the 
current book using only scheme without the parser?

E.g. what can I do in the following case:

\book {
  #(scheme-function to create  score and insert it into the current book)
  #(scheme-function to create another score and insert it into current book)

AFAICS, all I would need is a way to get the current book object in scheme... 
How can I do this?

Thanks a lot,

- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, address@hidden,
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 *, DVR: 0005886
 * LilyPond, Music typesetting,
Version: GnuPG v1.4.9 (GNU/Linux)


reply via email to

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