summaryrefslogtreecommitdiff
path: root/info/mathtrip/src/DrawMethod.sty
blob: fb6047954c7dfbcc5e657c2ba51ccdd36c521061 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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