summaryrefslogtreecommitdiff
path: root/info/mathtrip/src/DrawMethod.sty
diff options
context:
space:
mode:
Diffstat (limited to 'info/mathtrip/src/DrawMethod.sty')
-rw-r--r--info/mathtrip/src/DrawMethod.sty27
1 files changed, 27 insertions, 0 deletions
diff --git a/info/mathtrip/src/DrawMethod.sty b/info/mathtrip/src/DrawMethod.sty
new file mode 100644
index 0000000000..fb6047954c
--- /dev/null
+++ b/info/mathtrip/src/DrawMethod.sty
@@ -0,0 +1,27 @@
+%This package contains some code to determine the tools to be used to draw
+%some geometrical figure.
+%
+%It accept one option whose value is:
+% tikz to draw with the TikZ package (this is the default value)
+% inclusion to include an external file.
+
+
+%Declare few constants to choose what will be used to typeset the figure
+\chardef\TIKZ=0
+\chardef\INCLUSION=1 %When an external image is simply included
+
+\chardef\DrawMethod=\TIKZ
+\DeclareOption{tikz}{\chardef\DrawMethod\TIKZ}
+\DeclareOption{inclusion}{\chardef\DrawMethod\INCLUSION}
+\ProcessOptions
+
+\ifcase\DrawMethod
+ %TikZ
+ \RequirePackage{tikz}
+ \usetikzlibrary{arrows,decorations.markings}
+\or
+ %Inclusion
+ \RequirePackage{graphicx}
+\else
+ \RequirePackage{graphicx}
+\fi