Hi Don

You might want to try a simple TeX \vrule, combined with a colour from
the `colordvi' package.
I created the "\gapp" definition.  You will notice that I have used
some negative "\hskip" commands.
Not sure if this was what you were looking for?

=====================
1 1 4 4 4 4 0 0
1 2 20 0

t
.\
\\input pstricks\
\\input colordvi\
\\\def\gap{\
\\\psframe[linestyle=none,fillstyle=solid,fillcolor=white](-17pt,-1pt)(100pt,21pt)}\
\\\def\gapp{\
\\\hskip -16pt\
\\\White{\vrule height20.6pt width104.2pt depth0.5pt} \hskip -90pt}\
c44 d e f g a b c /
L2
c44 d e f g a b c /
RD \gapp\ rb0 D"Hello"+8-2 Rz /
=====================

You get the attached result.

Regards

-- 
Danai

On Sun, 28 Apr 2019 at 23:51, Don Simons <[email protected]> wrote:
>
> Can anyone come up with a cleaner way to shorten a single line…not 
> necessarily the last one on the page…in PMX (without trial and error)? If so 
> I may incorporate it into PMX.
>
>
>
> --Don
>
>
>
> From: Don Simons [mailto:[email protected]]
> Sent: Thursday, April 25, 2019 10:03 PM
> To: 'Dieter' <[email protected]>
> Subject: RE: PMX with Comments at the end of a line
>
>
>
> Dieter--
>
>
>
> OK, here's an example of one way to create a blank space at the end of a line 
> and then put some text in it. Since you need to tailor the width of the white 
> rectangle by trial and error, this would be tedious if you had to do it more 
> than once or twice, but it does work, without requiring any changes to the 
> basic page layout or staff widths. Let me know if you have any questions.
>
>
>
> --Don
>
>
>
> ==================================
>
> 1 1 4 4 4 4 0 0
>
> 1 2 20 0
>
>
>
> t
>
> .\
>
> \\input pstricks\
>
> \\\def\gap{\
>
> \\\psframe[linestyle=none,fillstyle=solid,fillcolor=white](-17pt,-1pt)(100pt,21pt)}\
>
> c44 d e f g a b c /
>
> L2
>
> c44 d e f g a b c /
>
> RD \gap\ rb0 D"Hello"+8-2 Rz /
>
> ==================================
>
>
>
>
>
> > -----Original Message-----
>
> > From: Don Simons [mailto:[email protected]]
>
> > Sent: Tuesday, April 23, 2019 8:43 AM
>
> > To: 'Dieter' <[email protected]>
>
> > Subject: RE: PMX with Comments at the end of a line
>
> >
>
> > Hi, Dieter--
>
> >
>
> > I wondered why you were emailing me in German. I'm afraid I don't
>
> > understand any of it.
>
> >
>
> > You can do anything with inline TeX, but it's usually difficult.
>
> >
>
> > The first question is whether you want the comments in the margin, or
>
> > whether you want the music staff on that line to stop short. If you want it
>
> > shortened, and if you are using postscript (which I always do) then there 
> > is a
>
> > way to draw a solid white box anywhere using a package called pstricks,
>
> > which may be included in MiKTeX. I know I've done this before but I haven't
>
> > yet found the examples. If you want to shorten the staff but are not using
>
> > postscript, then I'm afraid you'd need to figure out a way to end that staff
>
> > early using inline MusiXTeX commands, and that would be tricky.
>
> >
>
> > If you want to pursue this on your own, maybe the above comments will
>
> > help. If you want me to work on it, then please send more details about
>
> > exactly what you want to do.
>
> >
>
> > --Don
>
> >
>
> > > -----Original Message-----
>
> > > From: Dieter [mailto:[email protected]]
>
> > > Sent: Tuesday, April 23, 2019 5:44 AM
>
> > > To: Don Simons <[email protected]>
>
> > > Subject: PMX with Comments at the end of a line
>
> > >
>
> > > Hi Don,
>
> > >
>
> > > my last mail was sent off by mistake. Sorry!
>
> > >
>
> > > I was discussing with a friend, whether PMX would be able to support
>
> > > comments at the end of an input line.
>
> > >
>
> > > Did you ever consider such an idea?
>
> > >
>
> > > Regards,
>
> > >
>
> > > Dieter
>
> > >
>
> > > --
>
> > > ____________________________________
>
> > > Dr. Dieter Glötzel
>
> > > Im Rosengarten 27
>
> > > 64367 Mühltal
>
> > > Tel.: 06151 / 360 82 72
>
>
>
> -------------------------------
> [email protected] mailing list
> If you want to unsubscribe or look at the archives, go to 
> https://tug.org/mailman/listinfo/tex-music
-------------------------------
[email protected] mailing list
If you want to unsubscribe or look at the archives, go to 
https://tug.org/mailman/listinfo/tex-music

Reply via email to