Le Sun, 5 Oct 2008 20:21:07 +0200,
Reinhold Kainhofer <[EMAIL PROTECTED]> a écrit :

> Yes, it does. internal-set-paper-size sets the symbol 'papersizename in the 
> default paper module to the name. You can easily extract it in scheme:
> 
>   #(let* ((paper (ly:output-def-scope (eval '$defaultpaper (current-module))))
>          (size (eval 'papersizename paper)))
>   (ly:message "The current default paper size is: ~a" size))
> 
> To extract the paper name if set using #(set-paper-size name) inside a \book, 
> you just have to check if the current module is a paper in in that case use 
> the current-module instead of the defaultpaper...
> 
> I've attached a sample file illustrating this.

Hi
Reinhold

It's generally not recommanded to use eval, unless onthefly defclass and/or 
language
extension:

        is it really neccessary in this case ?

Cheers
David


_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to