[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: paper-defaults-init.ly questions
From: |
Carl Sorensen |
Subject: |
Re: paper-defaults-init.ly questions |
Date: |
Sat, 4 Dec 2010 16:14:46 -0700 |
On 12/4/10 3:57 PM, "Mark Polesky" <address@hidden> wrote:
> Carl Sorensen wrote:
>> Yes, very nice! I had forgotten that fractions were
>> exact, too. [...] You might want to consider
>>
>> (define pt (* 100/7227 in))
>>
>> Since the point is defined in terms of inches, instead of
>> mm.
>
> Good point. Now, which of these three sets is best (or at
> least preferred), and why?
I probably prefer 2. It uses lily definitions instead of Scheme definitions.
If you're going to use 1, you'll need to put a # in front of each line.
I don't like set 3 -- it's all compressed together and is hard to read. But
as long as the resulting scheme variables are exact, then it's OK, too.
Actually, I'm not sure that being exact matters, since a hundredth of a
point is much lower than the resolution of my printer. I think we've had
that discussion before. And it doesn't hurt to go to the exact, in my
opinion.
>
> 1)
> (define mm 1)
> (define cm (* 10 mm))
> (define in (* 254/10 mm))
> (define pt (* 100/7227 in))
>
> 2)
> mm = #1
> cm = #(* 10 mm)
> in = #(* 254/10 mm)
> pt = #(* 100/7227 in)
>
> 3)
> mm = #1
> cm = 10\mm
> in = 254/10\mm
> pt = 100/7227\mm
>
Thanks,
Carl
- paper-defaults-init.ly questions, Mark Polesky, 2010/12/01
- Re: paper-defaults-init.ly questions, Patrick McCarty, 2010/12/02
- Re: paper-defaults-init.ly questions, David Kastrup, 2010/12/03
- Re: paper-defaults-init.ly questions, Mark Polesky, 2010/12/03
- Re: paper-defaults-init.ly questions, David Kastrup, 2010/12/03
- Re: paper-defaults-init.ly questions, Carl Sorensen, 2010/12/03
- Re: paper-defaults-init.ly questions, David Kastrup, 2010/12/03
- Re: paper-defaults-init.ly questions, Mark Polesky, 2010/12/04
- Re: paper-defaults-init.ly questions, Carl Sorensen, 2010/12/04
- Re: paper-defaults-init.ly questions, Mark Polesky, 2010/12/04
- Re: paper-defaults-init.ly questions,
Carl Sorensen <=
- Re: paper-defaults-init.ly questions, David Kastrup, 2010/12/04
- Re: paper-defaults-init.ly questions, Carl Sorensen, 2010/12/04
- Re: paper-defaults-init.ly questions, David Kastrup, 2010/12/05
Re: paper-defaults-init.ly questions, Mark Polesky, 2010/12/04