Consider the following MWE:
Code: Select all
\documentclass{article}
\usepackage{auto-pst-pdf,pstricks-add}
\begin{document}
\begin{figure}
\centering
\begin{pspicture}(4.37,3.56)
\psline[linewidth=0.7pt](0.2,0)(2.2,3.46)(4.2,0)(0.2,0)
\psline[linewidth=0.7pt,linestyle=dashed,dash=2pt](1.53,0)(0.87,1.15)
\psline[linewidth=0.7pt,linestyle=dashed,dash=2pt](1.53,2.31)(2.87,2.31)
\psline[linewidth=0.7pt,linestyle=dashed,dash=2pt](3.53,1.15)(2.87,0)
\psline[linewidth=0.5pt]{|<->|}(0,0.12)(2.03,3.56)
\rput(0.83,1.9){$a$}
\psline[linewidth=0.5pt]{|<->|}(3.04,2.41)(2.37,3.56)
\rput(2.9,3.05){$x$}
\psline[linewidth=0.5pt]{|<->|}(3.71,1.25)(3.04,2.41)
\rput(3.6,1.92){$k$}
\psline[linewidth=0.5pt]{|<->|}(4.37,0.1)(3.71,1.25)
\rput(4.25,0.75){$x$}
\end{pspicture}
\end{figure}
\end{document}


Thank you in advance!
P.S. The

Update:
Here is an improved version:
Code: Select all
\documentclass{article}
\usepackage{auto-pst-pdf,pstricks-add}
\begin{document}
\begin{figure}[htbp]
\centering
\begin{pspicture}(0.2,0)(4.37,3.46)
\psset{unit=1.5,offset=12pt}
\pnode(0.2,0){A}
\pnode(2.2,3.46){B}
\pnode(4.2,0){C}
\pspolygon(A)(B)(C)
\pnode(1.53,0){D}
\pnode(0.87,1.15){E}
\pnode(1.53,2.31){F}
\pnode(2.87,2.31){G}
\pnode(3.53,1.15){H}
\pnode(2.87,0){I}
\pspolygon[linestyle=dashed,linewidth=0.5pt](D)(E)(F)(G)(H)(I)
\pcline{|-|}(A)(B)
\ncput*{$a$}
\pcline{|-|}(B)(G)
\ncput*{$x$}
\pcline{|-|}(G)(H)
\ncput*{$k$}
\pcline{|-|}(H)(C)
\ncput*{$k$}
\end{pspicture}
\end{figure}
\end{document}
(In the figure, $x = k$. I am not sure if it makes a difference.)