<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The code below behaves as expected. Perhaps there is a bug with addfillstyle?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
\begin{pspicture}(-5.5,-5.5)(5.5,5.5)%
<div>%\psset{fillstyle=hlines,addfillstyle=eofill}%</div>
<div>\pscustom[fillcolor=blue,fillstyle=eofill]{%</div>
<div>\psline(-2,-2)(2,-2)(2,2)(-2,2)%</div>
<div>\closepath%</div>
<div>\moveto(-1,-1)</div>
<div>\psline(4,-1)(4,1)(-1,1)%</div>
<div>\closepath}%</div>
\end{pspicture}%</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
regards</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
rick<br>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> patrick fradin <patrick.fradin@gmail.com><br>
<b>Sent:</b> Sunday, August 1, 2021 5:52 AM<br>
<b>To:</b> Hensh, Richard <hensh@msu.edu>; pstricks@tug.org <pstricks@tug.org><br>
<b>Subject:</b> Re: [pstricks] eofill and hatches</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">Yes this code works, but it's not a solution, it's just a trick for this<br>
example. I think the original code should work but there is a problem (a<br>
bug?)<br>
<br>
Regards,<br>
<br>
P. Fradin<br>
<br>
Le 01/08/2021 à 11:31, Hensh, Richard a écrit :<br>
> Try this code:<br>
> <br>
> \begin{pspicture}(-5.5,-5.5)(5.5,5.5)%<br>
> %\psset{fillstyle=hlines,addfillstyle=eofill}%<br>
> \pscustom[fillstyle=hlines]{%<br>
> \psline(-2,-2)(2,-2)(2,2)(-2,2)%<br>
> \closepath%<br>
> \moveto(2,-1)<br>
> \psline(4,-1)(4,1)(2,1)%<br>
> \closepath<br>
> \psline[fillstyle=none](-1,-1)(-1,1)(2,1)<br>
> \closepath<br>
> }%<br>
> \end{pspicture}%<br>
> <br>
> cheers<br>
> rick<br>
> <br>
> ------------------------------------------------------------------------<br>
> *From:* PSTricks <pstricks-bounces+hensh=math.msu.edu@tug.org> on behalf<br>
> of patrick fradin <patrick.fradin@gmail.com><br>
> *Sent:* Saturday, July 31, 2021 1:07 PM<br>
> *To:* pstricks@tug.org <pstricks@tug.org><br>
> *Subject:* [pstricks] eofill and hatches<br>
>  <br>
> Hi,<br>
> <br>
> When I try this code :<br>
> <br>
> \begin{pspicture}(-5.5,-5.5)(5.5,5.5)%<br>
> <br>
> \psset{fillstyle=hlines,addfillstyle=eofill}%<br>
> <br>
> \pscustom{%<br>
> <br>
> \psline(-2,-2)(2,-2)(2,2)(-2,2)%<br>
> <br>
> \closepath%<br>
> <br>
> \moveto(-1,-1)<br>
> <br>
> \psline(4,-1)(4,1)(-1,1)%<br>
> <br>
> \closepath}%<br>
> <br>
> \end{pspicture}%<br>
> <br>
> I've a wrong result (I've joined the expected result  too).<br>
> <br>
> What should I modify ?<br>
> <br>
> Thanks<br>
> <br>
> P. Fradin<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>