[Tex/LaTex] Moderncv – Centering name and informations

horizontal alignmentmoderncv

I'm using moderncv to write my CV but right now, the name is in the top-left of the page, and the information (Age, address, email etc…) in the top-right.

Is that possible to align name and information in the top-middle of the page ? I'd like something like this:

  • Full name
  • Adress
  • Phone number
  • email

(Centred).

If you could explain me how to do it (I don't know how to use '\renewcommand').

Best Answer

At the time of writing, moderncv currently has 5 default themes (casual, classic, banking, oldstyle, and fancy).

Of these 5 default themes, banking is the only one that puts the title/header information in the top center of the page, like you want:

enter image description here

To use this theme, you just need to declare \moderncvstyle{banking} in your preamble.

The following MWE produces the document in the screen shot above:

\documentclass{moderncv}

\moderncvstyle{banking}

\usepackage[scale=0.75]{geometry}

\name{John}{Doe}
\title{Resumé title}
\address{street and number}{postcode city}{country}
\phone{+3~(456)~789~012}
\email{john@doe.org}

\begin{document}

\makecvtitle

\section{Education}
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}

\end{document}

While it is possible to customize moderncv, if you're not satisfied with banking, it might ultimately be easier to build your own template.