Can anyone figure out how to keep PMX's default bar numbering in the line-shortening example. Here's a slightly modified version that shows the problem more clearly. Notice that the bar numbers return after the shortened line, although the number needs to be corrected.
================================ 1 1 4 4 4 4 0 0 1 6 20 0 t .\ \\let\oldalaligne\alaligne\ Abp c44 d e f g a b c c b a g f e d c / \\\def\alaligne{\ \\\endpiece\hbox to\hsize\bgroup\vbox\bgroup\hsize=.6\hsize\ \\\startpiece\addspace\afterruleskip}\ L4 c44 d e f D"Hello"+8+15 Rr / \\\def\alaligne{\ \\\endpiece\egroup\egroup\ \\\startpiece\addspace\afterruleskip\let\alaligne\oldalaligne}\ L5 c44 d e f g a b c / c44 d e f g a b c / =============================== Thanks, --Don From: TeX-Music [mailto:tex-music-bounces+dsimons=roadrunner....@tug.org] On Behalf Of Don Simons Sent: Thursday, May 02, 2019 8:52 AM To: 'Werner Icking Music Archive' <tex-music@tug.org> Subject: Re: [Tex-music] Line-length challenge for the TeXperts Bob Tennent wrote > Hi Don. > > Here's how to do this in musixtex, based on Olivier's coda.pmx. Notice there > are *three* groups of special commands, before and after the "short" > system, and then after the 2nd short system (or text after the short system). With great thanks to Bob, Andre, and Olivier, I've figured out how to get a shorter line in a much more satisfying way than drawing a white box to create a blank. Of course if my example below went further on, I'd need to restore the definition of \alaligne. And other changes would be needed for a mid-line blank. Now that I understand these techniques better I'll think about incorporating them directly into PMX, where in response to new PMX commands I could do it directly (like in Bob's example) rather than redefining \alaligne. --Don ====================================== 1 1 4 4 4 4 0 0 1 3 20 0 t .\ Abp c44 d e f g a b c / \\\def\alaligne{\ <file:///\\\def\alaligne%7b\> \\\stoppiece\hbox <file:///\\\stoppiece\hbox> to\hsize\bgroup\vbox\bgroup\hsize=.6\hsize\ \\\startpiece\addspace\afterruleskip}\ <file:///\\\startpiece\addspace\afterruleskip%7d\> L2 c44 d e f D"Hello"+8+15 Rr / \\\def\alaligne{\ <file:///\\\def\alaligne%7b\> \\\endpiece\egroup\egroup\ <file:///\\\endpiece\egroup\egroup\> \\\startpiece\addspace\afterruleskip}\ <file:///\\\startpiece\addspace\afterruleskip%7d\> L3 c44 d e f g a b c / ======================================
------------------------------- TeX-music@tug.org mailing list If you want to unsubscribe or look at the archives, go to https://tug.org/mailman/listinfo/tex-music