我正在用 currvita 写简历。
我使用以下代码在每个项目标题下方创建线条:
\usepackage{xpatch}
\xpatchcmd{\cvlist}{\cvlistheadingfont#1}
{\makebox[0pt][l]{\rule[-0.5\baselineskip]{\textwidth}
{0.4pt}}\cvlistheadingfont#1}
{}{}
这张用来添加图片
\noindent % 4cm is the picture's width, -6cm by trial and error
\begin{picture}(0,0)
\put(\dimexpr\textwidth-5.5cm,-8.2cm){\includegraphics[width=5.5cm]
{Foto}}
\end{picture}
我想让图片位于行的前面。有人能帮我吗?
编辑:David Carlisle 说我应该改变代码的顺序。我找不到在哪里下载图片的代码才能让它工作。所以这是我的整个文档,已经清理干净了。有人能告诉我在哪里下载 includegraphics 吗?
\documentclass[12pt,a4paper]{article}
\usepackage[german]{babel}
\usepackage{currvita}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage[utf8]{inputenc}
\usepackage{array,longtable,picture}
\usepackage{blindtext}
\usepackage{sansmathfonts}
\usepackage[T1]{fontenc}
\renewcommand*\familydefault{\sfdefault} %% Only if the base font of the
document is to be sans serif\usepackage{sansmathfonts}
\usepackage[T1]{fontenc}
\renewcommand*\familydefault{\sfdefault} %% Only if the base font of the
document is to be sans serif
\usepackage{geometry}
\geometry{verbose,a4paper,tmargin=25mm,bmargin=25mm,lmargin=20mm,rmargin=20mm}
\usepackage{xpatch}
\xpatchcmd{\cvlist}{\cvlistheadingfont#1}
{\makebox[0pt][l]{\rule[-0.5\baselineskip]{\textwidth}
{0.4pt}}\cvlistheadingfont#1}
{}{}
\newcommand*{\ac}[1]{\mbox{#1}}
\tolerance=600
\begin{document}
\begin{cv}{\Huge CV\\}
\noindent % 4cm is the picture's width, -6cm by trial and error
\begin{picture}(0,0)
\put(\dimexpr\textwidth-5.5cm,-8.2cm){\includegraphics[width=5.5cm]
{Foto}}
\end{picture}
\begin{cvlist}{\textnormal{\scshape Allgemeine Angaben}}
\item [Vorname, Name]
\item [Adresse]
\item [Telefonnummer]
\item [E"~Mail]
\item [Geburtsdatum]
\end{cvlist}
\begin{cvlist}{\textnormal{\textsc{}}}
\item
\end{cvlist}
\begin{cvlist}{\textnormal{\textsc{}}}
\item
\end{cvlist}
\begin{cvlist}{\textnormal{\textsc{}}}
\item
\end{cvlist}
\includegraphics[width=8cm]{Unterschrift}
\cvplace{}
\end{cv}
\end{document}
\endinput