1

I tried to use this instructions: How to include picture in banking style with exactly position

They somehow doesn't work anymore, maybe because the actual moderncv version is a little bit different, I think.

Can maybe someone help me? It would be really nice.

if i use the code from the link: MWE:

\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{banking} 
\moderncvcolor{blue} 

\usepackage{lipsum} 

\usepackage[scale=0.75]{geometry} 
%\setlength{\hintscolumnwidth}{3cm} 
%\setlength{\makecvtitlenamewidth}{10cm} 
\patchcmd{\makehead}
{\hfil}
{\hspace*{0.15\textwidth}}
{}
{}
\patchcmd{\makehead}
{\setlength{\makeheaddetailswidth}{0.8\textwidth}}
{\setlength{\makeheaddetailswidth}{0.67\textwidth}}
{}
{}
\patchcmd{\makehead}
{\\[2.5em]}
{\hfil\raisebox{-.7cm}{\framebox{\includegraphics[width=\@photowidth]{\@photo}}}\\[2.5em]}
{}
{}
%----------------------------------------------------------------------------------------
%   NAME AND CONTACT INFORMATION SECTION
%----------------------------------------------------------------------------------------

\firstname{John} % Your first name
\familyname{Smith} % Your last name

It compiles correctly, but there is no picture in the pdf. Here is the log file: https://pastebin.com/5Q5wTZZR

5
  • We would need more information in order to address your problem. For example, a minimal example that replicates your issue (and possibly your .log when you compile).
    – Werner
    Feb 19 '19 at 17:30
  • right, now i added more informations
    – Alex
    Feb 19 '19 at 18:36
  • From the posted .log file it seems like you have local installation/version of moderncv. The version on CTAN is v2.0.0 (2015/07/28) while you have v1.2.0 (2012/10/31). There has been many changes to moderncv that would break previous versions/usage. Specifically, there is a moderncv.cls in your working folder, and your compilation uses that, rather than wherever your MiKTeX is installed.
    – Werner
    Feb 19 '19 at 18:42
  • omg, ok i was so confused. I didn't knew MiKteX already has the latest moderncv+templates, i instead used one from latex.org forums thinking it's the latest one. Thank you very much
    – Alex
    Feb 19 '19 at 19:00
  • Is everything working as expected now?
    – Werner
    Feb 19 '19 at 19:29
1

You have a local copy of moderncv.cls in your working folder. The only way for one to pick this up is from the .log file:

enter image description here

Notice how moderncv.cls is listed as-is, while other files included are listed using their full path. Local versions/files within the working folder will be posted like this, rather than with their full path.

Remove this local version so your document can use the default installed version. There has been a number of major changes to moderncv that will break earlier code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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