[pstricks] pst-fill weirdness

Herbert Voss Herbert.Voss at gmx.net
Sun May 21 08:49:50 CEST 2006



Chris wrote:
> Hello,
> 
> I'm trying to use pst-fill, but am struggling to get it to tile the
> correct area.  If the code below is compiled, then the tiled region is
> such that the upper triangle ends up untiled.  However, if I attemp to
> enlarge the tiled region by uncommenting the tenth line, then the
> tiling extends as desired, but the tiled objects all lose their
> borders!
> 
> Can anyone explain what's going on here?

use only one filling in one pspicture environment.

Herbert


\documentclass{article}
\usepackage{pstricks}
\usepackage[tiling]{pst-fill}

\psset{unit=1in}
\newcommand\cjkuarrow{\pspicture(0.1,0.25)\psline{->}(0.05,0.05)(0.05,0.20)\endpspicture}
\newcommand\cjkrarrow{\pspicture(0.25,0.1)\psline{->}(0.05,0.05)(0.20,0.05)\endpspicture}

\begin{document}

\begin{pspicture}(4,1)
\psframe[dimen=middle](4,1)%
\psboxfill{\cjkrarrow}
\pspolygon[fillstyle=boxfill,dimen=middle,linecolor=red](0,0)(4,0)(4,1)%
\end{pspicture}

\begin{pspicture}(4,1.5)
\psboxfill{\cjkuarrow}%
\psframe[fillstyle=boxfill,dimen=middle](4,1.5)%
\end{pspicture}

\begin{pspicture}(4,1)
\psframe[dimen=middle](4,1)%
\psboxfill{\cjkrarrow}%
\pspolygon[fillstyle=boxfill,dimen=middle,linestyle=solid,linecolor=blue](0,0)(0,1)(4,1)%
\end{pspicture}

\end{document}



> 
> \documentclass{article}
> \usepackage{pstricks}
> \usepackage[tiling]{pst-fill}
> \begin{document}
> \begin{figure}
> \centering%
> \psset{unit=1in}%
> \begin{pspicture}(5,3.5)%
> \psset{origin={0.5,0.5}}
> %\psset{fillsize={(4,2.5)}}
> \newcommand{\cjkuarrow}{\begin{pspicture}(0.1,0.25)\psline[arrows=->](0.05,0.05)(0.05,0.20)\end{pspicture}}%
> \newcommand{\cjkrarrow}{\begin{pspicture}(0.25,0.1)\psline[arrows=->](0.05,0.05)(0.20,0.05)\end{pspicture}}%
> 
> \psframe[dimen=middle](0,0)(4,1)%
> \psboxfill{\cjkrarrow}%
> \pspolygon[fillstyle=boxfill,dimen=middle,linestyle=solid](0,0)(0,1)(4,1)%
> 
> \psboxfill{\cjkuarrow}%
> \psframe[fillstyle=boxfill,dimen=middle](0,1)(4,1.5)%
> 
> \psframe[dimen=middle](0,1.5)(4,2.5)%
> \psboxfill{\cjkrarrow}%
> \pspolygon[fillstyle=boxfill,dimen=middle](0,1.5)(4,1.5)(4,2.5)%
> 
> \end{pspicture}
> \caption{Caption}
> \end{figure}
> \end{document}
> 

-- 
http://PSTricks.de/
http://TeXnik.de/
http://www.dante.de/CTAN/info/math/voss/mathmode/Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes





More information about the PSTricks mailing list