Closed jperon closed 6 years ago
I think we can consider this point as done:
lilypond-book
, this isn't a global option, but an option to each command/environment;lyluatex
:
line-width
as package option, as it raises an error from xkeyval
;What happens when the line width is globally set to some value and [line-width]
is used as a local option?
It will be auto-calculated. That's the expected behaviour as defined here.
I know this is the wanted behaviour. I couldn't test if it would actually do that (as in that case the option isn't actually set to '' but some other value).
In fact, it is set to '': the package keycommand
makes no difference between line-width=
and line-width
.
I see. So I agree this is done
line-width=size\unit
Set line width to
size
, usingunit
as units.unit
is one of the following strings:cm
,mm
,in
, orpt
. This option affects LilyPond output (this is, the staff length of the music snippet), not the text layout.If used without an argument, set line width to a default value (as computed with a heuristic algorithm).
If no line-width option is given, lilypond-book tries to guess a default for lilypond environments which don’t use the
ragged-right
option.We currently support the
line-width=size\unit
option, but not theline-width
option. As best I can tell, thekeycommand
package cannot support a key which is both boolean (given or not given) and general (given with a value). I'm not sure if other keyword packages (such askeyval
orpfgkeys
) provide the needed support.