## LaTeX forum ⇒ Curricula Vitae / Résumés ⇒ Title realignment to allow adding a picture. Topic is solved

ModernCV, Friggeri, Plasmati, Classicthesis-CV, and more
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

### Title realignment to allow adding a picture.

Hi,
Thank you very much for the great looking template, it is much appreciated! I am also new to LaTeX, using MikTex and TexStudio to compose my new CV.
My question is that i would like to add a applicant photo (common practice in Germany) to the right end of the title section (i.e. right top corner of the document), so i would like to be able to center-align the name (have reduced the size to \large), address lines in a way that the space occupied by the photo be considered as part of the right margin for this section.
Right now it is with the original alignment, meaning that the white space on the right side of name/address lines is smaller than the white space on the left side.

I can send images of the PDF if needed.
Thanks a lot again for your time and effort!
Bahram

Tags:

Vel
Site Moderator
Posts: 456
Joined: Fri Jun 29, 2012 1:20 am
Hi Bahram,

Find the "PRINT THE HEADING LINES" block in resume.cls and replace everything in it with:

\let\ori@document=\document\renewcommand{\document}{\ori@document  % Begin document\begin{minipage}[b]{0.75\linewidth}   \printname % Print the name specified with \name   \@ifundefined{@addressone}{}{ % Print the first address if specified     \printaddress{\@addressone}}   \@ifundefined{@addresstwo}{}{ % Print the second address if specified     \printaddress{\@addresstwo}}      \@ifundefined{@addressthree}{}{ % Print the third address if specified     \printaddress{\@addressthree}}\end{minipage}%\begin{minipage}[b]{0.25\linewidth}\includegraphics[width=\linewidth]{image.png}\\\end{minipage}}

This will insert an image of your choosing into the right side of the header. You can play with the amount of space you want to allow for the image yourself. Your name and addresses will remain centered to the left of the new image as you want.

Don't forget to add \usepackage{graphicx} to the template so you can include images!

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com

templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm
Hello!

Thanks a lot for the template, it looks just great! I would have another question related to the previous one: I also added a picture on the right side using two minipages as you suggested. For the text minipage on the left (that contains name and address), I would like to have the text left-adjusted so that it is aligned with the following sections (instead of centered). I've tried commands such as \raggedright or \begin{flushleft}, but it does not work. The text shifts a bit on the left, but it is not left-aligned as it should be.

Do you have any ideas on how to do this? I am new to LaTeX, so I might be missing something easy.. Thanks!

Constantinos

Vel
Site Moderator
Posts: 456
Joined: Fri Jun 29, 2012 1:20 am
Hi Constantinos,

The problem of the centered text is due to it being defined that way in the \printaddress and \printname command definitions. All you have to do is find these definitions in resume.cls and replace them with:

% \printaddress is used to style an address line (given as input)\def \printaddress #1{   \begingroup     \def \\ {\addressSep\ }     #1   \endgroup   \par   \addressskip} % \printname is used to print the name as a page header\def \printname {   \begingroup     {\MakeUppercase{\namesize\bf \@name}}     \\   \endgroup}

This will now cause your name and addresses to be left aligned.

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com

telluz21
Posts: 1
Joined: Mon Jun 01, 2015 6:09 am
Hello everyone, recently I've used LaTeX to create a most professional resume, I was using the friggeri template, the point is that in Mexico is very required to put a picture in the resume, my question is how I can do to add a picture in the left of the header text in the friggeri template. If someone can help me with this doubt I will appreciate it.

Warm regards.

Attached picture as example.
Attachments
I need put the picture in the left of the "John" text.
friggeri resume.jpg (40.4 KiB) Viewed 4192 times

Vel
Site Moderator
Posts: 456
Joined: Fri Jun 29, 2012 1:20 am
Hi,