This is a follow-up question to Banking style of moderncv doesnt reconize `\makecvheadnamewidth` for fiting long names and to How to mix/combine moderncv styles?.
Now I am looking to add the definition of the command \photo
to the banking
style I already read ModernCV Banking photo title and this How to include picture in banking style with exactly position but since I have mixed styles things got confused I don't know how to make it to work.
- I want my photo besides the title not above it,
- a plus would be to choose whether to put it on the left or on the right of the header.
MWE:
\documentclass{moderncv}
\moderncvstyle{classic}
\moderncvcolor{blue}
\moderncvhead{3}
\usepackage[scale=0.85]{geometry}
\usepackage{xpatch}
\makeatletter %to fix the issue of the long name in banking style
\xpatchcmd{\makehead}{%
\titlestyle{~|~\@title}%
}{%
\\\vspace*{10pt}\titlestyle{\@title}\vspace*{10pt}%
}{}{false}
\makeatother
\makeatletter
\let\oldmakecvtitle\makecvtitle
\renewcommand*{\makecvtitle}{%
{\framebox{\includegraphics[width=\@photowidth]{\@photo}}\par\vspace{10pt}}%
\oldmakecvtitle%
}%
\makeatother
%%%%%%%%%%%%%%%%
\nopagenumbers{}
\title{Curriculum Vitae}
\firstname{my long name}
\familyname{familyname}
\address{address comes here}{10000}
\phone[mobile]{00~00~00~00~00}
\email{[email protected]}
\extrainfo{xx ans Permis B}
\photo[64pt][40pt]{example-image.png}
\begin{document}
\makecvtitle
\end{document}