summaryrefslogtreecommitdiff
path: root/info/mathtrip/src/unit.sty
diff options
context:
space:
mode:
Diffstat (limited to 'info/mathtrip/src/unit.sty')
-rw-r--r--info/mathtrip/src/unit.sty53
1 files changed, 53 insertions, 0 deletions
diff --git a/info/mathtrip/src/unit.sty b/info/mathtrip/src/unit.sty
new file mode 100644
index 0000000000..1ec8618dbd
--- /dev/null
+++ b/info/mathtrip/src/unit.sty
@@ -0,0 +1,53 @@
+%This package is used to draw the figure of of the trigonometric circle
+%in page 4
+%
+%It accept 3 options (pstricks,tikz and inclusion) to determine how
+%the drawing should be done.
+
+\RequirePackage{DrawMethod}
+
+%These two boxes are used to keep drawings made in TiKz environments.
+%It is generally easier to position precisely a box as to position
+%directly the environment.
+%Environment at page 4
+\newsavebox\UnitBox
+\newsavebox\TriangleBox
+
+%Box and length used in page 4.
+%Width and height of the triangle
+\newlength{\pythagwidth}
+\newlength{\pythagheight}
+%Length of the mark for the right angle
+\newlength{\ranglesize}
+%Length of the trigonometric half axes (from 0 to x)
+\newlength{\axissize}
+%Radius of the angle mark in trigonometric circle
+\newlength{\RadiusTheta}
+%Center in X and Y of the trigonometric circle
+\newlength{\TrigoX}
+\newlength{\TrigoY}
+%
+\newlength{\trianglebase}
+%and its height
+\newlength{\triangleheight}
+%Length of the mark for the right angle
+\newlength{\ranglesizeB}
+%Value (in degrees) of the theta angle shown in the trigonometric
+%circle (in page 4) and in the three point angle in page 5.
+\providecommand\ThetaAngle{35}
+
+\ifcase\DrawMethod
+ %TikZ
+ \setlength{\pythagwidth}{3cm}
+ \setlength{\pythagheight}{2cm}
+ \setlength{\axissize}{1.8cm}
+ \setlength{\ranglesize}{0.3cm}
+ \setlength{\RadiusTheta}{1.5\ranglesize}
+ \setlength{\TrigoX}{1.6\pythagwidth}
+ \setlength{\TrigoY}{0.5\pythagheight}
+\or
+ %Inclusion
+ \relax
+\else
+ \relax
+\fi