[pstricks] pst-fill.tex: can't reproduce example from User's Guide

Herbert Voss Herbert.Voss at FU-Berlin.DE
Mon May 26 08:33:53 CEST 2008


bill franzsen schrieb:
> Trying to construct a hexagonal pattern, I started with the example given 
> on p117 of the User's Guide 25/7/2003. Using the file below with plain 
> tex:
> 
> 
> ---------------------
> \input pstricks
> \input pst-fill
> 
> \def\PstTiling{true}

this cannot work, because pst-fill sets the optional arguments
depending to \PstTiling. The reason why you have to define it
_before_ loading the package.


%-------------
\def\PstTiling{true}%  define it before loading pst-fill
\input pst-fill

\def\Tiling#1(#2){%
\pspicture(#2)
     \psframe[fillstyle=boxfill,#1](#2)
\endpspicture}

\def\Hexagon{%
\pspicture(0.866,0.75)%
\SpecialCoor
\pspolygon[dimen=middle](0.5;30)(0.5;90)%
     (0.5;150)(0.5;210)(0.5;270)(0.5;330)%
\endpspicture}

\psboxfill{\Hexagon}
\Tiling{fillcyclex=2,fillloopaddy=1}(5,5)
%\Tiling{fillsepx=0,fillsepy=0}(5,5)
\Tiling{}(5,5)

\bye
%--------------


I did some more changes to the code, which are not related
to your problem, but make live easier :-)

Herbert



More information about the PSTricks mailing list