fix document already defined error

This commit is contained in:
David 2021-01-18 00:34:14 +01:00
commit f6de4053bd
2 changed files with 8 additions and 7 deletions

View file

@ -48,6 +48,7 @@
\RequirePackage{multirow}
% \RequirePackage{ifmtarg}
\NewDocumentCommand\legendFontSize{}{\scriptsize}
\DeclareDocumentCommand\starIndependentTabular{}{}%
\NewDocumentCommand\cvSkillMatrixLegend{s +O{.25em} +O{basic knowledge} +O{intermediate knowledge with experience in projects} +O{extensive experience in projects} +O{deep expert knowledge} +O{expert/guru} +m}{%
% check whether Argument #8 is given and if so provide it as cvitem
\def\legendString{#8}%
@ -57,7 +58,7 @@
\if@aftersection\else%
\vspace*{-\separatorrulewidth}\fi% HACK; I don't understand where the space is coming from, nor what it's exact value is :(
\noindent%
\NewDocumentCommand\starIndependentTabular{}{%
\RenewDocumentCommand{\starIndependentTabular}{}{%
\begin{tabular}[t]{@{}p{\hintscolumnwidth}%\skilllegendhintscolumnwidth
@{\hspace{\separatorcolumnwidth}}|@{\hspace{\separatorcolumnwidth}}
p{\cvskillwidth}@{}
@ -73,10 +74,10 @@
}%
% because of this weird style and the position of the parameter [#2], the dashed lines of the other version look bad. So no lines.
\IfBooleanTF#1%
{% if a star is given, do the same as if no star is given
{%
\starIndependentTabular%
}
{% if no star is given, do not add dashed line
{%
\starIndependentTabular%
}
}%

View file

@ -111,7 +111,7 @@ Detailed achievements:%
\section{Computer skills}
% % Add a legend if you are usng \cvSkill{<1-5>} commant
\cvSkillMatrixLegend*[1em]{Legend:} %Optional add a Legend descriptor or a star for dashed lines.
\cvSkillMatrixLegend*[1em]{Legend} %Optional add a Legend descriptor or a star for dashed lines.
% \cvSkillMatrixLegend*{Legend}
\cvdoubleitem{Languages}{\cvSkill{1}, Bash, 2 years}{category 4}{XXX, YYY, ZZZ}
\cvdoubleitem{category 2}{XXX, YYY, ZZZ}{category 5}{XXX, YYY, ZZZ}
@ -128,17 +128,17 @@ Detailed achievements:%
\cvSkillMatrixEntry*{}{3}{\LaTeX}{14}{Clearly I rock at \LaTeX}
% OS
% notice the use of the starred command and the optional
\cvSkillMatrixEntry*[1.5em]{OS:}{3}{Linux}{2}{Best OS in the world}
\cvSkillMatrixEntry*[1.5em]{OS:}{3}{Linux}{2}{I only use Archlinux}
%
\cvitem{Skillmatrix in another language}{German example and dropping some dashed lines (exept fancy style)}
% %% German version
% % adjust the legend entries for other languages like so. The first entry is a post padding
\cvSkillMatrixLegend*[0.2em][Grundkenntnisse][Grundkenntnisse und eigene Er\-fahr\-ung in Projekten][Umfangreiche Erfahrung in Projekten][Vertiefte Expertenkenntnisse][Experte/Guru]{}
\cvSkillMatrixLegend*[0.2em][Grundkenntnisse][Grundkenntnisse und eigene Erfahrung in Projekten][Umfangreiche Erfahrung in Projekten][Vertiefte Expertenkenntnisse][Experte/Guru]{Legend}
% % Similarly adjust the head of the matrix for descriptiors in other languages
\cvSkillMatrixHead[-0.0em][Level][Fähigkeit][Jahre][Bemerkung]
%
% % The matrix itself
\cvSkillMatrixEntry{OS:}{3}{Linux}{2}{Best OS in the world}
\cvSkillMatrixEntry{OS:}{3}{Linux}{2}{Blub blub}
\section{Interests}
\cvitem{hobby 1}{Description}