jperon / lyluatex

Alternative à lilypond-book pour lualatex
MIT License
58 stars 12 forks source link

line-width option #67

Closed jperon closed 6 years ago

jperon commented 6 years ago

line-width=size\unit

Set line width to size, using unit as units. unit is one of the following strings: cm, mm,in, or pt. 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 the line-width option. As best I can tell, the keycommand 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 as keyval or pfgkeys) provide the needed support.

jperon commented 6 years ago

I think we can consider this point as done:

uliska commented 6 years ago

What happens when the line width is globally set to some value and [line-width] is used as a local option?

jperon commented 6 years ago

It will be auto-calculated. That's the expected behaviour as defined here.

uliska commented 6 years ago

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).

jperon commented 6 years ago

In fact, it is set to '': the package keycommand makes no difference between line-width= and line-width.

uliska commented 6 years ago

I see. So I agree this is done