[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scheme question
From: |
Rick Hansen (aka RickH) |
Subject: |
Re: Scheme question |
Date: |
Mon, 16 Oct 2006 13:24:28 -0700 (PDT) |
Thanks, so line-width will take whatever is left over after the margins are
set and the paper size established?
Han-Wen Nienhuys-2 wrote:
>
> Rick Hansen (aka RickH) schreef:
>> I would like to "dynamically generate" values for the following 3
>> hard-coded
>> properties based on a rule, and the current default paper size, but I
>> dont
>> know scheme:
>>
>> paper-height = 11.0\in
>> paper-width = 8.5\in
>> line-width = 7.7\in
>>
>> So basically how would I code the above hard coded values to be math
>> expressions based on the following rule:
>>
>> I always want my left and right margins to be .4 inches.
>>
>> So the formula for line with would be (default paper width - .8)
>>
>> The formula for paper-height and paper-width would be whatever the
>> default
>> paper currently is, but I dont know how to set it from those values.
>
> this is possible in CVS by doing
>
> \paper {
> right-margin = #(* 5 cm)
> left-margin = #(* 5 cm)
> #(set-paper-size "a4")
> }
>
>
> --
>
> Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen
>
> LilyPond Software Design
> -- Code for Music Notation
> http://www.lilypond-design.com
>
>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
--
View this message in context:
http://www.nabble.com/Scheme-question-tf2454705.html#a6842510
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.