twentysecond: fix indentation

This commit is contained in:
Bruno BELANYI 2019-12-31 21:06:56 +01:00
parent eb73d84106
commit c2e90c7764

View file

@ -59,18 +59,18 @@
% Define a new length to hold the width of the section title % Define a new length to hold the width of the section title
\newlength{\SectionTitleLength} \newlength{\SectionTitleLength}
\newcommand{\profilesection}[1]{ \newcommand{\profilesection}[1]{
% Set the total line width % Set the total line width
\setlength\TotalSectionLength{\linewidth} \setlength\TotalSectionLength{\linewidth}
% Calculate the width of the section title % Calculate the width of the section title
\settowidth{\SectionTitleLength}{\huge #1 } \settowidth{\SectionTitleLength}{\huge #1 }
% Subtract the section title width from the total width % Subtract the section title width from the total width
\addtolength\TotalSectionLength{-\SectionTitleLength} \addtolength\TotalSectionLength{-\SectionTitleLength}
% Modifier to remove overfull box warning % Modifier to remove overfull box warning
\addtolength\TotalSectionLength{-2.22221pt} \addtolength\TotalSectionLength{-2.22221pt}
% Whitespace before the section title % Whitespace before the section title
\vspace{8pt} \vspace{8pt}
% Print the title and auto-width rule % Print the title and auto-width rule
{\color{black!80} \huge #1 \rule[0.15\baselineskip]{\TotalSectionLength}{1pt}} {\color{black!80} \huge #1 \rule[0.15\baselineskip]{\TotalSectionLength}{1pt}}
} }
% Define custom commands for CV info % Define custom commands for CV info
@ -89,26 +89,26 @@
% Command for printing skill progress bars % Command for printing skill progress bars
\newcommand\skills[1]{ \newcommand\skills[1]{
\renewcommand{\skills}{ \renewcommand{\skills}{
\begin{tikzpicture} \begin{tikzpicture}
\foreach [count=\i] \x/\y in {#1}{ \foreach [count=\i] \x/\y in {#1}{
\draw[fill=maingray,maingray] (0,\i) rectangle (6,\i+0.4); \draw[fill=maingray,maingray] (0,\i) rectangle (6,\i+0.4);
\draw[fill=white,mainblue](0,\i) rectangle (\y,\i+0.4); \draw[fill=white,mainblue](0,\i) rectangle (\y,\i+0.4);
\node [above right] at (0,\i+0.4) {\x}; \node [above right] at (0,\i+0.4) {\x};
} }
\end{tikzpicture} \end{tikzpicture}
} }
} }
% Command for printing skills text % Command for printing skills text
\newcommand\skillstext[1]{ \newcommand\skillstext[1]{
\renewcommand{\skillstext}{ \renewcommand{\skillstext}{
\begin{flushleft} \begin{flushleft}
\foreach [count=\i] \x/\y in {#1}{ \foreach [count=\i] \x/\y in {#1}{
\x$ \star $\y \x$ \star $\y
} }
\end{flushleft} \end{flushleft}
} }
} }
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
@ -116,24 +116,24 @@
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
\newcommand{\makeprofile}{ \newcommand{\makeprofile}{
\begin{tikzpicture}[remember picture,overlay] \begin{tikzpicture}[remember picture,overlay]
\node [rectangle, fill=sidecolor, anchor=north, minimum width=9cm, minimum height=\paperheight+1cm] (box) at (-5cm,0.5cm){}; \node [rectangle, fill=sidecolor, anchor=north, minimum width=9cm, minimum height=\paperheight+1cm] (box) at (-5cm,0.5cm){};
\end{tikzpicture} \end{tikzpicture}
%------------------------------------------------
\begin{textblock}{6}(0.5, 0.2)
%------------------------------------------------ %------------------------------------------------
\begin{textblock}{6}(0.5, 0.2) \ifthenelse{\equal{\profilepic}{}}{}{
\begin{center}
%------------------------------------------------ \begin{tikzpicture}[x=\imagescale,y=-\imagescale]
\clip (600/2, 567/2) circle (567/2);
\ifthenelse{\equal{\profilepic}{}}{}{ \node[anchor=north west, inner sep=0pt, outer sep=0pt] at (0,0) {\includegraphics[width=\imagewidth]{\profilepic}};
\begin{center} \end{tikzpicture}
\begin{tikzpicture}[x=\imagescale,y=-\imagescale] \end{center}
\clip (600/2, 567/2) circle (567/2); }
\node[anchor=north west, inner sep=0pt, outer sep=0pt] at (0,0) {\includegraphics[width=\imagewidth]{\profilepic}};
\end{tikzpicture}
\end{center}
}
%------------------------------------------------ %------------------------------------------------
@ -147,34 +147,34 @@
\renewcommand{\arraystretch}{1.6} \renewcommand{\arraystretch}{1.6}
\begin{tabular}{p{0.5cm} @{\hskip 0.5cm}p{5cm}} \begin{tabular}{p{0.5cm} @{\hskip 0.5cm}p{5cm}}
\ifthenelse{\equal{\cvdate}{}}{}{\textsc{\Large\icon{\Info}} & \cvdate\\} \ifthenelse{\equal{\cvdate}{}}{}{\textsc{\Large\icon{\Info}} & \cvdate\\}
\ifthenelse{\equal{\cvaddress}{}}{}{\textsc{\Large\icon{\Letter}} & \cvaddress\\} \ifthenelse{\equal{\cvaddress}{}}{}{\textsc{\Large\icon{\Letter}} & \cvaddress\\}
\ifthenelse{\equal{\cvnumberphone}{}}{}{\textsc{\Large\icon{\Telefon}} & \cvnumberphone\\} \ifthenelse{\equal{\cvnumberphone}{}}{}{\textsc{\Large\icon{\Telefon}} & \cvnumberphone\\}
\ifthenelse{\equal{\cvsite}{}}{}{\textsc{\Large\icon{\Mundus}} & \href{\cvsite}{\cvsite}\\} \ifthenelse{\equal{\cvsite}{}}{}{\textsc{\Large\icon{\Mundus}} & \href{\cvsite}{\cvsite}\\}
\ifthenelse{\equal{\cvmail}{}}{}{\textsc{\large\icon{@}} & \href{mailto:\cvmail}{\cvmail}} \ifthenelse{\equal{\cvmail}{}}{}{\textsc{\large\icon{@}} & \href{mailto:\cvmail}{\cvmail}}
\end{tabular} \end{tabular}
%------------------------------------------------ %------------------------------------------------
\ifthenelse{\equal{\aboutme}{}}{}{ \ifthenelse{\equal{\aboutme}{}}{}{
\profilesection{About me} \profilesection{About me}
\begin{flushleft} \begin{flushleft}
\aboutme \aboutme
\end{flushleft} \end{flushleft}
} }
%------------------------------------------------ %------------------------------------------------
\profilesection{Skills} \profilesection{Skills}
\skills \skills
\skillstext \skillstext
\scriptsize \scriptsize
(*)[The skill scale is from 0 (Fundamental Awareness) to 6 (Expert).] (*)[The skill scale is from 0 (Fundamental Awareness) to 6 (Expert).]
%------------------------------------------------ %------------------------------------------------
\end{textblock} \end{textblock}
} }
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
@ -183,42 +183,42 @@
% Command to create the rounded boxes around the first three letters of section titles % Command to create the rounded boxes around the first three letters of section titles
\newcommand*\round[2]{% \newcommand*\round[2]{%
\tikz[baseline=(char.base)]\node[anchor=north west, draw,rectangle, rounded corners, inner sep=1.6pt, minimum size=5.5mm, text height=3.6mm, fill=#2,#2,text=white](char){#1};% \tikz[baseline=(char.base)]\node[anchor=north west, draw,rectangle, rounded corners, inner sep=1.6pt, minimum size=5.5mm, text height=3.6mm, fill=#2,#2,text=white](char){#1};%
} }
\newcounter{colorCounter} \newcounter{colorCounter}
\newcommand{\sectioncolor}[1]{% \newcommand{\sectioncolor}[1]{%
{% {%
\round{#1}{ \round{#1}{
\ifcase\value{colorCounter}% \ifcase\value{colorCounter}%
maingray\or% maingray\or%
mainblue\or% mainblue\or%
maingray\or% maingray\or%
mainblue\or% mainblue\or%
maingray\or% maingray\or%
mainblue\or% mainblue\or%
maingray\or% maingray\or%
mainblue\or% mainblue\or%
maingray\or% maingray\or%
mainblue\else% mainblue\else%
maingray\fi% maingray\fi%
}%
}% }%
\stepcounter{colorCounter}% }%
\stepcounter{colorCounter}%
} }
\renewcommand{\section}[1]{ \renewcommand{\section}[1]{
{% {%
\color{gray}% \color{gray}%
\Large\sectioncolor{#1}% \Large\sectioncolor{#1}%
} }
} }
\renewcommand{\subsection}[1]{ \renewcommand{\subsection}[1]{
\par\vspace{.5\parskip}{% \par\vspace{.5\parskip}{%
\large\color{gray} #1% \large\color{gray} #1%
} }
\par\vspace{.25\parskip}% \par\vspace{.25\parskip}%
} }
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
@ -229,21 +229,21 @@
% New environment for the long list % New environment for the long list
\newenvironment{twenty}{% \newenvironment{twenty}{%
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}ll} \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}ll}
}{% }{%
\end{tabular*} \end{tabular*}
} }
\newcommand{\twentyitem}[4]{% \newcommand{\twentyitem}[4]{%
#1&\parbox[t]{0.83\textwidth}{% #1&\parbox[t]{0.83\textwidth}{%
\textbf{#2}% \textbf{#2}%
\hfill% \hfill%
{\footnotesize#3}\\% {\footnotesize#3}\\%
#4\vspace{\parsep}% #4\vspace{\parsep}%
}\\ }\\
} }
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
% SMALL LIST ENVIRONMENT % SMALL LIST ENVIRONMENT
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
@ -252,15 +252,15 @@
% New environment for the small list % New environment for the small list
\newenvironment{twentyshort}{% \newenvironment{twentyshort}{%
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}ll} \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}ll}
}{% }{%
\end{tabular*} \end{tabular*}
} }
\newcommand{\twentyitemshort}[2]{% \newcommand{\twentyitemshort}[2]{%
#1&\parbox[t]{0.83\textwidth}{% #1&\parbox[t]{0.83\textwidth}{%
\textbf{#2}% \textbf{#2}%
}\\ }\\
} }
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
% MARGINS AND LINKS % MARGINS AND LINKS