Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
How to remove the top horizontal bar in fancyhdr?

How would I get rid of the line in the header, and the line and page numbering in the footer?

My code is below.

enter image description here

\documentclass[10pt]{article}
\usepackage{array, xcolor, lipsum, bibentry,fancyhdr}
\usepackage[margin=3cm]{geometry}


\pagestyle{fancy}
\lhead{My Name}
\chead{}
\rhead{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}



\definecolor{lightgray}{gray}{0.8}
\newcolumntype{L}{>{\raggedleft}p{0.14\textwidth}}
\newcolumntype{R}{p{0.8\textwidth}}
\newcommand\VRule{\color{lightgray}\vrule width 0.5pt}


\begin{document}
\thispagestyle{empty}
\begin{center}\bfseries\Huge John Doe \end{center}
\vspace{1em}
\begin{minipage}[ht]{0.70\textwidth}
Address Line 1\\
Address Line 2\\
Address Line 3\\
Address Line 4\\
Address Line 5
\end{minipage}
\begin{minipage}[ht]{0.48\textwidth}
Mobile: 123-456789\\
Email: myemail@gmail.com\\
Date of Birth: 01/01/2012\\
Citizenship: My citizenship
\end{minipage}
\vspace{2pt}

\section*{Education}
\begin{tabular}{L!{\VRule}R}
2008--2012&MSc in Computer Science, Great University, Country.\vspace{5pt}\\
2006--2008&BSc in Life Science, Great University, Country.\\
\end{tabular}

\section*{Professional Experience}
\begin{tabular}{L!{\VRule}R}
2011--today&{\bf Work at company XY.}Head of Department. Add my job description here. Add my job description here. Add my job description here. Add my job description here.\\
&\begin{itemize}
\item Add my job description here.
\item Add my job description here.Add my job description here.Add my job description here.
\item Add my job description here.Add my job description here.Add my job description here.Add my job description here.
\item Add my job description here.Add my job description here.Add my job description here.Add my job description here.Add my job description here.Add my job description here.Add my job description here.Add my job description here.Add my job description here.
\end{itemize} \vspace{5pt}\\
2008--2010&{\bf Trainee at company ZY.}\\
&\lipsum[66]\\
\end{tabular}

\section*{Awards and Achievements}
\begin{tabular}{L!{\VRule}R}
2008&Gold medal.\vspace{5pt}\\
2006&Silver medal.\\
\end{tabular}

\section*{Organisational Experience}
\begin{tabular}{L!{\VRule}R}
2008&This event.\vspace{5pt}\\
\end{tabular}


\section*{Languages}
English, Spanish, French, German


\end{document} 
share|improve this question

marked as duplicate by lockstep, tohecz, Marco Daniel, Paulo Cereda, percusse Aug 8 '12 at 17:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3  
Please have a look at the fancyhdr maual and at the various questions tagged with fancyhdr, e.g., tex.stackexchange.com/questions/13896/… –  lockstep Aug 8 '12 at 16:39
add comment

1 Answer 1

up vote 3 down vote accepted

From your MWE just few changes:

\pagestyle{fancy}
\lhead{My Name}
\chead{}
\rhead{\thepage}
\cfoot{} % get rid of the page number 
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

By setting the \headrulewidth and \footrulewidth to 0pt you can remove them as described in the documentation of the package fancyhdr.

share|improve this answer
    
Thanks! Works perfectly. Sorry, might have missed out reading that part in the documention. –  Gary Aug 8 '12 at 16:42
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.