Simplify header command

This commit is contained in:
Timvde
2018-06-13 23:46:41 +02:00
parent a362635963
commit 6c3213e674
2 changed files with 4 additions and 5 deletions

3
cv.tex
View File

@@ -4,8 +4,7 @@
\usepackage[normalem]{ulem} \usepackage[normalem]{ulem}
\begin{document} \begin{document}
{\Large \header{\huge Tim }{\huge Van den Eynde} \header{Tim Van den Eynde}{Computer Scientist / Software Developer}
{Computer Scientist / Software Developer}}
\begin{aside} \begin{aside}

View File

@@ -32,16 +32,16 @@
\RequirePackage{tikz} \RequirePackage{tikz}
\newcommand{\header}[3]{% \newcommand{\header}[2]{%
\begin{tikzpicture}[remember picture,overlay] \begin{tikzpicture}[remember picture,overlay]
\node [rectangle, fill=fillheader, anchor=north, minimum width=\paperwidth, minimum height=4cm] (box) at (current page.north){}; \node [rectangle, fill=fillheader, anchor=north, minimum width=\paperwidth, minimum height=4cm] (box) at (current page.north){};
\node [anchor=center] (name) at (box) {% \node [anchor=center] (name) at (box) {%
\fontsize{40pt}{72pt}\color{header}% \fontsize{40pt}{72pt}\color{header}%
{#1}{#2} {\huge #1}
}; };
\node [anchor=north] at (name.south) {% \node [anchor=north] at (name.south) {%
\fontsize{14pt}{24pt}\color{header}% \fontsize{14pt}{24pt}\color{header}%
#3% {\Large #2}%
}; };
\end{tikzpicture} \end{tikzpicture}
\vspace{2.5cm} \vspace{2.5cm}