[pstricks] Strange interaction between pst-lens and pst-fill

halbard7 at aol.com halbard7 at aol.com
Sun Aug 20 20:09:19 CEST 2006

Please take a look at the following code: evidence of bugs or brain damage? Troubled lines
prefixed with %-> below. Using MikTeX 2.4 and dvips.
%% lensbug.tex
\newcommand{\f}{\mathrm f{}}
\renewcommand{\d}[1]{\mathop{\mathrm d#1}\nolimits}
\def\incircle{% my boxfill, loads of dots
\def\inpic{% my lens picture

%% begin problem
%% first problem:
%% remove %-> and feel the heat
%->  \psframe[fillstyle=boxfill](-1,0)(1,1)
%% end problem

  \psframe[fillstyle=crosshatch,hatchsep=1pt](-0.3,0)(0.4,1)% **

%% begin problem
%% second problem:
%% an alternative to the crosshatch style ** above
%% the fill bleeds into the lens surround, and looks awful
%->  \psframe[fillstyle=solid,fillcolor=mygray](-0.3,0)(0.4,1)
%% end problem

  \uput[d](-0.3,0){$\mathstrut x$}
  \uput[d](0.4,0){$\mathstrut x+\d x$}
\begin{pspicture}(-.5,-.5)(5,3) % the plot thickens
 \psclip{% shaded area in plot
 \uput[d](2,0){$\d x$}
 \PstLens[LensSize=.75,LensRotation=75](2,0.01){\inpic} % doing it
  *File List*
  article.cls    2005/09/16 v1.4f Standard LaTeX document class
   size10.clo    2005/09/16 v1.4f Standard LaTeX file (size option)
 pstricks.sty    2005/12/19 v0.31 LaTeX wrapper for `PSTricks'(RN,HV)
 pstricks.tex    2006/02/06 v1.14a `PSTricks' (tvz)
   xcolor.sty    2005/12/21 v2.09 LaTeX color extensions (UK)
    color.cfg    2005/12/29 v1.1 MiKTeX 'color' configuration
    dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
 pst-plot.sty    2004/07/15 package wrapper for pst-plot.tex
 pst-plot.tex    2004/05/18 1.41 `pst-plot' (tvz)
 pst-lens.sty    2005/09/02 package wrapper for pst-lens.tex (hv)
 pst-lens.tex    2006/06/06 v1.02 `PST-lens' (hv)
 pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
  xkeyval.sty    2005/11/25 v2.5e package option processing (HA)
  xkeyval.tex    2005/11/25 v2.5e key=value parser (HA)
 pst-fill.sty    2004/07/15 package wrapper for pst-fill.tex
 pst-fill.tex    2004/08/18 97 patch 4 `pst-fill' (tvz)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20060820/c1cdb403/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lensbug.tex
Type: application/octet-stream
Size: 2823 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20060820/c1cdb403/attachment.obj 

More information about the PSTricks mailing list