我的简历左侧有我的照片,我想将它移动到右侧,我使用了 moderncv。
这是我的代码的头部:
[![% Exemple de CV utilisant la classe moderncv
% Style classic en bleu
\documentclass[11pt,a4paper]{moderncv}
\moderncvtheme[blue]{classic}
\usepackage[utf8]{inputenc}
\usepackage[]{siunitx}
\usepackage{graphicx}
\usepackage[top=1.1cm, bottom=1.1cm, left=2cm, right=2cm]{geometry}
% Largeur de la colonne pour les dates
\setlength{\hintscolumnwidth}{5cm}
\firstname{Céline}
\familyname{Venditi}
\title{Data Scientist}
\address{XXX}{YYY}
\email{[email protected]}
\mobile{07 89 41}
\begin{document}
\includegraphics\[height=4cm, width=3cm, origin=r\]{captureimage1.png}\\
\maketitle]
答案1
您可以使用\hfill
添加可拉伸空间将图像推至另一侧。
\PassOptionsToPackage{demo}{graphicx} % Used for blank image
\documentclass[11pt,a4paper]{moderncv}
\moderncvtheme[blue]{classic}
\usepackage[utf8]{inputenc}
\usepackage{siunitx}
\usepackage{graphicx}
\usepackage[top=1.1cm, bottom=1.1cm, left=2cm, right=2cm]{geometry}
\setlength{\hintscolumnwidth}{5cm}
\firstname{Céline}
\familyname{Venditi}
\title{Data Scientist}
\address{XXX}{YYY}
\email{[email protected]}
\mobile{07 89 41}
\begin{document}
\hfill\includegraphics[height=4cm, width=3cm]{captureimage1.png}
\maketitle
\end{document}
答案2
这里是:使用flushright
环境:
\documentclass[11pt,a4paper]{moderncv}
\moderncvtheme[blue]{classic}
\usepackage[utf8]{inputenc}
\usepackage[]{siunitx}
\usepackage{graphicx}
\usepackage[top=1.1cm, bottom=1.1cm, left=2cm, right=2cm]{geometry}
% Largeur de la colonne pour les dates
\setlength{\hintscolumnwidth}{5cm}
\firstname{Céline}
\familyname{Venditi}
\title{Data Scientist}
\address{XXX}{YYY}
\email{[email protected]}
\mobile{07 89 41}
\begin{document}
\begin{flushright}\includegraphics[height=3cm, width=3cm, origin=r]{pepe-le-pew1}\end{flushright}
\maketitle
\end{document}
但是,我怀疑您更愿意使用\photo
moderncv 中的命令来实现这一点:
\documentclass[11pt,a4paper]{moderncv}
\moderncvtheme[blue]{classic}
\usepackage[utf8]{inputenc}
\usepackage[]{siunitx}
\usepackage{graphicx}
\usepackage[top=1.1cm, bottom=1.1cm, left=2cm, right=2cm]{geometry}
% Largeur de la colonne pour les dates
\setlength{\hintscolumnwidth}{5cm}
\firstname{Céline}
\familyname{Venditi}
\title{Data Scientist}
\address{XXX}{YYY}
\email{[email protected]}
\mobile{07 89 41}
\photo[3cm][0pt]{pepe-le-pew1}
\begin{document}
\maketitle
\end{document}