Skip to content

Commit

Permalink
changed language handling to option
Browse files Browse the repository at this point in the history
  • Loading branch information
KasparJohannesSchneider committed Apr 11, 2021
1 parent 32f25d9 commit d43d49d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
Binary file modified Twenty-Seconds-Icons_cv.pdf
Binary file not shown.
8 changes: 1 addition & 7 deletions Twenty-Seconds-Icons_cv.tex
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass[icon]{twentysecondcv}
%%%%%%%%%%%%%%%
%% Languages %%
%%%%%%%%%%%%%%%
% set language either by \entrue or \detrue
\entrue

\documentclass[icon, en]{twentysecondcv}
\begin{document}

%%%%%%%%%%%%%%%%%%%%%%
Expand Down
31 changes: 22 additions & 9 deletions twentysecondcv.cls
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -55,15 +77,6 @@

\usetikzlibrary{calc}

%%%%%%%%%%%%%%%
%% Languages %%
%%%%%%%%%%%%%%%
\newif\ifen
\newif\ifde

\newcommand{\en}[1]{\ifen#1\fi}
\newcommand{\de}[1]{\ifde#1\fi}

%%%%%%%%%%
% colors %
%%%%%%%%%%
Expand Down

0 comments on commit d43d49d

Please sign in to comment.