LaTeX forum ⇒ Curricula Vitae / RésumésTitle 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.

Postby templateuser » Tue Mar 17, 2015 1:20 pm

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:

User avatar
Vel
Site Moderator
Posts: 454
Joined: Fri Jun 29, 2012 1:20 am

Postby Vel » Tue Mar 17, 2015 1:21 pm

Hi Bahram,

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

  1. \let\ori@document=\document
  2. \renewcommand{\document}{
  3. \ori@document % Begin document
  4. \begin{minipage}[b]{0.75\linewidth}
  5. \printname % Print the name specified with \name
  6. \@ifundefined{@addressone}{}{ % Print the first address if specified
  7. \printaddress{\@addressone}}
  8. \@ifundefined{@addresstwo}{}{ % Print the second address if specified
  9. \printaddress{\@addresstwo}}
  10. \@ifundefined{@addressthree}{}{ % Print the third address if specified
  11. \printaddress{\@addressthree}}
  12. \end{minipage}
  13. %
  14. \begin{minipage}[b]{0.25\linewidth}
  15. \includegraphics[width=\linewidth]{image.png}\\
  16. \end{minipage}
  17. }


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

Postby templateuser » Tue Mar 17, 2015 1:21 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

User avatar
Vel
Site Moderator
Posts: 454
Joined: Fri Jun 29, 2012 1:20 am

Postby Vel » Tue Mar 17, 2015 1:21 pm

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:

  1. % \printaddress is used to style an address line (given as input)
  2. \def \printaddress #1{
  3. \begingroup
  4. \def \\ {\addressSep\ }
  5. #1
  6. \endgroup
  7. \par
  8. \addressskip
  9. }
  10.  
  11. % \printname is used to print the name as a page header
  12. \def \printname {
  13. \begingroup
  14. {\MakeUppercase{\namesize\bf \@name}}
  15. \\
  16. \endgroup
  17. }


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

Postby telluz21 » Mon Jun 01, 2015 6:31 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
friggeri resume.jpg
I need put the picture in the left of the "John" text.
friggeri resume.jpg (40.4 KiB) Viewed 2323 times

User avatar
Vel
Site Moderator
Posts: 454
Joined: Fri Jun 29, 2012 1:20 am

Postby Vel » Mon Jun 01, 2015 4:04 pm

Hi,

This question has already been answered here: viewtopic.php?f=62&t=25810

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


Return to “Curricula Vitae / Résumés”

Who is online

Users browsing this forum: No registered users and 1 guest