[pstricks] Re: PSTricks bug

Herbert Voss Herbert.Voss at alumni.TU-Berlin.DE
Tue May 18 22:36:21 CEST 2004


Dwight Aplevich wrote:
> 
> OK, thank you.  It's something to put
> on your list.  When I ran into this problem
> I briefly looked at the code and couldn't see a
> simple solution.

I think I fixed it ...
Try the example.

> I hope your weather is better than last week.
> I've just returned from Germany with a cold,
> although the weekend was nice.

Here in Berlin it is okay, only cold nights.

Herbert


\documentclass{article}
\usepackage{pstricks}
\makeatletter
\def\psas@@c{%
   setlinecap
   0 0 moveto
%%-------------------- patch 16 begin HV 2004-05-18 ----------------
%  0 CLW 2 div L
   0 0.1 L
%%-------------------- patch 16 end HV 2004-05-18 ----------------
   stroke
   0 0 moveto
}
\makeatother
\begin{document}

\begin{pspicture}(3,3)\psgrid
   \psset{linewidth=0.5cm}
   \psline(0.25,0.25)(0.25,2.25)\rput(0.25,-0.25){-}
   \psline{c-c}(1,0.25)(1,2.25)\rput(1,-0.25){c-c}
   \psline[linecolor=red](1,0.25)(1,2.25)
   \psline[linecolor=red](1.75,0.25)(1.75,2.25)
   \psline{cc-cc}(1.75,0.25)(1.75,2.25)\rput(1.75,-0.25){cc-cc}
   \psline{C-C}(2.5,0.25)(2.5,2.25)\rput(2.5,-0.25){C-C}
   \psline[linecolor=red](2.5,0.25)(2.5,2.25)
\end{pspicture}


\vspace{1cm}
\psset{unit=1pt}
\begin{pspicture}(0,0)(300,200)
% Compare the two arcs
% there appears to be a bug in the handling of arrows=c-c
\psarc[linewidth=36pt,arrows=c-c](0,100){100}{-90}{90}
\psarc[linewidth=36pt,linecolor=red](0,100){100}{-90}{90}
\psline[linewidth=36pt,arrows=c-c](0,-50)(200,-100)
\psline[linewidth=36pt,linecolor=red](0,-50)(200,-100)
\end{pspicture}

\vspace{4cm}
\begin{pspicture}(0,0)(300,200)
% Compare the two arcs
% there appears to be a bug in the handling of arrows=c-c
\psarc[linewidth=36pt,linecolor=red](0,100){100}{-90}{90}
\psarc[linewidth=36pt,arrows=cc-cc](0,100){100}{-90}{90}
\psline[linewidth=36pt,linecolor=red](0,-50)(200,-100)
\psline[linewidth=36pt,arrows=cc-cc](0,-50)(200,-100)
\end{pspicture}

\end{document}




More information about the PSTricks mailing list