# Adding a photo on top corner of a two column CV template

How can I add a photo on the top right/left corners to this CV Template ?

I tried to use variants of the following code to insert the photo on right top corner after moving the name to the left side:

\begin{figure}[t]
\begin{flushright}
\includegraphics[width=4cm,height=5cm]{photo.jpg}
\end{flushright}
\end{figure}


I have two problems: 1- The photo is always at the center 2- The rest of the template (in a minipage environment) moves to a new page

-
Welcome to TeX.sx! Can you show what you have tried so far? –  Matthew Leingang Mar 7 '13 at 14:43

The file you linked to is not well set up for using as an example here, but the following works. (Note: I did not have the fonts in used in the linked file; but I assume you do.)

Rather than post the whole thing, which is very verbose, I'll point you to where to add or subtract or move things.

[1] Add \usepackage{graphicx} to your preamble. (I put it just after xcolor.)

[2] Move the 'TITLE' section inside the first minipage, following the \vspace{0pt} line; note that the example is missing a closing brace. I would do something like:

\par{\centering{\sffamily\Huge John Smith}\\ % Your name


[3] Following the second \vspace{0pt}, add the following lines (but you can use the fonts the file has if they are on your system):

\begin{flushright}
\includegraphics[width=4cm,height=5cm]{photo.jpg}
\end{flushright}


[4] Now the second minipage is too long: you need to remove some material from the example file. For instance, if you comment out the 'Communication Skills' seciton, you'll see everything fits on one page. That means you'll need to move things around between the left and right minipages until everything fits; you may need to pare down how verbose you are in various sections.

-
Thanks Jon! It works very well, but I get an empty page at the beginning. –  Tarek Mar 8 '13 at 9:57
@Tarek -- That's because one of the minipages is too long (in TeX's opinion): try removing a little at a time and see how much is too much for everything to fit on a page. Note that it could be too long in either or both of the minipage environments since we've added material to both of them. See which one is longer in the 2-page document, and try removing material from that one first; but you may need to remove stuff from both. –  jon Mar 8 '13 at 15:24
I can't use this template with TexStudio. I tried TeLaTex and LulaTeX but didn't work. Can you hlep me? Thanks in advance –  Sameir Deif May 18 '13 at 5:22
@SameirDeif -- Can you be more specific? 'didn't work' can mean a lot of things; what error message(s) are you getting? Are you using exactly the file linked to above? (Also: 'TeXLaTex' and 'LulaTeX' are not commands you can use. Did you in fact try with xelatex and lualatex?) –  jon May 18 '13 at 18:54