summaryrefslogtreecommitdiff
path: root/info/mathtrip/src/DrawMethod.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-10-02 03:04:14 +0000
committerNorbert Preining <norbert@preining.info>2022-10-02 03:04:14 +0000
commit097f244236b682cc77c6ecf25be4150091d8daf9 (patch)
tree26998e72d2b56a87033d9fb72923258fc93ebe53 /info/mathtrip/src/DrawMethod.sty
parent4043e29dc8ac56047ac45f872a2ea1f3031b6b05 (diff)
CTAN sync 202210020304
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