- Open the Latex editor.
- Type this following Latex code in Latex editor:
%!TEX TS-program = pdflatex -shell-escape <file>.tex
\documentclass[border=12pt]{standalone}
\usepackage[crop=off]{auto-pst-pdf}
\usepackage{pst-eucl}
\usepackage{tgbonum}
\author{private course and after school tutor}
\begin{document}
\psset{yunit=2cm, linejoin=1}
\begin{pspicture}(-0.5,-0.25)(7.5,1.25)
\pstGeonode[PointSymbol=none, PosAngle={180,0,0,180}](0,1){P}(7,1){Q}(7,0){R}(0,0){S}
\psframe(P)(R)
\pcline(P)(Q)\naput{7\,cm}
\pcline(Q)(R)\naput[nrot=:U]{1\,cm}
\pcline(R)(S)\naput{7\,cm}
\pcline(S)(P)\naput[nrot=:U]{1\,cm}
\end{pspicture}
\end{document} - Save file as rect-pstrick-1.tex.
- Run the Typeset command or similar other command with pdflatex -shell-escape <file-name>.tex.
- To see the output look at the picture below:
< Previous Draw Rectangle In Latex 1
to learn other Latex draw topics, click Study About Draw In Latex >>
Bibliography
https://tex.stackexchange.com/
https://tug.org/
https://waldenu.edu/ ( university )
Tidak ada komentar:
Posting Komentar