Nate Whetsell <[email protected]> writes: > Hi, > > I’m trying to put measure numbers under multi-measure rests in > LilyPond 2.27.5 by creating a TextScript > <https://lilypond.org/doc/v2.27/Documentation/internals/textscript> > grob using this custom engraver: > > https://github.com/nwhetsell/lilypond-multi-measure-rest-numbering/blob/e16ae9fd3eb71e0d3fc3c025fc46abf32a6c49ad/multi-measure-rest-numbering.ily > > This mostly works, but I can’t seem to get the text centered under the > rest measure. Setting either or both parent-alignment-X and > self-alignment-X to CENTER doesn’t quite center the text, and setting > X-offset to ly:self-alignment-interface::aligned-on-x-parent also > doesn’t quite work. I’ve also tried creating MultiMeasureRestText > <https://lilypond.org/doc/v2.27/Documentation/internals/multimeasureresttext> > and MeasureCounter > <https://lilypond.org/doc/v2.27/Documentation/internals/measurecounter> > grobs, but those grobs don’t seem to appear in the output. Here is an > SVG showing the misaligned measure numbers: > > https://github.com/nwhetsell/lilypond-multi-measure-rest-numbering/blob/e16ae9fd3eb71e0d3fc3c025fc46abf32a6c49ad/multi-measure-rest-numbering.svg > > Because it’s straightforward to get centered text under a > multi-measure rest (R1_"text"), I’m hoping I’m overlooking something > simple. Any help would be appreciated!
How about posting example code? -- David Kastrup
