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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So, I was doing something like this:

\cfoot{\color{color2}\itshape John~~Doe}

to get my name centered on bottom of each page. Now I'd like to have it in one line with page number. Now it looks like that:

John Doe

And I'd like to look it like this:

John Doe         PAGE/PAGE

My name, and numbered page in one line. With \lfoot or \cfoot I can't achieve that.

Also, how to start page numbering from page 2? \setcounter{page}{2} does not works. Thanks in advance.

Minimal working example (\newpage's were added ONLY to force page numbers - I don't use them in original document!):


\address{street}{postcode city}
\extrainfo{additional info}

\cfoot{\color{color2}\itshape John~~Doe}



\subsection{My work}
\cvcomputer{One}{Bla, Bla, Bla}{Two}{Bla,Bla,Bla}


\section{Foreign Languages}
\cvitemwithcomment{English}{Fluent}{Some description here}


\section{Other Skills}
\cvitemwithcomment{Computers}{Very good}{Some description here}

share|improve this question
up vote 9 down vote accepted

It seems to be a bug of moderncv. moderncv puts the page number in a \parbox but doesn't justify them vertical. So you can use the following redefinition:

            \fancyfoot[r]{\parbox[t]{\pagenumberwidth}{\color{color2}\addressfont\itshape\strut\thepage/\pageref{lastpage}}}}% the parbox is required to ensure alignment with a possible center footer (e.g., as in the casual style)

enter image description here

share|improve this answer
Thanks. This worked like a charm. And how to force moderncv to start counting pages from page 2? I think I could e-mail author of moderncv to fix this bug, of course by pointing him to your message. – Teddy Apr 20 '12 at 21:30
@Teddy: Try at the first page \thispagestyle{empty}. It removes all headers and footers. If you want to suppress only the page numbering you have to set \fancyfoot. – Marco Daniel Apr 20 '12 at 21:41
Bingo! Perfect. :) \thispagestyle{empty} was what I needed. – Teddy Apr 20 '12 at 21:47
I've e-mailed autor of moderncv about this. It seems that we still have no official fix for this. I'd be very happy if I could remove above code suggested by Marco from my .tex document. – Teddy Jul 20 '12 at 22:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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