
I just started out with LaTeX and to be honest there are a lot of things i have to learn but since this document is due in a few days and i still have a lot to type i though i would ask for a solution here.
I am working on a project initiation document and somehow i managed to create a title page with tikz and some examples found on the internet. I can probably do it a lot better but that is not the point.
After finishing the title page i turned to headers. With the fancyhdr package and geometry packages i managed to create nice headers, however here is the problem that arises. The first page or second (i tried it with a barebone tex file) the margins that are supposed to press the text into the correct position are way off. Every page after that is perfectly fine.
Here is a small code example:
Code: Select all
\documentclass[pdftex, 11pt,a4paper] {article}\usepackage[top=0cm,bottom=50px,left=2cm,right=2cm,includeheadfoot,headsep=0cm]{geometry}\usepackage{xcolor}\usepackage{fancyhdr}\usepackage{tikz}\usepackage{graphicx}\usepackage{lipsum}% Header en footer layout\definecolor{customcolor}{RGB}{202,2,2}\renewcommand{\headrulewidth}{0pt}\lhead{\color{customcolor}\rule[0.8cm]{0.55\textwidth}{0.2pt}}\rhead{\begin{tikzpicture}\node[opacity=0.8]{%\includegraphics[scale=0.80]{./Images/header_logo.png}};%\end{tikzpicture}}% Footer\renewcommand{\footrulewidth}{0pt}\rfoot{foobar}\pagestyle{fancy}\begin{document}\newgeometry{margin=2cm,includefoot}\lipsum[1]\newpage\renewcommand{\contentsname}{Inhoud}\tableofcontents\section{Chapter 1}\end{document}
I have tried \vspace and \vspace* but that does not work for me.
I am probably doing something wrong here (and this might be a rookie mistake) but i would apriciate if any of you could help me out.