Re: Paper variables in scheme function

2014-03-30 Thread David Kastrup
David Kastrup d...@gnu.org writes: test = #(define-scheme-function (parser location num) (number?) #{ \paper { top-margin = $(* num (module-ref (current-module) 'paper-height)) } #}) \paper { \test 0.9 } { c'1 } I am somewhat irritated that a plain \test 0.9

Paper variables in scheme function

2014-03-28 Thread Simon Albrecht
Hello, I'm just creating a style sheet and want to create a scheme function which sets the paper margins. However it seems the paper variables aren't bound and I don't know why. A simple example would be: \version 2.19.3 test = #(define-scheme-function (parser location num) (number?) #{

Re: Paper variables in scheme function

2014-03-28 Thread David Kastrup
Simon Albrecht simon.albre...@mail.de writes: Hello, I'm just creating a style sheet and want to create a scheme function which sets the paper margins. However it seems the paper variables aren't bound and I don't know why. A simple example would be: \version 2.19.3 test =

Re: Paper variables in scheme function

2014-03-28 Thread Simon Albrecht
Am 28.03.2014 20:44, schrieb David Kastrup: Simon Albrecht simon.albre...@mail.de writes: Hello, I'm just creating a style sheet and want to create a scheme function which sets the paper margins. However it seems the paper variables aren't bound and I don't know why. A simple example would