jperon / lyluatex

Alternative à lilypond-book pour lualatex
MIT License
57 stars 11 forks source link

Suppress bar numbers #314

Open simonkeys opened 1 year ago

simonkeys commented 1 year ago

It would be nice to have a package option (e.g. nobarnumbers) to suppress the printing of bar numbers in examples.

If this is of interest I can work on a pull request.

jperon commented 1 year ago

I understand the need, but I'd like to avoid adding too many options (as lyluatex already has many). noclef, notimesig, notiming and nostaff exist for compatibility reasons (to be a drop-in alternative to lilypond-book). So, instead of a new specific option, I'd rather add a more generic option, that would allow writing code within the \layout block: that would cover more use cases (and above options could be internally rewritten to use it), and \lynewenvironment would allow one to define custom environments to use it easily. I should have time to work on it next week; in case you'd like to do it, would you mind basing your work on the parallel branch? I'm in the process of rewriting lyluatex in MoonScript, and adding the ability to parallel-process scores in order to speed first compilations.

simonkeys commented 1 year ago

That sounds great! I probably won't have time to work on it in the near future, so I'll follow the progress and help if I can.