summaryrefslogtreecommitdiffstats
path: root/DemoMode.sty
diff options
context:
space:
mode:
authorChristophe Roger <darwiinc@live.fr>2015-08-19 14:37:18 +1100
committerChristophe Roger <darwiinc@live.fr>2015-08-19 14:37:18 +1100
commitc1c10eb4e712535c5a99dd6cb1668abe3d0bbe59 (patch)
treed11313c9ca050252830d8f7af51174d576ef2893 /DemoMode.sty
parente06c2b9fa9cee3cd87b518ee7122bdedcc83e7fb (diff)
downloadcv-c1c10eb4e712535c5a99dd6cb1668abe3d0bbe59.tar.gz
cv-c1c10eb4e712535c5a99dd6cb1668abe3d0bbe59.tar.bz2
cv-c1c10eb4e712535c5a99dd6cb1668abe3d0bbe59.tar.xz
cv-c1c10eb4e712535c5a99dd6cb1668abe3d0bbe59.zip
- Added new macro for conditional include
- New dummy file for Personal Data Section
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
+}