1

I'm doing my CV with the template ModernCV Classic. I want to rotate my picture but the command used is \photo I don't know how to do that.

\documentclass[11pt,a4paper,sans]{moderncv}

\moderncvstyle{classic}
\moderncvcolor{blue}
\nopagenumbers{}

\usepackage[utf8]{inputenc}

\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[francais]{babel}

\usepackage[scale=0.75]{geometry}

\name{John}{Doe}
\title{...}
\address{adress}{Town}{Country}

\extrainfo{age, nationality}
\phone[mobile]{54466145745}
\email{john.doe@mail.com}
\photo[80pt][0.4pt]{Photo.jpg}
\quote{Objectifs: ...}
  • 3
    Welcome to TeX.SX! Why don't just rotate the picture with an image editor outside of LaTeX? – sodd May 24 '17 at 8:41
  • I tried but it doesn't work... – Jess May 29 '17 at 12:35
3

You can patch \makecvhead using the xpatch package to inject the angle of rotation.

\documentclass{moderncv}

\moderncvstyle{classic}
\moderncvcolor{blue}

\usepackage{xpatch}
\patchcmd{\makecvhead}%
   {width=\@photowidth}%
   {width=\@photowidth,angle=90}%
   {}{}

\name{John}{Doe}
\title{...}
\address{adress}{Town}{Country}

\extrainfo{age, nationality}
\phone[mobile]{54466145745}
\email{john.doe@mail.com}
\photo[80pt][0.4pt]{example-image-a}
\quote{Objectifs: ...}

\begin{document}

\makecvtitle

\end{document}
| improve this answer | |

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.