Classic Style with Picture - How do I move my name above the adress?

Asked by Madelen Mueller

Dear Xavier,

I have not too much experience with Latex, so I do not know how to solve this problem - and if it is possible at all:

I use the moderncv style classic with a profile picture. Unfortunately both my name and my e-mail-address are very long (e-mail-address has got 33 signs, including 3 m and 1 w). I already used a box for the name and a little trick to include a line break* in the e-mail-adress, but it does not look right this way.

Is there a possibility to have the name being written above the adress in a way that those are all raggedleft and are flush with the picture?

Ex.: [some free space here] my first name [my picture]
                                                     my last name [my picture]
                                                           my adress [my picture]

I tried to understand what I would have to change in the moderncvstyleclassic.sty, but I did not get it. Could you please explain it to me?

Best regards,

*PS: Is there a way to have line breaks within the cv-items?

Question information

English Edit question
moderncv Edit question
Xavier Danaux Edit question
Solved by:
Xavier Danaux
Last query:
Last reply:
Revision history for this message
Best Xavier Danaux (xdanaux) said :

Hi Madelen,

You will need to redefine \makecvtitle. The following definition should achieve what you described:

  % optional picture box
  % name and title
  % optional picture box
  % optional quote

Give the above definition is using "@" variables, you will need to enclose it between \makeatletter and \makeatother, i.e.

Let me know if this works as intended.

Kind regards,

Revision history for this message
Madelen Mueller (mohnmaedchen) said :

Thank you very much! That was exactly what I needed to solve my problem(s).

I just added a \raggedleft:

   \raggedleft% --> here

so it would be aligned to the picture.

Best regards,

Revision history for this message
Madelen Mueller (mohnmaedchen) said :

Thanks Xavier Danaux, that solved my question.

Revision history for this message
Xavier Danaux (xdanaux) said :

Great! I indeed forgot the \raggedleft as you noticed :)