GeneralAdding a photo to a CV

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
dmt
Posts: 82
Joined: Sat Mar 15, 2008 8:13 pm

Adding a photo to a CV

Post by dmt »

I've written my CV using a latex template I found on the net that I rather like. So far so good. I just found out that for one application I need to add a photo to the CV, which I am having trouble figuring out how to do. I am used to adding normal floats to papers and documents, but not something like this to another template.

I think the easiest would be in the top right corner. The CV template using a new command called makeheading to generate a heading from my name. I was thinking if there was a way to incorporate the photo above the line drawn with this heading, but on the right side of the page. Here is the code use to generate the heading:

Code: Select all

Code, edit and compile here:
% The title (name) with a horizontal rule under it
%
% Usage: \makeheading{name}
%
% Place at top of document. It should be the first thing.
\newcommand{\makeheading}[1]%
{\hspace*{-\marginparsep minus \marginparwidth}%
\begin{minipage}[t]{\textwidth+\marginparwidth+\marginparsep}%
{\large \bfseries #1}\\[-0.15\baselineskip]%
\rule{\columnwidth}{1pt}%
\end{minipage}}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Then the code to generate the heading is simply:

Code: Select all

\begin{document}
\makeheading{My Name}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Is this enough information to help me figure out how to add photo above the line drawn in the heading, on the right side? Or do I need to create some sort of minimal CV example to include here instead?

Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: Adding a photo to a CV

Post by kaiserkarl13 »

You might check out the wrapfig package if you're trying to get text to wrap around your image (or at least be on the same line).
dmt
Posts: 82
Joined: Sat Mar 15, 2008 8:13 pm

Adding a photo to a CV

Post by dmt »

I've been trying some experiments with wrapfig, but can't get any good results. Integrating that with the way the CV template is set up is beyond my Latex skill set. I've tried integrating it into the header, but without any good results.

Also, there seems to be something strange with wrapfig (or I assume it's the package). Normally if I have the same image as a .png and .eps and I use "includegraphics" I can just give the file name without an extension and see the result in the DVI viewer (I'm using Led on Windows) and the same result in the pdf file. But now with wrapfig there is no visible image in the DVI viewer.

Here, I have a minimal working example of the CV template to get the idea of how it works. So any good detailed instructions on how to include a picture on the upper right would be much appreciated.

Code: Select all

Code, edit and compile here:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%% Simple LaTeX CV Template %%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% NOTE: If you find that it says %%
%% %%
%% 1 of ?? %%
%% %%
%% at the bottom of your first page, this means that the AUX file %%
%% was not available when you ran LaTeX on this source. Simply RERUN %%
%% LaTeX to get the ``??'' replaced with the number of the last page %%
%% of the document. The AUX file will be generated on the first run %%
%% of LaTeX and used on the second run to fill in all of the %%
%% references. %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%% Document Setup %%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Don't like 10pt? Try 11pt or 12pt
\documentclass[10pt]{article}
% This is a helpful package that puts math inside length specifications
\usepackage{calc}
% Get Swedish characters to work right
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage{wrapfig}
% Layout: Puts the section titles on left side of page
\reversemarginpar
%
% PAPER SIZE, PAGE NUMBER, AND DOCUMENT LAYOUT NOTES:
%
% The next \usepackage line changes the layout for CV style section
% headings as marginal notes. It also sets up the paper size as either
% letter or A4. By default, letter was used. If A4 paper is desired,
% comment out the letterpaper lines and uncomment the a4paper lines.
%
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
dmt
Posts: 82
Joined: Sat Mar 15, 2008 8:13 pm

Re: Adding a photo to a CV

Post by dmt »

I'm having a little bit of success using the \ThisURCornerWallPaper command in the wallpaper.sty package.

The problem now is that this command sticks the picture in the upper right corner, flush against the edges.

Does anyone know how to offset it from the right and top edges?
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Adding a photo to a CV

Post by gmedina »

Hi,

I suggest you the textpos package. It allows you to easily place objects at absolute positions on the page. Refer to the package documentation for further information.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply