- 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} - Save file as triangleEquilateral1.tex
- Then build or typeset the Latex code.
Output
<< back to Study About Draw In Latex 2
Tidak ada komentar:
Posting Komentar