Well, the coding in \varline is still pretty inscrutable, but there's a
comment in the version of it in tuplet.tex saying it builds up the line with
10-pt segments, evidently from a selected character in the font musixspx. So
that explains why I can't get a line shorter than 10pt, and also means that
without a completely different approach, I'd have to modify the macro to use
a shrunken version of that font. But even if I could work that out (which I
doubt), it would make the line proportionally thinner, which would be bad.  

It sure seems like a typesetting system as fancy as TeX ought to provide a
way to draw any straight line you want.

--Don

>-----Original Message-----
>From: TeX-Music [mailto:[email protected]] On Behalf Of Don Simons
>Sent: Sunday, August 18, 2013 7:50 PM
>To: 'Werner Icking Music Archive'
>Subject: [Tex-music] Diagonal lines
>
>I'm trying to figure out how to draw an ARBITRARY diagonal line. There's a
>macro \varline in musixtex.tex that is used for xtuplet brackets, but it
>doesn't work as I would expect from the description:
>
>% varline #1=height[dimen] #2=length[dimen] #3=slope (1\eqiv 1.125degree)
>% (comments and ideas from Ian Collier)              (from -20 upto 20 )
>% This macro is used by some of the others which follow,
>% using it directly it must be set in zero box
>
>Minor point: the 1st argument is a number, not a dimension. Here's a test
>file, in which the 8 slanted lines should get progressively longer. THEY
>DON'T. Can anyone figure out how to dumb this macro down so it simply draws
>the advertised line, starting from the same point every time (like it seems
>to be doing for the last 4 lines)? It would also be nice to be able to set
>the thickness of the diagonal line, and to remove the restriction on slope.
>Any help would be greatly appreciated.
>
>=============================
>1 1 2 4 2 4 0 0
>0 8 20 0
>
>t
>.\
>\zcharnote7{\hbox{\varline0{2pt}5}}\ e44 g /
>\zcharnote7{\hbox{\varline0{4pt}5}}\ e44 g /
>\zcharnote7{\hbox{\varline0{6pt}5}}\ e44 g /
>\zcharnote7{\hbox{\varline0{8pt}5}}\ e44 g /
>\zcharnote7{\hbox{\varline0{10pt}5}}\ e44 g /
>\zcharnote7{\hbox{\varline0{12pt}5}}\ e44 g /
>\zcharnote7{\hbox{\varline0{14pt}5}}\ e44 g /
>\zcharnote7{\hbox{\varline0{16pt}5}}\ e44 g /
>===============================
>
>--Don Simons
>
>
>-------------------------------
>[email protected] mailing list
>If you want to unsubscribe or look at the archives, go to
>http://tug.org/mailman/listinfo/tex-music


-------------------------------
[email protected] mailing list
If you want to unsubscribe or look at the archives, go to 
http://tug.org/mailman/listinfo/tex-music

Reply via email to