Curricula Vitae / Résumés ⇒ Title realignment to allow adding a picture.
-
- Posts: 679
- Joined: Tue Mar 03, 2015 4:01 pm
Title realignment to allow adding a picture.
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Title realignment to allow adding a picture.
Find the "
PRINT THE HEADING LINES
" block in resume.cls
and replace everything in it with:Code: Select all
\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}
}
Don't forget to add
\usepackage{graphicx}
to the template so you can include images!Cheers,
Vel
-
- Posts: 679
- Joined: Tue Mar 03, 2015 4:01 pm
Title realignment to allow adding a picture.
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
Title realignment to allow adding a picture.
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:Code: Select all
% \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
}
Cheers,
Vel
Re: Title realignment to allow adding a picture.
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 10207 times
Re: Title realignment to allow adding a picture.
This question has already been answered here: http://latex-community.org/forum/viewto ... 62&t=25810
Cheers,
Vel