Werner LEMBERG <w...@gnu.org> 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 like to have
>> 
>>    % from lyluatex
>>    \paper {
>>      left-margin = 100\pt
>>      line-width = 200\pt
>>    }
>> 
>>    ...
>> 
>>    % user code
>>    \paper {
>>      \unset left-margin
>>    }
>
> 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.

-- 
David Kastrup

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to