目前我正在用 LaTeX 写简历,唯一的困难是添加图片。我想把它添加到个人资料旁边右侧的线下。有什么办法吗?期待您的想法!
这是我现在的文档。我更改了命令,\makecvtitle
因为我想让它看起来不一样,但我认为这就是图片不起作用的原因。
\documentclass[11pt,a4paper]{moderncv}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage{pdfpages}
\usepackage{tabularx}
\usepackage{wrapfig}
\moderncvtheme{casual}
\moderncvcolor{blue}
\renewcommand*\familydefault{\sfdefault}
\moderncvicons{marvosym}
\usepackage[scale=0.8]{geometry}
\geometry{a4paper, top=25mm, left=25mm, right=25mm, bottom=25mm,headsep=10mm, footskip=-0mm}
\setlength{\hintscolumnwidth}{3,5cm}
\title{SEA Online Marketing Spezialist}
\firstname{Rebecca}
\familyname{Rekker}
\address{XXXXXXXXX}{XXXXXXXXX}
\mobile{XXXXXXXXXXXXX}
\email{XXXXXXXXXXXXXXXXXX}
\begin{document}
\renewcommand*{\titlefont}{\LARGE\mdseries\upshape}
\renewcommand{\makecvtitle}{%
\recomputecvlengths%
\makecvfoot%
\raggedright{{\raggedright\namefont{\color{color2}\@firstname}} {\raggedright\namefont{\color{color2}\@familyname}}}
\\[-.35em]%
{\color{color2!50}\rule{\textwidth}{.25ex}}
\\[1.25em]
{\raggedright\Large{\color{color2}\@title}}
\\
}%
\makecvtitle
\section{Persönliche Daten}
答案1
Stylecasual
知道默认选项和在简历上将姓名写在右边还是左边的right
选项。您需要选项。left
left
您可以left
使用以下方式激活选项
\makeatletter\@lefttrue\@rightfalse\makeatother % <=====================
在拨打电话之前\makecvtitle
。
要放置图像,请使用调用包textpos
(texdoc textpos
用于文档)
\usepackage[absolute,overlay]{textpos} % <==============================
现在您可以使用
\begin{textblock}{0}(11.4,3.1) % left-image, top-image
\includegraphics[width=100pt]{example-image-golden-upright}\par
\end{textblock}
插入所需图像。更改11.4
(以厘米为单位)可调整图片与左侧纸张尺寸的距离,更改3.1
(以厘米为单位)可调整页面顶部与图像之间的距离。
使用以下 MWE
\documentclass[11pt,a4paper]{moderncv}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage[absolute,overlay]{textpos} % <==============================
\moderncvtheme{casual}
\moderncvcolor{blue}
\renewcommand*\familydefault{\sfdefault}
\moderncvicons{marvosym}
\usepackage[scale=0.8]{geometry}
\geometry{a4paper, top=25mm, left=25mm, right=25mm, bottom=25mm,headsep=10mm, footskip=-0mm}
\setlength{\hintscolumnwidth}{3,5cm}
\setlength{\footskip}{37pt}
\title{SEA Online Marketing Spezialist}
\firstname{Rebecca}
\familyname{Rekker}
\address{XXXXXXXXX}{XXXXXXXXX}
\mobile{XXXXXXXXXXXXX}
\email{XXXXXXXXXXXXXXXXXX}
%\photo[64pt][0.4pt]{example-image-a}
\begin{document}
\renewcommand*{\titlefont}{\LARGE\mdseries\upshape}
\makeatletter\@lefttrue\@rightfalse\makeatother % <=====================
\makecvtitle
\begin{textblock}{0}(11.4,3.1) % left-image, top-image
\includegraphics[width=100pt]{example-image-golden-upright}\par
\end{textblock}
\section{Persönliche Daten}
\cvitem{Geburtsdatum}{XXXXXXXXXXXXXXXXXXXXXXX}
\cvitem{Geburtsort}{XXXXXXXXXXXXXXXXXXXXXXX}
\cvitem{Staatsbürgerschaft}{XXXXXXXXXXXXXXXXXXXXXXX}
\cvitem{Familienstand}{XXXXXXXXXXXXXXXXXXXXXXX}
\section{Praxis und Berufserfahrung}
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description} % arguments 3 to 6 can be left empty
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description Description Description Description Description \\Description Description Description Description Description}
\end{document}
您将获得最终的 pdf:
请注意,由于您更改了代码而导致的所有错误均已消失\makecvtitle
......