Graphics, Figures & TablesEquilateral triangles

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

Equilateral triangles

Post by coachbennett1981 »

I am trying to draw an equilateral triangle without much success. I am able to draw right triangles based on \specialcoor feature, but this is for right triangles. Does anyone have any suggestions?

Code: Select all

\documentclass[12pt]{exam}
\usepackage{geometry}             
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{multicol}
\usepackage{amsmath}
\usepackage{subfigure}
\usepackage{epstopdf}
\usepackage{pstricks}
\usepackage{pst-coil}
\usepackage{color}
\usepackage{pst-plot}
\usepackage{pst-func}
\usepackage{pstricks-add}
\listfiles
\begin{document}

\begin{pspicture}(0,-3)(5,3)
\SpecialCoor
\pspolygon(0,0)(3;60)(3;60|3,0)
\end{pspicture}

\end{document}
Last edited by coachbennett1981 on Wed Jun 23, 2010 8:18 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

shadgrind
Posts: 140
Joined: Thu Jul 16, 2009 12:39 am

Equilateral triangles

Post by shadgrind »

It's simple to do with TikZ:

Code: Select all

\documentclass[12pt]{exam}
\usepackage{xcolor}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
 \draw [blue,line width=1.5pt] (0,0) -- (60:3) -- (3,0) -- cycle;
\end{tikzpicture}
\end{document}
System: TeX Live 2012, Fedora 18 x86_64, GNU Emacs 24.2
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Equilateral triangles

Post by localghost »

Either \PstTriangle from the pst-poly package or simply in polar coordinates.

Code: Select all

\documentclass{minimal}
\usepackage{pstricks-add}

\begin{document}
  \pspolygon(2;90)(2;210)(2;330)
\end{document}

Best regards
Thorsten
coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

Re: Equilateral triangles

Post by coachbennett1981 »

Thank you for your suggestions, I appreciate it.

Nick
Post Reply