# Page numbering at top of page [duplicate]

Possible Duplicate:
How to customize headers and footers?

How would I put my name and the page on my CV just like the image below? I would like to do it like the image below from the 2nd page onwards. i.e. From page 2 onwards, it would say my name and the page number.

Also, how would I get rid of the page numbering at the bottom of each page in my cv (see my latex code below).

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

\title{\bfseries\Huge John Doe}
\author{}
\date{}

\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}
\maketitle
\vspace{1em}
\begin{minipage}[ht]{0.48\textwidth}
\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{20pt}

\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*{Employment}
\begin{tabular}{L!{\VRule}R}
&\begin{itemize}
\item Add my job description here.
\end{itemize}
\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}

-

## marked as duplicate by yo', percusse, Martin Schröder, Marco Daniel, Tom BombadilAug 24 '12 at 2:59

You can load the scrpage2-package from the koma-script-bundle. \maketitle has hard coded a \thispagestyle{plain}, Which gives you page number centred at bottom. To get rid of the page number at page one, place \thispagestyle{empty} after the \maketitle-command.

scrpage2 is documented at page 196 in the English manual (chapter 5).

And MWE:

\documentclass[10pt]{article}
\usepackage{array, xcolor, lipsum, bibentry}
\usepackage[margin=3cm]{geometry}
\usepackage{scrbase,scrpage2}
\pagestyle{scrheadings} % pagestyle with page number

\title{\bfseries\Huge John Doe}
\author{}
\date{}

\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}
\maketitle
\thispagestyle{empty} % place this after \maketitle
\vspace{1em}
\begin{minipage}[ht]{0.48\textwidth}
\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{20pt}

\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*{Employment}
\begin{tabular}{L!{\VRule}R}
\item Add my job description here.
\end{itemize}
\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}

\newpage

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

\end{document}

-
Thanks! It looks good, may I ask, how would I include my name of the top left? – Gary Aug 8 '12 at 16:17
@Gary Try \lohead{My Name} after \pagestyle{scrheadings}. – Torbjørn T. Aug 8 '12 at 16:35
Thanks, perfect :) – Gary Aug 8 '12 at 16:39

have a look at the fancyhdr package. there you can define your headings as you want.

try this:

\documentclass[a4paper,10pt]{article}

\usepackage{blindtext}
\usepackage{fancyhdr}

\pagestyle{fancy}
\rhead{\thepage} % set the page number to the haed line
%clean the foot line
\lfoot{}
\cfoot{}
\rfoot{}

\begin{document}
\blindtext
\newpage
\blindtext
\newpage
\end{document}

-
Thanks, trying to work with fancyhdr now, might post up another question. – Gary Aug 8 '12 at 16:17
@susisstrolch Generally, an answer pointing out that the question has been answered elsewhere is not an acceptable answer. I know that you don't have enough reputation to flag a question as a duplicate, however, you can always post a link to the other question/answer in a comment to this question. Because the goal of the site is to be as clear as possible and cross-links like this one are non-systematic. – yo' Aug 8 '12 at 16:25