Graphics, Figures & Tablesmoderncv | Add a Photo to a CV

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
irenkina
Posts: 4
Joined: Fri Feb 24, 2012 12:07 pm

moderncv | Add a Photo to a CV

Post by irenkina »

Hello, I am new here and I am also new to Latex and would be grateful for some help. I have been using the moderncv package (and the cv looks nice!). Now I would like to add a photo to it, but I have no idea how to do this. I don't know, for example, what size photo I can use, how to import it into latex, which commands to use, do I need another package to do this? I have already spent time trying to find an answer I could follow, but still haven't found anything that tells how to do this from the very beginning. I'd be glad of any help you all might be able to offer. Thanks in advance.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

moderncv | Add a Photo to a CV

Post by Stefan Kottwitz »

Hi Irenkina,

welcome to the board!

Since you are new to LaTeX, I recommend reading a LaTeX introduction, since you have very basic questions.

Regarding the photo, you can use PNG and JPEG format, with pdfLaTeX. Additionally PDF images and EPS images (in DVI mode) would be possible. The size doesn't matter much, as long as it looks good and the file size is not too big to handle for the final PDF.

Generally, for including a photo, you need to load the graphicx package and use the command \includegraphics.

However, the moderncv class provides a special command for it:

Code: Select all

\photo[64pt][0.4pt]{filename}
Here, 64pt is the height the picture (to which it's resized), 0.4pt is the thickness of the frame around it. Use 0pt for no frame.

Stefan
LaTeX.org admin
irenkina
Posts: 4
Joined: Fri Feb 24, 2012 12:07 pm

Re: moderncv | Add a Photo to a CV

Post by irenkina »

Thank you. I'll have go!
irenkina
Posts: 4
Joined: Fri Feb 24, 2012 12:07 pm

Re: moderncv | Add a Photo to a CV

Post by irenkina »

Wow ---- it worked! First solo LaTeX project complete! Thank you so much :-) So much better looking than what I had before.
Post Reply