summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xDemoMode.sty17
-rwxr-xr-xcv.tex23
-rwxr-xr-xsection_perso.tex8
-rwxr-xr-xsection_perso_demo.tex8
4 files changed, 45 insertions, 11 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
+}
diff --git a/cv.tex b/cv.tex
index b881dde..9541c02 100755
--- a/cv.tex
+++ b/cv.tex
@@ -25,6 +25,7 @@
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour, linkcolor=linkcolour}
\usepackage{ResumeMacros}
+\usepackage{DemoMode}
%FONTS
\defaultfontfeatures{Mapping=tex-text}
@@ -58,14 +59,12 @@
%--------------------BEGIN DOCUMENT----------------------
\begin{document}
-\pagestyle{empty} % non-numbered pages
+\pagestyle{empty} % non-numbered pages
+\font\fb=''[cmr10]'' % for use with \LaTeX command
+\demofalse % Set Demo mode to true
-\font\fb=''[cmr10]'' %for use with \LaTeX command
-
-
-
-\input{perso}
+\conditionalinput{section_perso_demo}{section_perso} % Personal data section
%--------------------TITLE-------------
\par{
\bigskip\center{\Large Architecte logiciel | Développeur/Concepteur JEE}\par
@@ -75,13 +74,15 @@
%--------------------SECTIONS-----------------------------------
\input{headline}
-%\input{perso_section}
-\input{competences}
-\input{experience_compact}
-\input{langues}
+\input{competences} % Section compétence
+\input{experience_compact} % Section expérience
+\input{langues} % Section langues
\input{scolarite}
%\input{interets}
-\input{references}
+
+
+\conditionalinput{references_demo}{references} % Section références
+
\end{document} \ No newline at end of file
diff --git a/section_perso.tex b/section_perso.tex
new file mode 100755
index 0000000..6ae8f77
--- /dev/null
+++ b/section_perso.tex
@@ -0,0 +1,8 @@
+%Section: Personal Data
+\user{Christophe}{ROGER}\\
+\small{
+ \smartphone{+687 831 831} \quad|\quad \email{christophe.roger@gmail.com}{christophe.roger@gmail.com}\\
+ \linkedin{http://www.linkedin.com/in/christopheroger/fr}{http://www.linkedin.com/in/christopheroger/fr}\\
+ \address{2 Rue Henri Lafleur, 98835 Dumbéa, Nouvelle-Calédonie}\\
+ \infos{Né le 23 septembre 1982 (32 ans) à Nouméa, Nouvelle-Calédonie}
+}
diff --git a/section_perso_demo.tex b/section_perso_demo.tex
new file mode 100755
index 0000000..73339b6
--- /dev/null
+++ b/section_perso_demo.tex
@@ -0,0 +1,8 @@
+%Section: Personal Data
+\user{Christophe}{ROGER}\\
+\small{
+ \smartphone{+687 555 555} \quad|\quad \email{mail@dummymail.com}{mail@dummymail.com}\\
+ \linkedin{http://www.linkedin.com/in/christopheroger/fr}{http://www.linkedin.com/in/christopheroger/fr}\\
+ \address{2 Infinite Loop, 98800 Nouméa, Nouvelle-Calédonie}\\
+ \infos{Né le 1 janvier 1970 à Nouméa, Nouvelle-Calédonie}
+}