Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm using LyX in Linux and saved the protected and edited template under my given name to workspace. The assigned picture is to be 64pix (as in template) and renamed to CV-image. nevertheless, i get an export error at pdf-preview. I can disable (%) in document properties, it opens just fine. Would love to include it though - what is the hint? Great appreciation in advance, been trying all day (renaming, moving files, setting options in the document preferences).

This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2012.10.18)  18 OCT 2012 20:21 

! LaTeX Error: File `cv-image' not found.

warnings:

    LaTeX Font Warning: Font shape `T1/lmss/m/sc' in size <10.95> not available
(Font)              Font shape `T1/lmr/m/sc' tried instead on input line 123.

LaTeX Font Info:    Try loading font information for OMS+lmss on input line 147
.
LaTeX Font Info:    No file OMSlmss.fd. on input line 147.

LaTeX Font Warning: Font shape `OMS/lmss/m/n' undefined
(Font)              using `OMS/cmsy/m/n' instead
(Font)              for symbol `textbullet' on input line 147.


Underfull \hbox (badness 10000) in paragraph at lines 147--148


LaTeX Font Warning: Some font shapes were not available, defaults substituted.


LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.

The template in original (read only) mode, which came with LyX displays the example picture properly - after re-saving it and editing it, even with assigned picture in same folder, the .log states the above warnings. please excuse for writing in answer section- it is for overview purpose.

share|improve this question
\photo[64pt]{CV-image} – hanswurst Oct 18 '12 at 17:17
\photo[height]{name}. For example \photo[2 cm]{myphoto}. Of course, you must have a myphoto.jpg or myphoto.png in the same directory. – Fran Oct 18 '12 at 17:25
:-D did i.e. as written in the following basic links "cv-image" not found as in the example above. even when i rename and move to the same folder – hanswurst Oct 18 '12 at 17:32
@Fran: be careful, in the new version of moderncv the macro is \photo[height][framethickness]{filename}. With \photo[2cm][0pt]{myphoto} the frame around the picture is deleted. Otherwise ([5pt]) the line around the picture is 5pt thick. – Kurt Oct 18 '12 at 17:45
mine is as stated above, template came fresh with newly installed lyx out of the mintInstall 7.3.5 – hanswurst Oct 18 '12 at 17:51
show 6 more comments

closed as too localized by Torbjørn T., Stefan Kottwitz Dec 30 '12 at 20:02

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

You should either

  • use \photo[64pt]{CV-image} and name your picture CV-image.jpg (or .png or .pdf, assuming pdf output), or
  • use \photo[64pt]{cv-image} and name your picture cv-image.jpg (or .png or .pdf),

but you can't, as you seem to be currently doing, request moderncv to include a picture called cv-image, but name your image CV-image (notice the capitals). Linux is case sensitive.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.