TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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

I have a question concerning my CV.

The following is my header:






  % recompute lengths (in case we are switching from letter to resume, or vice versa)
  % optional detailed information box
      \ifthenelse{\equal{\@addresscity}{}}{}{\makenewline\@addresscity}}% if \addresstreet is defined, \addresscity will always be defined but could be empty
  % optional picture box
  % name and title
  \ifthenelse{\lengthtest{\makecvtitlenamewidth=0pt}}% check for dummy value (equivalent to \ifdim\makecvtitlenamewidth=0pt)
    \namestyle{\@firstname\ \@familyname}%
  % detailed information
  \llap{\usebox{\makecvtitledetailsbox}}% \llap is used to suppress the width of the box, allowing overlap if the value of makecvtitlenamewidth is forced
  {\par\color{color2!50}\rule{\textwidth}{.25ex}\par}% <----- ADDED RULE
  % optional photo
  % optional quote
  \par}% to avoid weird spacing bug at the first section if no blank line is left after \makecvtitle

\title{\textcolor{red}{\textsc{Curriculum Vit\ae}}}            

\quote{\hbox to 0pt{\hss  here comes the quote \hss}
\vspace{-2mm}\begin{flushright} -author-\end{flushright}} 




Now I have a nice header with a line dividing my personal data and the quote. So good so far.

But if I include a picture, this picture is included beneath the line, above the quote. This is not that pretty.

So: Can somebody help me with that? Maybe to rearrange the page, such that the quote is leftbounded, and to its right is the picture? I think that would look pretty.

Otherwise I think the picture would look good in the headline next to my personal data, but ABOVE the line!

I appreciate if someone helps, first layout with quote on the left and picture on the right would be much nicer!

share|improve this question
up vote 6 down vote accepted

All you need to do is move the line you added,

\par\color{color2!50}\rule{\textwidth}{.25ex}\par}% <----- ADDED RULE

right after the line that outputs the picture, i.e.

% optional photo
{\par\color{color2!50}\rule{\textwidth}{.25ex}\par}% <----- ADDED RULE

This will yield the following output, which is what I understand you are looking for:

raw output

You might then probably want to addjust the spacing, to reduce the space between the picture and the rule, and to increase the space between the rule and the quote. The following code, for example,

% optional photo
{\par\color{color2!50}\rule{\textwidth}{.25ex}\par\addvspace{1.5em}}% <----- ADDED RULE

would yield

improved output

Finally, note that in your code \usepackage[T1]{fontenc}, \usepackage{lmodern} and \AtBeginDocument{\recomputelengths} are unnecessary. moderncv already takes care of these.

share|improve this answer
Thanks, works perfectly! – Martin Oct 30 '12 at 16:29

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.