<HTML><BODY>
<div>Please take a look at the following code: evidence of bugs or brain damage?&nbsp;Troubled lines</div>


<div>prefixed with %-&gt; below. Using MikTeX 2.4 and dvips.</div>


<div>&nbsp;</div>


<div>%% lensbug.tex</div>


<div>\listfiles<br>
\documentclass{article}<br>
\usepackage{pstricks}<br>
\usepackage{pst-plot}<br>
\usepackage{pst-lens}<br>
\usepackage{pst-fill}</div>


<div>&nbsp;</div>


<div>\newcommand{\f}{\mathrm f{}}<br>
\renewcommand{\d}[1]{\mathop{\mathrm d#1}\nolimits}</div>


<div>\newgray{mygray}{0.9}</div>


<div>&nbsp;</div>


<div>\begin{document}</div>


<div>&nbsp;</div>


<div>\def\incircle{% my boxfill, loads of dots<br>
&nbsp;\pspicture(0,0)(0.2,0.2)\psdots(0.1,0.1)\endpspicture<br>
}</div>


<div>&nbsp;</div>


<div>\def\inpic{% my lens picture<br>
&nbsp;\rput(1.9,0.1){<br>
&nbsp; \begin{pspicture}(-1,-1)(1,1)<br>
&nbsp; \psboxfill{\incircle}</div>


<div><br>
%% begin problem<br>
%% first problem:</div>


<div>%%&nbsp;remove %-&gt; and feel the heat<br>
%-&gt;&nbsp; \psframe[fillstyle=boxfill](-1,0)(1,1)<br>
%% end problem</div>


<div><br>
&nbsp; \psframe[fillstyle=crosshatch,hatchsep=1pt](-0.3,0)(0.4,1)% **</div>


<div><br>
%% begin problem</div>


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


<div><br>
&nbsp; \psline(-1,0)(1,0)<br>
&nbsp; \psline(-0.3,0)(-0.3,1)<br>
&nbsp; \psline(0.4,0)(0.4,1)<br>
&nbsp; \uput[d](-0.3,0){$\mathstrut x$}<br>
&nbsp; \uput[d](0.4,0){$\mathstrut x+\d x$}<br>
&nbsp; \end{pspicture}<br>
&nbsp;}<br>
}</div>


<div>&nbsp;</div>


<div>\psset{unit=1.75cm}<br>
\begin{pspicture}(-.5,-.5)(5,3) % the plot thickens<br>
&nbsp;\psclip{% shaded area in plot<br>
&nbsp; \pscustom[linestyle=none]{%<br>
&nbsp;&nbsp; \pscurve(0,1.8)(0.5,2.3)(2,2.7)(3,2.4)(4.5,1.6)(5,1.5)<br>
&nbsp;&nbsp; \lineto(5,0)<br>
&nbsp;&nbsp; \lineto(0,0)<br>
&nbsp; }<br>
&nbsp;}<br>
&nbsp;\psframe*[linecolor=mygray](0.5,0)(4.5,3)<br>
&nbsp;\endpsclip<br>
&nbsp;\psaxes[labels=none,ticks=none]{-&gt;}(0,0)(-.2,-.2)(5,3)<br>
&nbsp;\pscurve(0,1.8)(0.5,2.3)(2,2.7)(3,2.4)(4.5,1.6)(5,1.5)<br>
&nbsp;\uput[r](5,1.5){$y=\f(x)$}<br>
&nbsp;\psline(2,0)(2,2.7)<br>
&nbsp;\uput[d](2,0){$\d x$}<br>
&nbsp;\psdots(2,2.7)<br>
&nbsp;\uput[ur](2,2.7){$(x,y)$}<br>
&nbsp;\uput[d](0.5,0){$a$}<br>
&nbsp;\uput[d](4.5,0){$b$}<br>
&nbsp;\uput[r](5,0){$x$}<br>
&nbsp;\uput[l](0,3){$y$}<br>
&nbsp;\PstLens[LensSize=.75,LensRotation=75](2,0.01){\inpic} % doing it<br>
\end{pspicture}</div>


<div>&nbsp;</div>


<div>\end{document}</div>


<div>&nbsp;</div>


<div>&nbsp; *File List*<br>
&nbsp; article.cls&nbsp;&nbsp;&nbsp; 2005/09/16 v1.4f Standard LaTeX document class<br>
&nbsp;&nbsp; size10.clo&nbsp;&nbsp;&nbsp; 2005/09/16 v1.4f Standard LaTeX file (size option)<br>
&nbsp;pstricks.sty&nbsp;&nbsp;&nbsp; 2005/12/19 v0.31 LaTeX wrapper for `PSTricks'(RN,HV)<br>
&nbsp;pstricks.tex&nbsp;&nbsp;&nbsp; 2006/02/06 v1.14a `PSTricks' (tvz)<br>
&nbsp;&nbsp; xcolor.sty&nbsp;&nbsp;&nbsp; 2005/12/21 v2.09 LaTeX color extensions (UK)<br>
&nbsp;&nbsp;&nbsp; color.cfg&nbsp;&nbsp;&nbsp; 2005/12/29 v1.1 MiKTeX 'color' configuration<br>
&nbsp;&nbsp;&nbsp; dvips.def&nbsp;&nbsp;&nbsp; 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)<br>
&nbsp;pst-plot.sty&nbsp;&nbsp;&nbsp; 2004/07/15 package wrapper for pst-plot.tex<br>
&nbsp;pst-plot.tex&nbsp;&nbsp;&nbsp; 2004/05/18 1.41 `pst-plot' (tvz)<br>
&nbsp;pst-lens.sty&nbsp;&nbsp;&nbsp; 2005/09/02 package wrapper for pst-lens.tex (hv)<br>
&nbsp;pst-lens.tex&nbsp;&nbsp;&nbsp; 2006/06/06 v1.02 `PST-lens' (hv)<br>
&nbsp;pst-xkey.tex&nbsp;&nbsp;&nbsp; 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)<br>
&nbsp; xkeyval.sty&nbsp;&nbsp;&nbsp; 2005/11/25 v2.5e package option processing (HA)<br>
&nbsp; xkeyval.tex&nbsp;&nbsp;&nbsp; 2005/11/25 v2.5e key=value parser (HA)<br>
&nbsp;pst-fill.sty&nbsp;&nbsp;&nbsp; 2004/07/15 package wrapper for pst-fill.tex<br>
&nbsp;pst-fill.tex&nbsp;&nbsp;&nbsp; 2004/08/18 97 patch 4 `pst-fill' (tvz)<br>
&nbsp; ***********<br>
</div>
</BODY></HTML>