%        File: wa10_triangles.tex
%     Created: Mon Jan  3 07:47:12 2011 C
% Last Change: Mon Jan  3 08:13:37 2011 C
%
\documentclass[letterpaper]{article}

\input{exam_preamble}
\usepackage{luatextra}
\usepackage{luamplib}

\numVersions{2}\forVersion{A}
\examNum{1}
\longTitleText
{Parts of a Right Triangle}
{}
\endlongTitleText
\shortTitleText
{PRT}
{}
\endshortTitleText

\title[\sExam]{\Exam}
\subject[WA10]{Work \& Appr. Math 10}

\begin{luacode}
	dofile("rightTriangle.lua");
\end{luacode}

\def\rightTriangle#1#2#3{%
	\directlua{%
	beginMPcode();%
	mpMarkRightAngle();%
	mpSetScale();%
	mpDrawTriangle();%
	mpLabelTriangle("#1","#2","#3");%
	endMPcode();%
	}%
}

\begin{document}

\maketitle

\begin{exam}{Exam}

	\begin{instructions}
		Read the instructions to each question carefully and complete to the best of your ability. Show all of your work; you may receive partial credit for your work. If you have a question, raise your hand and I will come around to address your question.
	\end{instructions}
	  
	\begin{problem*}[2ea]
		Identify the sides of the triangle relative to the labelled angle.
		\begin{parts}
		\item \rightTriangle{P}{I}{G}
		\item \rightTriangle{I}{A}{N}
		\item \rightTriangle{S}{K}{Y}
		\item \rightTriangle{R}{A}{P}
		\item \rightTriangle{S}{A}{W}
		\item \rightTriangle{P}{E}{N}
		\end{parts}
	\end{problem*}

\end{exam}

\end{document}


