在德语简历中,我们应该插入个人详细信息(见下图中的“个人简介”)。由于我的简历中没有其他地方了(casual
风格moderncv
),我想将其附加在我的照片右侧。因此它应该显示为照片和姓名之间的小文本。我该怎么做?
\documentclass[10pt,unicode,a4paper,sans]{moderncv}
\moderncvtheme[green]{casual}
\usepackage[utf8]{inputenc}
\usepackage[scale=0.8]{geometry}
\setlength{\hintscolumnwidth}{3.1cm}
\AtBeginDocument{\recomputelengths}
\firstname{...}
\familyname{...}
\title{Master...}
\address{...}
\phone[mobile]{...}
\email{...}
%\social[linkedin]{nickname}
\extrainfo{Referenzkontakte und beglaubigte Zeugniskopien folgen bei Interesse.}
\photo[64pt][0.1pt]{portrait.jpg}
\AfterPreamble{\hypersetup{
pdfauthor={YOUR NAME},
pdftitle={Lebenslauf | YOUR NAME},
pdfsubject={tabellarischer Lebenslauf}
}}
\begin{document}
\maketitle
\pagestyle{empty}
\section{Persönliche Angaben}
\section{Bildungsweg}
\section{Praktische Tätigkeiten}
\subsection{• Berufstätigkeit}
\subsection{• Berufsbezogene Praktika}
\subsection{• Wehrersatzdienst}
\section{Studienarbeiten}
\section{Auslandsaufenthalte und Kurse}
\section{Sprachen}
\section{EDV-Kenntnisse}
\section{Interessen}
\textit{"Übung macht den Meister." \newline \newline}
\cvline{}{Place, Date \newline \includegraphics[height=1cm]{signature.jpg}}
\thispagestyle{plain}
\end{document}
答案1
有一种可能性是:我定义了一个\insertpersonalinformation
命令,允许您在图片和名称之间排版信息;在示例中,我使用来minipage
排版信息,但您可以使用任何您想要的格式:
\documentclass{moderncv}
\moderncvtheme{casual}
\usepackage{array}
\makeatletter
\def\insertpersonalinformation#1{\def\@insertpersonalinformation{#1}}
% commands
\renewcommand*{\makecvtitle}{%
% recompute lengths (in case we are switching from letter to resume, or vice versa)
\recomputecvlengths%
% ensure footer with personal information
\makecvfooter%
% optional picture
\newbox{\makecvtitlepicturebox}%
\savebox{\makecvtitlepicturebox}{%
\ifthenelse{\isundefined{\@photo}}%
{}%
{%
\setlength\fboxrule{\@photoframewidth}%
\ifdim\@photoframewidth=0pt%
\setlength{\fboxsep}{0pt}\fi%
{\color{color1}\framebox{\includegraphics[width=\@photowidth]{\@photo}}}}}%
\usebox{\makecvtitlepicturebox}%
% name
\@initializelength{\makecvtitlepicturewidth}%
\settowidth{\makecvtitlepicturewidth}{\usebox{\makecvtitlepicturebox}}%
\parbox[b]{\textwidth-\makecvtitlepicturewidth}{%
%\raggedleft%
\ifthenelse{\isundefined{\@insertpersonalinformation}}
{\raggedleft}
{\hspace*{10pt}{\personalinfofont\@insertpersonalinformation}\hfill}% alternate design: \MakeLowercase
{\namefont{\color{color2!50}\@firstname} {\color{color2}\@lastname}}
}
{\color{color2!50}\rule{\textwidth}{.25ex}}%
% optional title
\ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\null\hfill\titlestyle{\@title}}\\[2.5em]% \null is required as there is no box on the line after \\, so glue (and leaders) disappears; this is in contrast to after \par, where the next line starts with an indent box (even after \noindent).
% optional quote
\ifthenelse{\isundefined{\@quote}}%
{}%
{{\null\hfill\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}\hfill\null\\[2.5em]}}%
\par}% to avoid weird spacing bug at the first section if no blank line is left after \maketitle
\makeatother
\def\personalinfofont{\normalfont\small}
\firstname{John}
\familyname{Doe}
\photo{picture}
\insertpersonalinformation{%
\begin{minipage}[b]{4cm}%<- adjust here
\raggedright
\textbf{Geburt} \\
12. August, 1964, \textnormal{\textit{Berlin}} \\
\textbf{Familienstand} \\
verheiratet, 2 kinder \\
\textbf{Eherman} \\
Max Munstermann, \textnormal{\textit{Musterberuf}} \\
\end{minipage}%
}
\begin{document}
\makecvtitle
\end{document}