Re: \unset in paper block

2019-08-06 Thread David Kastrup
Aaron Hill writes: > On 2019-08-05 2:30 pm, David Kastrup wrote: >> Simon Albrecht writes: >>> By the way, I happened to see that section 1.3.4 of the Extending >>> Manual sets off on the fact that it’s not possible to attach >>> articulations to variables (“We know that `{ \music -. -> }' will

Re: \unset in paper block

2019-08-05 Thread Aaron Hill
On 2019-08-05 2:30 pm, David Kastrup wrote: Simon Albrecht writes: By the way, I happened to see that section 1.3.4 of the Extending Manual sets off on the fact that it’s not possible to attach articulations to variables (“We know that `{ \music -. -> }' will not work in LilyPond”). So when tha

Re: \unset in paper block

2019-08-05 Thread David Kastrup
Simon Albrecht writes: > On 05.08.19 23:10, Werner LEMBERG wrote: To ask differently: In file `paper.scm' I can see (module-remove! m 'line-width) to remove `line-width'; I now wonder what value for `m' I have to use... >>> \paper { >>>#(module-remove! (curr

Re: \unset in paper block

2019-08-05 Thread Simon Albrecht
On 05.08.19 23:10, Werner LEMBERG wrote: To ask differently: In file `paper.scm' I can see (module-remove! m 'line-width) to remove `line-width'; I now wonder what value for `m' I have to use... \paper { #(module-remove! (current-module) 'line-width) } should work for doing this via S

Re: \unset in paper block

2019-08-05 Thread David Kastrup
Werner LEMBERG writes: >>> To ask differently: In file `paper.scm' I can see >>> >>> (module-remove! m 'line-width) >>> >>> to remove `line-width'; I now wonder what value for `m' I have to >>> use... >> >> \paper { >> #(module-remove! (current-module) 'line-width) >> } >> >> should work

Re: \unset in paper block

2019-08-05 Thread Werner LEMBERG
>> To ask differently: In file `paper.scm' I can see >> >> (module-remove! m 'line-width) >> >> to remove `line-width'; I now wonder what value for `m' I have to >> use... > > \paper { > #(module-remove! (current-module) 'line-width) > } > > should work for doing this via Scheme. This wor

Re: \unset in paper block

2019-08-05 Thread David Kastrup
Werner LEMBERG writes: >> I wonder whether it is possible to use \unset in the paper block. >> The use-case is lyluatex, which sets `left-margin'; I want to unset >> this value so that lilypond only takes the line width into account >> to automatically center it. >> >> In other words, I would li

Re: \unset in paper block

2019-08-05 Thread Werner LEMBERG
> IIRC these assignments in \paper and \layout and \header blocks are > functionally equivalent to defining a variable in Scheme like > > #(define left-margin 100) Yes. > The kind of \unset you’re asking for requires the previous value to > have been saved onto some stack, which I doubt exists/

Re: \unset in paper block

2019-08-05 Thread Simon Albrecht
Hi Werner, IIRC these assignments in \paper and \layout and \header blocks are functionally equivalent to defining a variable in Scheme like #(define left-margin 100) (omitting the unit here for simplicity). The kind of \unset you’re asking for requires the previous value to have been saved

Re: \unset in paper block

2019-08-05 Thread Werner LEMBERG
> I wonder whether it is possible to use \unset in the paper block. > The use-case is lyluatex, which sets `left-margin'; I want to unset > this value so that lilypond only takes the line width into account > to automatically center it. > > In other words, I would like to have > >% from lylu

\unset in paper block

2019-08-02 Thread Werner LEMBERG
I wonder whether it is possible to use \unset in the paper block. The use-case is lyluatex, which sets `left-margin'; I want to unset this value so that lilypond only takes the line width into account to automatically center it. In other words, I would like to have % from lyluatex \paper