lilypond-user
[Top][All Lists]
Advanced

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

Re: updated margins-a4-letter.ly


From: David Séverin
Subject: Re: updated margins-a4-letter.ly
Date: Sun, 5 Oct 2008 15:29:00 -0300

Le Sun, 5 Oct 2008 20:21:07 +0200,
Reinhold Kainhofer <address@hidden> 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




reply via email to

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