From d43d49d8ea456f6ec0dfc6dd9a5320fcafab480c Mon Sep 17 00:00:00 2001 From: Kaspar Johannes Schneider Date: Sun, 11 Apr 2021 21:04:28 +0200 Subject: [PATCH] changed language handling to option --- Twenty-Seconds-Icons_cv.pdf | Bin 111388 -> 111388 bytes Twenty-Seconds-Icons_cv.tex | 8 +------- twentysecondcv.cls | 31 ++++++++++++++++++++++--------- 3 files changed, 23 insertions(+), 16 deletions(-) diff --git a/Twenty-Seconds-Icons_cv.pdf b/Twenty-Seconds-Icons_cv.pdf index 997604f8a41957cd75df505933e7a9d2b9102e84..80825c1f396e27f33705eb4f1c8c4c3264188dfd 100644 GIT binary patch delta 131 zcmbR9jBU;{wuUW?>(*)*8W@>aXd4)*8yKi-a_Rf#r?@1Rq$+5*SQ!}@85)=v8Ujh6 zlI_>lGCpH*HZU(*)*7#SECYa1A;8yKi-a_Rf#r?@1Rq$+5*SQ!}@85)=v8Uksc zlI_>lGCpH*HnlVWikKT%I60eJxEVN`o0z(~xR_g-89SOgTUc7!DcBHFGX4K1Mp*!b C93v|L diff --git a/Twenty-Seconds-Icons_cv.tex b/Twenty-Seconds-Icons_cv.tex index 3486d7b..301540e 100644 --- a/Twenty-Seconds-Icons_cv.tex +++ b/Twenty-Seconds-Icons_cv.tex @@ -10,13 +10,7 @@ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\documentclass[icon]{twentysecondcv} -%%%%%%%%%%%%%%% -%% Languages %% -%%%%%%%%%%%%%%% -% set language either by \entrue or \detrue -\entrue - +\documentclass[icon, en]{twentysecondcv} \begin{document} %%%%%%%%%%%%%%%%%%%%%% diff --git a/twentysecondcv.cls b/twentysecondcv.cls index 1652520..40260e5 100644 --- a/twentysecondcv.cls +++ b/twentysecondcv.cls @@ -34,14 +34,36 @@ \RequirePackage{parskip} \RequirePackage{hyperref} + %%%%%%%%%%% % OPTIONS % %%%%%%%%%%% +% languages +% english +\newif\ifen +\entrue +\DeclareOption{en}{% + \defalse + \entrue +} +\newcommand{\en}[1]{\ifen#1\fi} + +% german +\newif\ifde +\defalse +\DeclareOption{de}{% + \enfalse + \detrue +} +\newcommand{\de}[1]{\ifde#1\fi} + % icons \newbool{icon} \DeclareOption{icon}{% \booltrue{icon} } + +% don't add the about me section to the document \newbool{no_aboutme} \DeclareOption{no_aboutme}{% \booltrue{no_aboutme} @@ -55,15 +77,6 @@ \usetikzlibrary{calc} -%%%%%%%%%%%%%%% -%% Languages %% -%%%%%%%%%%%%%%% -\newif\ifen -\newif\ifde - -\newcommand{\en}[1]{\ifen#1\fi} -\newcommand{\de}[1]{\ifde#1\fi} - %%%%%%%%%% % colors % %%%%%%%%%%