[pstricks] arrows no longer colored in \code blocks
Herbert Voss
Herbert.Voss at fu-berlin.de
Tue Oct 11 21:43:27 CEST 2022
Am 11.10.22 um 21:12 schrieb Hensh, Richard:
> https://users.math.msu.edu/users/hensh/courses/234/fall2022/lectures/exam2/16.1.pdf
>
> Unfortunately, when I try to generate new vector fields, the arrows
> are no longer affected by my color selections. The MWE below is part
> of a \multido loop, and I need to set the arrow color to match the
> line color on-the-fly.
>
> The above code generates a red line with a black arrow. I must be able
> to do this within the \code block. Can you help?
>
Rick,
can you use it this way?
\documentclass{standalone}
\usepackage{pstricks-add}
\begin{document}
\psset{unit=30mm}
\begin{pspicture}(-2,-2)(2,2)
\pscustom[linewidth=2pt,arrowscale=1.5,linecolor=red]{% <---
\arrows{->}
\code{%
0 0 5 5 ArrowA
30 30 110 75 ArrowB
lineto
}
}
\end{pspicture}
\end{document}
or must it be asolutely inside \code?
Herbert
More information about the PSTricks
mailing list.