Selasa, 08 Oktober 2024

Draw Rectangle In Latex 2

  1. Open the Latex editor.
  2. 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}
  3. Save file as rect-pstrick-1.tex.
  4. Run the Typeset command or similar other command with pdflatex -shell-escape <file-name>.tex.
  5. To see the output look at the picture below:



to learn other Latex draw topics, click Study About Draw In Latex >>

Bibliography

https://tex.stackexchange.com/
https://tug.org/
https://waldenu.edu/ ( university )

Related Post

Tidak ada komentar:

Posting Komentar

Various Other Posts