现代简历布局

现代简历布局

我对我的简历有疑问。

以下是我的标题:

    \documentclass[11pt,a4paper,sans]{moderncv}

\usepackage[latin1]{inputenc}                   
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{tabularx}


\moderncvtheme[red]{classic}      

\usepackage[scale=0.8]{geometry}

\AtBeginDocument{\recomputelengths}                   

\makeatletter
\renewcommand*{\makecvtitle}{%
  % recompute lengths (in case we are switching from letter to resume, or vice versa)
  \recomputecvlengths%
  % optional detailed information box
  \newbox{\makecvtitledetailsbox}%
  \savebox{\makecvtitledetailsbox}{%
    \addressfont\color{color2}%
    \begin{tabular}[b]{@{}r@{}}%
      \ifthenelse{\isundefined{\@addressstreet}}{}{\makenewline\addresssymbol\@addressstreet%
      \ifthenelse{\equal{\@addresscity}{}}{}{\makenewline\@addresscity}}% if \addresstreet is defined, \addresscity will always be defined but could be empty
      \ifthenelse{\isundefined{\@mobile}}{}{\makenewline\mobilesymbol\@mobile}%
      \ifthenelse{\isundefined{\@phone}}{}{\makenewline\phonesymbol\@phone}%
      \ifthenelse{\isundefined{\@fax}}{}{\makenewline\faxsymbol\@fax}%
      \ifthenelse{\isundefined{\@email}}{}{\makenewline\emailsymbol\emaillink{\@email}}%
      \ifthenelse{\isundefined{\@homepage}}{}{\makenewline\homepagesymbol\httplink{\@homepage}}%
      \ifthenelse{\isundefined{\@extrainfo}}{}{\makenewline\@extrainfo}%
    \end{tabular}}%
  % optional picture box
  \newbox{\makecvtitlepicturebox}%
  \savebox{\makecvtitlepicturebox}{%
    \ifthenelse{\isundefined{\@photo}}%
    {}%
    {%
      \hspace*{\separatorcolumnwidth}%
      \color{color1}%
      \setlength{\fboxrule}{\@photoframewidth}%
      \ifdim\@photoframewidth=0pt%
        \setlength{\fboxsep}{0pt}\fi%
      \framebox{\includegraphics[width=\@photowidth]{\@photo}}}}%
  % name and title
  \newlength{\makecvtitledetailswidth}\settowidth{\makecvtitledetailswidth}{\usebox{\makecvtitledetailsbox}}%
  \newlength{\makecvtitlepicturewidth}\settowidth{\makecvtitlepicturewidth}{\usebox{\makecvtitlepicturebox}}%
  \ifthenelse{\lengthtest{\makecvtitlenamewidth=0pt}}% check for dummy value (equivalent to \ifdim\makecvtitlenamewidth=0pt)
    {\setlength{\makecvtitlenamewidth}{\textwidth-\makecvtitledetailswidth-\makecvtitlepicturewidth}}%
    {}%
  \begin{minipage}[b]{\makecvtitlenamewidth}%
    \namestyle{\@firstname\ \@familyname}%
    \ifthenelse{\equal{\@title}{}}{}{\\[1em]\titlestyle{\@title}}%
  \end{minipage}%
  \hfill%
  % detailed information
  \llap{\usebox{\makecvtitledetailsbox}}% \llap is used to suppress the width of the box, allowing overlap if the value of makecvtitlenamewidth is forced
  {\par\color{color2!50}\rule{\textwidth}{.25ex}\par}% <----- ADDED RULE
  % optional photo
  \usebox{\makecvtitlepicturebox}\\[1.5em]%
  % optional quote
  \ifthenelse{\isundefined{\@quote}}%
    {}%
    {{\centering\begin{minipage}{\quotewidth}\centering\quotestyle{\@quote}\end{minipage}\\[2.5em]}}%
  \par}% to avoid weird spacing bug at the first section if no blank line is left after \makecvtitle
\makeatother




\firstname{xy}
\familyname{z}
\title{\textcolor{red}{\textsc{Curriculum Vit\ae}}}            
\address{...}{...}    
\mobile{...}                   
\phone{...}                      
\email{...}                     

%\photo[96pt]{picture}                        
\quote{\hbox to 0pt{\hss  here comes the quote \hss}
\vspace{-2mm}\begin{flushright} -author-\end{flushright}} 

\nopagenumbers{}                            



\begin{document}

\makecvtitle

现在我有了一个漂亮的标题,其中有一条线将我的个人数据和引言分开。到目前为止一切顺利。

但如果我添加图片,图片会放在引文下方,引文上方。这样不太美观。

那么:有人能帮我吗?也许可以重新排列页面,这样引文在左边,图片在右边?我觉得这样看起来会很漂亮。

否则,我认为图片放在我的个人数据旁边的标题中看起来会不错,但要高于线!

如果有人能帮忙我将不胜感激,左边有引文、右边有图片的第一个布局会更好!

答案1

您需要做的就是移动您添加的行,

\par\color{color2!50}\rule{\textwidth}{.25ex}\par}% <----- ADDED RULE

紧接着输出图片的行,即

% optional photo
\usebox{\makecvtitlepicturebox}\\[1.5em]%
{\par\color{color2!50}\rule{\textwidth}{.25ex}\par}% <----- ADDED RULE

这将产生以下输出,这就是我理解您正在寻找的内容:

原始输出

然后,您可能希望调整间距,以减少图片和规则之间的空间,并增加规则和引文之间的空间。例如,以下代码:

% optional photo
\usebox{\makecvtitlepicturebox}%
{\par\color{color2!50}\rule{\textwidth}{.25ex}\par\addvspace{1.5em}}% <----- ADDED RULE

会产生

提高产量

最后,请注意,在您的代码中\usepackage[T1]{fontenc}\usepackage{lmodern}\AtBeginDocument{\recomputelengths}是不必要的。moderncv已经处理好了这些。

相关内容