I'm using LilyPond 2.25.26.
I'm trying to draw an arrow in \markup by first drawing a line for the arrow
shaft--using either \draw-line or \path--and then drawing the arrowhead using
\arrow-head. Unfortunately, both attempts result in a gap between the arrow
shaft and the arrow head.
Here is the code, showing both results side by side:
\markup {
\draw-line #'(2.0 . 0.0)
\arrow-head #X #RIGHT ##t
}
\markup {
\path #0.25 #'((lineto 2.0 0))
\arrow-head #X #RIGHT ##t
}
I tried to eliminate the gap by "moving back" a little before drawing the arrow
head, but that didn't work either:
\markup {
\path #0.25 #'((lineto 2.0 0))
\arrow-head #X #RIGHT ##t
}
\markup {
\path #0.25 #'((lineto 2.0 0) (rlineto -1.0 0))
\arrow-head #X #RIGHT ##t
}
The "rlineto" command doesn't seem to even have been executed at all. If I
understood how these drawing commands work--including how the reference point
changes with each command, and where exactly _is_ the reference point for an
"\arrow-head"--I might be able to solve the problem. But so far I've been
unable to find any documentation that explains this.
I'd be very grateful for any insights/clarification that the community can
offer.
Thanks!
--
Todd Hesla
Minneapolis, Minnesota