Missing number, treated as zero.
<to be read again>
p
l. ...eaderbox{tobias}{hagge}{CRM Data Analyst}
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
Code: Select all
\RequirePackage{tikz}
\newcommand{\headerbox}[3]{%
\begin{tikzpicture}[remember picture,overlay]
% node[<options>](<name>){<text>}
% simple shape with text on it
% [1] creates rectangle 4cm high (grey) box at top of page
\node [rectangle,
fill={grey},
anchor=north,
minimum width=\paperwidth,
minimum height=4cm]
(box) at (current page.north){};
% [2] text {firstname}{lastname} in center of box
\node [anchor=center]
(name) at (box) {%
\fontsize{40pt}{}\selectfont
\color{white}%
{\latofont #1}{#2}
};
% [3] text under textbox[2] {job title}
\node [anchor=north]
(name) at (name.south) {%
\fontsize{16pt}{}\selectfont
\latofont
\color{white}%
{#3}%
};
\end{tikzpicture}
\vspace{2.5cm} % vertical blank (white) space after [3]
\vspace{-2\parskip}
}
\begin{document}
\headerbox{first}{last}{Job Title}
\end{document}