%% 
%%  Ein Beispiel der DANTE-Edition
%%  
%%  2. Auflage
%% 
%%  Beispiel 04-02-6 auf Seite 103.
%% 
%%  Copyright (C) 2016 Herbert Voss
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 
%% 
%% ==== 
% Show page(s) 1
%% 
%% 
\documentclass[]{exaarticle}
\pagestyle{empty}
\setlength\textwidth{352.81416pt}
\setlength\parindent{0pt}
%StartShownPreambleCommands
\usepackage{layouts,graphicx,pstricks-add}
%StopShownPreambleCommands
\begin{document}
%\newlength{\pwlayi}
%\setlength{\pwlayi}{0.4375\textwidth}
%\newlength{\pwlayii}
%\setlength{\pwlayii}{0.5\pwlayi}
%\centering
%\begin{minipage}[b]{0.49\linewidth}
%DIV Breite Höhe oben außen innen unten
%9 140,00 198,00 33,00 46,67 23,33 66,00
\resizebox{\linewidth}{!}{%
\psset{xunit=23.3333pt,yunit=33pt}
\begin{pspicture}(18,9)
\psgrid[gridcolor=black!20,subgriddiv=0,gridlabels=0pt](0,0)(18,9)
\psframe(9,9)\psframe(9,0)(18,9)
\psframe*[linecolor=black!30](2,2)(8,8)
\psframe*[linecolor=black!30](10,2)(16,8)
\psline(0,0)(9,9)\psline(0,0)(18,9)
\psline(0,9)(18,0)\psline(9,9)(18,0)
\psIntersectionPoint(0,0)(18,9)(9,9)(18,0){IPb}
\psIntersectionPoint(0,9)(18,0)(0,0)(9,9){IPa}
\psIntersectionPoint(IPa)(IPb|0,0)(IPb)(IPa|0,0){IPaa}
\psIntersectionPoint(IPa)(IPb|0,9)(IPb)(IPa|0,9){IPbb}
\pspolygon[linestyle=dashed](IPa)(IPa|0,9)(IPbb)(IPb|0,9)(IPb|0,0)(IPaa)(IPa|0,0)
\pspolygon[linestyle=dotted](IPa)(IPbb)(IPb)(IPaa)
\pcline{<->}(0,0|IPa)(2,0|IPa)\ncput*{4}
\pcline{<->}(8,0|IPa)(9,0|IPa)\ncput*{2}
\pcline{<->}(4,9)(4,8)\ncput*{3}
\pcline{<->}(4,0)(4,2)\ncput*{6}
\end{pspicture}}
\end{document}
