[pstricks] fill and arrow heads
Herbert Voss
Herbert.Voss at fu-berlin.de
Sat Dec 1 10:01:37 CET 2007
Hendrik Hoeth schrieb:
> is it on purpose that the fill color is drawn on top of arrow heads, as
> in this example?
>
> \documentclass{article}
> \usepackage{pstricks}
> \begin{document}
> \psset{unit=5cm,linewidth=2mm}
> \begin{pspicture}(-1,-1)(1,1)%
> \def\curve{\pscurve{c-c}(-.1,.1)(-.15,.15)(0,.2)(.15,.15)(.1,.1)}
> \rput(0,.2){\curve}
> \rput(0,-.2){%
> \psset{fillstyle=solid,fillcolor=blue}
> \curve
> }
> \end{pspicture}
> \end{document}
>
> Currently I fix it by drawing the line twice -- first with and then
> without filling. But I'm wondering if this is a bug or a feature?
try the following
\documentclass{article}
\usepackage{pstricks}
\makeatletter
\def\psls at solid{1 setlinecap stroke }
\makeatother
\begin{document}
\psset{unit=5cm,linewidth=5mm}
\begin{pspicture}(-1,-1)(1,1)%
\def\curve{\pscurve(-.1,.1)(-.15,.15)(0,.2)(.15,.15)(.1,.1)}
\rput(0,.2){\curve}
\rput(0,-.2){%
\psset{fillstyle=solid,fillcolor=blue}
\curve
}
\end{pspicture}
\end{document}
Herbert
More information about the PSTricks
mailing list