[Top][All Lists]

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

Re: 'mm' scaling value on top-level

From: David Kastrup
Subject: Re: 'mm' scaling value on top-level
Date: Tue, 28 Sep 2021 18:43:25 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Werner LEMBERG <> writes:

>>> #(set-default-paper-size (cons (* 100 mm) (* 50 mm)))
>>> ```
>>> doesn't work;
>>> What must I do to make 'mm' and similar dimension scale values
>>> available at the top level?
>> Why would you not use it in the paper block?  mm is not a constant,
>> it depends on the output scale.
> OK, thanks for the pointer.  But I wonder what exactly the problem is:
> The paper size strings passed to `set-default-paper-size` *do* contain
> the 'mm' variable, see `paper-alist`.  Is the expansion of 'mm'
> delayed?

Sure, it is quoted.

> Isn't there a possibility to do the same on the top level?

Of course you can quote.

lookup-paper-name is responsible for looking up an entry in paper-alist
and then evaluating it in a specified module (a paper or layout module,
with the paper module having mm as 1 but the layout module working in
staff spaces or something like that).

David Kastrup

reply via email to

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