I was given the following code on Stack Exchange for drawing a triangle with one vertex at the origin and with two angles drawn from the positive x-axis. I am using WinEdt to compile it. It is giving me error messages that are unfamiliar to me.
"<"C:\Program Files/My Own Download\MiKTeX 2.7\tex\latex\amsfonts\umsa.fd">"
Is there a package that I have to put in the preamble? I would also like to label the legs of the triangle a, b, and c and to give the coordinates of the vertices as P = (\cos\phi, \sin\phi)
and Q = (\cos\theta, \sin\theta)
.
\documentclass{amsart}
\usepackage{}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{newlfont}
\usepackage{mathtools}
\usepackage{tikz}
\tikzset{
mydot/.style={
fill,
circle,
inner sep=1.5pt
}
}
\begin{document}
\begin{tikzpicture}[>=latex]
% the coordinates of the vertices
\coordinate (O) at (0,0);
\coordinate (A) at (2,1);
\coordinate (B) at (-3,5);
% the axis
\draw[help lines,->] (-3.5,0) -- (2.5,0);
\draw[help lines,->] (0,-0.5) -- (0,5.5);
% the edges of the triangle
\draw (O) -- (A) -- (B) -- cycle;
% labelling the vertices
\node[mydot,label={right:$A$}] at (A) {};
\node[mydot,label={left:$B$}] at (B) {};
\node[mydot,label={below:$O$}] at (O) {};
% the arcs for the angles
\begin{scope}[gray]
\draw[->]
(1,0) +(0:0.5cm) arc [radius=1cm,start angle=0,end angle=41] node[midway,right] {$\phi$};
\draw[->]
(0.5,0) +(0:0.25cm) arc [radius=0.75cm,start angle=0,end angle=122] node[midway,above] {$\theta$};
\end{scope}
\end{tikzpicture}
\end{document}
\usepackage{}
line.