summaryrefslogtreecommitdiff
path: root/info/mathtrip/src/angle.tex
diff options
context:
space:
mode:
Diffstat (limited to 'info/mathtrip/src/angle.tex')
-rw-r--r--info/mathtrip/src/angle.tex65
1 files changed, 65 insertions, 0 deletions
diff --git a/info/mathtrip/src/angle.tex b/info/mathtrip/src/angle.tex
new file mode 100644
index 0000000000..73ab45a61c
--- /dev/null
+++ b/info/mathtrip/src/angle.tex
@@ -0,0 +1,65 @@
+%This document can be run standalone if few comments
+%are removed (or added). This is useful to check and modify the drawing.
+%
+%
+%The document accept one parameter whose value is "pstricks", "tikz", "inclusion"
+%to define if the drawing is made with ps-tricks, tikz or simply
+%by the inclusion of an external file.
+%\documentclass[tikz]{article}
+
+%\usepackage{angle}
+
+%\chardef\DrawMethod=0\relax
+%\begin{document}
+\ifcase\DrawMethod
+ %TikZ
+ \setlength{\anglebase}{2.5cm}
+ \setlength{\angleside}{2.5cm}
+ \setlength{\PointRadius}{2pt}
+
+ \savebox\AngleBox{%
+ \begin{tikzpicture}
+ %Coordinates of the angle
+ \coordinate (O) at (0,0);
+ \coordinate (B) at (\anglebase,0);
+ \coordinate (C) at (2.0479,1.4339); %2.5*cos(35),2.5*sin(35)
+ %Position do place the letter Theta for marking the angle
+ \coordinate (Theta) at (.4296cm,.2cm);
+ %Position where to place the label "l_2"
+ \coordinate (L2Label) at (1.1cm,0.58cm);
+ %Position of the centre of the circle indicating point x1,y1 and y2,y2
+ \coordinate (XOne) at (\anglebase+\PointRadius,0);
+ \coordinate (XTwo) at (\anglebase+\PointRadius,0);
+ %
+ %Draw the base of the angle
+ \draw [thick] (O) -- (B) node[midway,below] {$\ell_1$};
+ %Draw the angle
+ \draw [thick] (O) -- (\ThetaAngle:\angleside);
+
+ %Draw the small circle at the end of the angle to mark the point X1,y1 and x2,y2
+ \draw (O) node{$\circ$};
+ \draw (B) node{$\circ$};
+ \draw (C) node{$\circ$};
+
+ %Draw the angle mark
+ \draw (.20\anglebase,0) arc(0:\ThetaAngle:.20\anglebase);
+ %Put the letter for the angle and the 3 points of the angle.
+ \draw (Theta) node[right]{$\theta$};
+ \draw (O) node[below,left]{$(0,0)$};
+ \draw (B) node[below,right]{$(x_1,y_1)$};
+ \draw (C) node[below,right]{$(x_2,y_2)$};
+ \draw (L2Label) node[below,right] {$\ell_2$};
+ \end{tikzpicture}
+ }
+\or
+ %Inclusion
+ \relax
+\else
+ \relax
+\fi
+
+%Finally, the draw is typeset
+%\begin{center}
+% \usebox\AngleBox
+%\end{center}
+%\end{document}