[pstricks] Re: 2 pscoil within a pscustom
Herbert Voss
LaTeX at zedat.fu-berlin.de
Sun Nov 27 22:11:44 CET 2005
m wrote:
> I may have found a bug in pstricks. Compile the
> attached file or have a look at the pdf and see for
> yourself, it's self explaining: pscustom doesn't work
> with 2 pscoils.
a coil is not like a line, so you cannot use it inside
of pscustom. It works only with some tricky code.
Herbert
\documentclass[a4paper, 12pt]{report}
\usepackage[french]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{pstricks}
\usepackage{pst-coil}
\begin{document}
1.:
\begin{pspicture}(0,0)(12,3)
\pscustom[linewidth=2pt,fillstyle=solid, fillcolor=lightgray,%
coilwidth=0.2,coilheight=2.5,coilaspect=0,coilarm=0]{
\psline(1,1)(11,1)
\pscoil(11,1)(11,3)
\swapaxes
\moveto(0,2)
\rlineto(10,0)
\pscoil(10,2)(10,0)}
\end{pspicture}
2.:
\begin{pspicture}(0,0)(12,3)
\psline(1,3)(11,3)
\pscoil[coilwidth=0.2,coilheight=2.5,coilaspect=0,coilarm=0](11,3)(11,1)
\psline(11,1)(1,1)
\pscoil[coilwidth=0.2,coilheight=2.5,coilaspect=0,coilarm=0](1,1)(1,3)
\end{pspicture}
3.:
\begin{pspicture}(0,0)(12,3)
\pscustom[linewidth=2pt,fillstyle=solid, fillcolor=lightgray]{
\psline(1,3)(11,3)
\psline(11,3)(11,1)
\psline(11,1)(1,1)
\pscoil[coilwidth=0.2,coilheight=2.5,coilaspect=0,coilarm=0](1,1)(1,3)}
\end{pspicture}
\end{document}
More information about the PSTricks
mailing list