<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);">
Try this code: <br>
</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[fillstyle=hlines]{%</div>
<div>\psline(-2,-2)(2,-2)(2,2)(-2,2)%</div>
<div>\closepath%</div>
<div>\moveto(2,-1)</div>
<div>\psline(4,-1)(4,1)(2,1)%</div>
<div>\closepath</div>
<div>\psline[fillstyle=none](-1,-1)(-1,1)(2,1)</div>
<div>\closepath</div>
<div>}%</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);">
cheers</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> PSTricks <pstricks-bounces+hensh=math.msu.edu@tug.org> on behalf of patrick fradin <patrick.fradin@gmail.com><br>
<b>Sent:</b> Saturday, July 31, 2021 1:07 PM<br>
<b>To:</b> pstricks@tug.org <pstricks@tug.org><br>
<b>Subject:</b> [pstricks] eofill and hatches</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">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>
</div>
</span></font></div>
</div>
</body>
</html>