答案1
如果你感兴趣的话,它使用了一个短代码pstricks
:
\documentclass[ border=3pt]{standalone}
\usepackage{pst-eucl}%,
\begin{document}
\begin{pspicture}(-0.5,-0.5)(8.5,4.5)
\psset{ labelsep=0.8ex, linejoin=1, RightAngleSize=0.25, tbarsize=8pt, arrowinset=0.1}
\pstGeonode[PointSymbol=none, PosAngle={180,180,0,0}](3,4){A}(0,0){B}(8,0){C}(7,4){D}
\psline(A)(B)(C)(D)(A)%
\pnodes{H}(4,4)(4,0)\pcline(H0)(H1)\ncput*{4}
\pstRightAngle{D}{H0}{H1} \pstRightAngle{C}{H1}{H0}
\psset{offset=1.6ex}
\pcline{|<->|}(A)(D)\ncput*{4} \pcline{|<->|}(C)(B)\ncput*{8}
\end{pspicture}
\end{document}