David Kastrup <d...@gnu.org> writes: > Werner LEMBERG <w...@gnu.org> writes: > >> Using it with >> >> ``` >> #(set-default-paper-size (cons 100 50))) >> ``` >> >> works like a charm. However, code like >> >> ``` >> #(set-default-paper-size (cons (* 100 mm) (* 50 mm))) >> ``` >> >> doesn't work; I get the error message >> >> ``` >> error: GUILE signaled an error for the expression beginning here >> # >> (set-default-paper-size (cons (* 100 mm) (* 50 mm))) >> Unbound variable: mm >> ``` >> >> 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.
Sth like \paper { #(set-default-paper-size (cons #{ 100 \mm #} #{ 50 \mm #})) } would likely work. -- David Kastrup