Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

When \psboxfill encloses \pspicture*, I got a strange result as follows.

enter image description here

\documentclass[cmyk]{minimal}
\usepackage{pstricks,pst-fill}

\psboxfill{%
\psset{unit=1pt}
\begin{pspicture*}(1,1)
\psline(-1,-1)(2,2)
\psline(-1,2)(2,-1)
\end{pspicture*}%
}

\pagestyle{empty}
\begin{document}

\begin{pspicture}[showgrid=false](-2,-2)(2,2)
\pscircle[
    fillstyle=solid,
    opacity=0.25,
    fillcolor=gray,
    fillsep=0.4,
    addfillstyle=boxfill]
    (0,0){2}
\end{pspicture}

\end{document}

It means the \psboxfill cannot work with clipped \pspicture that are sometimes needed in our tasks. Is it a bug?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Clipping inside a clipping region is difficult. Use this definition:

\psboxfill{%
  \psset{unit=2pt,linewidth=0.4pt}% to make the x-like filling objects visible
  \AltClipMode
  \begin{pspicture*}(1,1)
  \psline(-1,-1)(2,2)
  \psline(-1,2)(2,-1)
  \end{pspicture*}%
}
share|improve this answer
    
+1 I need to adjust the linewidth. –  xport Jul 8 '11 at 16:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.