summaryrefslogtreecommitdiffstats
path: root/DemoMode.sty
diff options
context:
space:
mode:
Diffstat (limited to 'DemoMode.sty')
-rwxr-xr-xDemoMode.sty17
1 files changed, 17 insertions, 0 deletions
diff --git a/DemoMode.sty b/DemoMode.sty
new file mode 100755
index 0000000..7c10f0b
--- /dev/null
+++ b/DemoMode.sty
@@ -0,0 +1,17 @@
+\ProvidesPackage{DemoMode}[2015/08/19 v0.8 Demo mode]
+
+% define a condition
+\newif\ifdemo
+
+\demofalse
+% define demo as false
+
+% \myconditionfalse
+% define mycondition as false
+\newcommand\conditionalinput[2]{
+ \ifdemo
+ \input{#1}
+ \else
+ \input{#2}
+ \fi
+}