我正在使用 ModernCV Classic 模板制作简历。我想旋转图片,但使用的命令是\photo
我不知道该怎么做。
\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{[email protected]}
\photo[80pt][0.4pt]{Photo.jpg}
\quote{Objectifs: ...}
答案1
您可以\makecvhead
使用xpatch
包补丁来注入旋转角度。
\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{[email protected]}
\photo[80pt][0.4pt]{example-image-a}
\quote{Objectifs: ...}
\begin{document}
\makecvtitle
\end{document}