I can shorten a volta spanner to first bar with \set Score.voltaSpannerDuration But how can I make it show on the last bar?
For example, the first repeat bar is on page 1 and the last bar is on page 3, how can i avoid printing volta spanner on the 2nd page?