Jumat, 15 November 2024

Draw Equilateral Triangle In Latex

  1. Type this following latex code in the latex editor:
    % !TEX TS-program=pdflatex
    % !TEX unicode=UTF-8 Unicode
    \documentclass[border=5mm]{standalone}
    \usepackage{tgbonum}
    \usepackage{tikz}
    \usetikzlibrary{shapes.geometric}

    \tikzset{
    equilateralTriangle/.style={
    draw,
    shape border rotate=0,
    regular polygon,
    regular polygon sides=3,
    fill=white!20,
    node distance=2cm,
    minimum height=4em,
    thick
    }
    }

    \begin{document}
    \begin{tikzpicture}
    \node[equilateralTriangle]{\textbf{Equilateral Triangle}};
    \end{tikzpicture}
    \end{document}
  2. Save file as triangleEquilateral1.tex
  3. Then build or typeset the Latex code.

Output

equilateral triangle in latex

Related Post

Tidak ada komentar:

Posting Komentar

Various Other Posts