关于我的简历标题和求职信的问题

关于我的简历标题和求职信的问题

我正在写我的简历和求职信,有不同的问题。

我当前的代码:

\documentclass[11pt,a4paper]{moderncv}


\moderncvtheme[green]{classic}                  

\usepackage[utf8]{inputenc}                  
\usepackage{floatflt}
\usepackage{lipsum} 


\usepackage[scale=0.8]{geometry}
\geometry{a4paper,left=2cm,right=1cm, top=1cm, bottom=1cm} 

\firstname{Prename}
\familyname{\newline Surname}
\title{Curriculum vitae}              
\address{}{}  
\photo[128pt]{picture}                        

\usepackage{wrapfig}


\makeatletter
\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}
\makeatother


%----------------------------------------------------------------------------------
%            content
%----------------------------------------------------------------------------------

\begin{document}
\includegraphics{footer3.jpg}\\
\maketitle
born 99.11.999 in smallcity\\

\section{school education}

\cventry{1996- 2008}{Abitur}{School City}{}{}{grade: x,x}  
\cventry{1996--2000}{elementary school}{}{}{}{Grundschule somewhere}
\section{studies}

\cventry{02.10.2011-- today}{matriculation Master of Science in xxx}{}{}{}{Joint Masters Program in whatever}
\cventry{07.04.2011}{finishing of Bachelor studies}{}{}{}{grade: x,x title: Bachelor of Science whatever}
\cventry{02.12.2010-01.02.2011}{student assistant}{}{}{}{Chair of xxx  Prof. Dr. xxx \newline student assistant as a tutor of xxx}
\cventry{21.07.2008--29.09.2011}{matriculation Bachelor of Science xxx}{}{}{}{university of xxx}
\section{Bachelor thesis}
\cvline{title}{\emph{Here comes a long title}}
\cvline{supervisor}{Prof. Dr. xxxxx}
\cvline{date}{february 2011}
\cvline{grade}{1.0}

%\section{Master Thesis}
%\cvline{Title}{\emph{Processor hardware implementation for Galois Counter Mode (GCM-AES) security encryption standard}}
%\cvline{Supervisors}{Constantinos Goutis}
%\cvline{Description}{\small Project based on VHDL design language; Hardware architecture design of an encryption algorithm; Validation using C programming and implementation on a Xilinx FPGA}

%\section{Other Projects}
%\subsection{Master projects}
%\cvline{VHDL}{Design and implementation of a multiply - add unit, Modeling using Octave, Testing in a Xilinx FPGA using a logic analyzer}
%\cvline{VHDL}{Architectural exploration of a LMS filter, Optimization for power, area and performance}

\section{languages}
\cvlanguage{german}{mother tongue}{}
\cvlanguage{english}{fluent}{}

\section{technical knowledge}
\begin{wrapfigure}{r}{0.5\textwidth}
  \begin{center}


  \end{center}
\end{wrapfigure}
\cvline{basic}{Stata, SPSS}
\cvline{expert}{R}

\cvline{miscellaneous}{LaTex, Microsoft Office, Microsoft Dynamics} 


\clearpage

\recipient{HR Departmnet}{Corporation\\123 Pleasant Lane\\12345 City, State} 
\date{\today} 
\opening{Dear Sir or Madam,} 
\closing{Sincerely yours,} 
\enclosure[Attached]{curriculum vit\ae{}} 

\makelettertitle 

\lipsum[1-3] 

\makeletterclosing

\end{document}

其中图片是我自己的以下照片:

π

并且 footer3 是使用 paint 创建的以下页眉:

佛

总共产生以下输出: t1

t2

首先,我对创建标题的实施解决方案不满意。我不知道如何创建我想要的以下标题:我想要具有如绘画解决方案所示的结构。所以我想让它以某种方式水平。所以左边是我的地址,然后右边(中间)是我的电话号码,右边(也就是右上角)是邮件。我不想要垂直解决方案,这样电话就在地址下面等等。此外,我想要一条漂亮的长垂直线划出这条线。我怎样才能得到它?我想为求职信使用相同的标题,因为我认为这很有意义?

如您所见,求职信存在问题:附件不知为何不起作用,在我看来,LaTeX 没有将其作为代码获取并将其打印为文本?错误在哪里?

我的另一个想法是,我也想在求职信中加入绿色元素。所以我梦想着在求职信的标题上方有一个漂亮的线条组合,就像这样(设计更好,颜色也是绿色): t2ed

我知道使用 tikz 可以实现这一点,但是我不知道如何编写我想要的代码,因为我的乳胶知识有限。

答案1

  • 由于moderncv内部加载fancyhdr,我定义了myfancy页面样式来生成所需的标题。

  • 我使用 TikZ 制作了信中的绿色线条。在我看来,你在信中建议的绿线形状似乎不太好;我用直线代替了它(这看起来好一点,但也许根本没有线条才是最好的?)。

  • 我重新定义了\makecvtitle,以便为您提供名字和姓氏所需的布局。

  • 类似地,我重新定义了信件的开头和结尾部分,以使名字和姓氏具有所需的格式。

代码:

\documentclass[11pt,a4paper]{moderncv}
\moderncvtheme[green]{classic}                  
\usepackage[utf8]{inputenc}                  
\usepackage{floatflt}
\usepackage{fancyhdr} 
\usepackage{geometry}
\geometry{a4paper,left=2cm,right=1cm, top=2cm, bottom=1.5cm,headheight=21pt} 
\usepackage{tikz} 
\usepackage{wrapfig}
\usepackage{lipsum} 

% Suppress final dot in \cventry
\renewcommand*\cventry[7][.25em]{%
  \cvitem[#1]{#2}{%
    {\bfseries#3}%
    \ifthenelse{\equal{#4}{}}{}{, {\slshape#4}}%
    \ifthenelse{\equal{#5}{}}{}{, #5}%
    \ifthenelse{\equal{#6}{}}{}{, #6}%
    \strut%
    \ifx&#7&%
      \else{\newline{}\begin{minipage}[t]{\linewidth}\small#7\end{minipage}}\fi}}

% New page style
\fancypagestyle{myfancy}{
\fancyhead[L]{\parbox[t]{.3333\textwidth}{\sffamily\footnotesize
  Address Line 1\\Address Line 2}}
\fancyhead[C]{\parbox[t]{.3333\textwidth}{\fixedphonesymbol\sffamily\footnotesize  555-123-456-789}}
\fancyhead[R]{\parbox[t]{.3333\textwidth}{\emailsymbol\sffamily\footnotesize  [email protected]}}
}
\makeatletter
\let\ps@plain\ps@myfancy
\let\ps@empty\ps@myfancy
\makeatother
\pagestyle{myfancy}

% Redefinitions of \makecvtitle, opening and closing to
% have the desired formatting for first and family names
\makeatletter
\renewcommand*{\makecvtitle}{%
  % recompute lengths (in case we are switching from letter to resume, or vice versa)
  \recomputecvlengths%
  % optional detailed information (pre-rendering)
  \def\phonesdetails{}%
  \collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number
    \protected@edef\phonesdetails{\phonesdetails\protect\makenewline\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}}%
  \def\socialsdetails{}%
  \collectionloop{socials}{% the key holds the social type (=symbol command prefix), the item holds the link
    \protected@edef\socialsdetails{\socialsdetails\protect\makenewline\csname\collectionloopkey socialsymbol\endcsname\collectionloopitem}}%
  \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 and addresscountry will always be defined but could be empty
        \ifthenelse{\equal{\@addresscountry}{}}{}{\makenewline\@addresscountry}}%
      \phonesdetails% needs to be pre-rendered as loops and tabulars seem to conflict
      \ifthenelse{\isundefined{\@email}}{}{\makenewline\emailsymbol\emaillink{\@email}}%
      \ifthenelse{\isundefined{\@homepage}}{}{\makenewline\homepagesymbol\httplink{\@homepage}}%
      \socialsdetails% needs to be pre-rendered as loops and tabulars seem to conflict
      \ifthenelse{\isundefined{\@extrainfo}}{}{\makenewline\@extrainfo}%
    \end{tabular}
  }%
  % optional photo (pre-rendering)
  \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}\par\smallskip\namestyle{\@lastname}%
    \ifthenelse{\equal{\@title}{}}{}{\\[1.25em]\titlestyle{\@title}}%
  \end{minipage}%
  \hfill%
  % optional detailed information (rendering)
  \llap{\usebox{\makecvtitledetailsbox}}% \llap is used to suppress the width of the box, allowing overlap if the value of makecvtitlenamewidth is forced
  % optional photo (rendering)
  \usebox{\makecvtitlepicturebox}\\[2.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
\renewcommand*{\makeletterclosing}{
  \@closing\\[3em]%
  {\bfseries\@firstname\\\@lastname}%
  \ifthenelse{\isundefined{\@enclosure}}{}{%
    \\%
    \vfill%
    {\color{color2}\itshape\enclname: \@enclosure}}}
\renewcommand*{\makelettertitle}{%
  % recompute lengths (in case we are switching from letter to resume, or vice versa)
  \recomputeletterlengths%
  % sender contact info
  \hfill%
  \begin{minipage}{.5\textwidth}%
    \raggedleft%
    \addressfont\textcolor{color2}{%
      {\bfseries\upshape\@firstname\\\@lastname}\@firstdetailselementfalse%
      \ifthenelse{\isundefined{\@addressstreet}}{}{\makenewline\addresssymbol\@addressstreet%
        \ifthenelse{\equal{\@addresscity}{}}{}{\makenewline\@addresscity}% if \addresstreet is defined, \addresscity and addresscountry will always be defined but could be empty
        \ifthenelse{\equal{\@addresscountry}{}}{}{\makenewline\@addresscountry}}%
      \collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number
        \makenewline\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}%
      \ifthenelse{\isundefined{\@email}}{}{\makenewline\emailsymbol\emaillink{\@email}}%
      \ifthenelse{\isundefined{\@homepage}}{}{\makenewline\homepagesymbol\httplink{\@homepage}}%
      \ifthenelse{\isundefined{\@extrainfo}}{}{\makenewline\@extrainfo}}%
    \end{minipage}\\[1em]
  % recipient block
  \begin{minipage}[t]{.5\textwidth}
    \raggedright%
    \addressfont%
    {\bfseries\upshape\@recipientname}\\%
    \@recipientaddress%
  \end{minipage}
  % date
  \hfill% US style
%  \\[1em]% UK style
  \@date\\[2em]% US informal style: "January 1, 1900"; UK formal style: "01/01/1900"
  % opening
  \raggedright%
  \@opening\\[1.5em]%
  % ensure no extra spacing after \makelettertitle due to a possible blank line
%  \ignorespacesafterend% not working
  \hspace{0pt}\par\vspace{-\baselineskip}\vspace{-\parskip}}

\makeatother

\makeatletter
\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}
\makeatother

\firstname{Prename}
\familyname{Surname}
\title{Curriculum vitae}              
\address{}{}  
\photo[128pt]{picture}                        

\begin{document}

\makecvtitle
born 99.11.999 in smallcity

\section{school education}

\cventry{1996- 2008}{Abitur}{School City}{}{}{grade: x,x}  
\cventry{1996--2000}{elementary school}{}{}{}{Grundschule somewhere}
\section{studies}

\cventry{02.10.2011-- today}{matriculation Master of Science in xxx}{}{}{}{Joint Masters Program in whatever}
\cventry{07.04.2011}{finishing of Bachelor studies}{}{}{}{grade: x,x title: Bachelor of Science whatever}
\cventry{02.12.2010-01.02.2011}{student assistant}{}{}{}{Chair of xxx  Prof. Dr. xxx \newline student assistant as a tutor of xxx}
\cventry{21.07.2008--29.09.2011}{matriculation Bachelor of Science xxx}{}{}{}{university of xxx}
\section{Bachelor thesis}
\cvline{title}{\emph{Here comes a long title}}
\cvline{supervisor}{Prof. Dr. xxxxx}
\cvline{date}{february 2011}
\cvline{grade}{1.0}

\section{languages}
\cvlanguage{german}{mother tongue}{}
\cvlanguage{english}{fluent}{}

\section{technical knowledge}

\cvline{basic}{Stata, SPSS}
\cvline{expert}{R}

\cvline{miscellaneous}{LaTex, Microsoft Office, Microsoft Dynamics} 


\clearpage

\begin{tikzpicture}[remember picture,overlay]
\draw[color1,line width=10pt] 
  ([yshift=-55pt]current page.north west) -- +(14cm,0pt);
\end{tikzpicture}
\recipient{HR Departmnet}{Corporation\\123 Pleasant Lane\\12345 City, State} 
\date{\today} 
\opening{Dear Sir or Madam,} 
\closing{Sincerely yours,} 
\enclosure[Attached]{curriculum vit\ae{}} 

\makelettertitle 

\lipsum[1-3] 

\makeletterclosing

\end{document}

在此处输入图片描述

当然,xpatch可以使用诸如这样的包来修补相应的命令,从而大大简化代码:

\documentclass[11pt,a4paper]{moderncv}
\moderncvtheme[green]{classic}                  
\usepackage[utf8]{inputenc}                  
\usepackage{floatflt}
\usepackage{fancyhdr} 
\usepackage{geometry}
\geometry{a4paper,left=2cm,right=1cm, top=2cm, bottom=1.5cm,headheight=21pt} 
\usepackage{tikz} 
\usepackage{wrapfig}
\usepackage{xpatch} 
\usepackage{lipsum} 


% Suppress final dot in \cventry
\xpatchcmd{\cventry}{.\strut}{\strut}{}{}

% New page style
\fancypagestyle{myfancy}{
\fancyhead[L]{\parbox[t]{.3333\textwidth}{\sffamily\footnotesize
  Address Line 1\\Address Line 2}}
\fancyhead[C]{\parbox[t]{.3333\textwidth}{\fixedphonesymbol\sffamily\footnotesize  555-123-456-789}}
\fancyhead[R]{\parbox[t]{.3333\textwidth}{\emailsymbol\sffamily\footnotesize  [email protected]}}
}
\makeatletter
\let\ps@plain\ps@myfancy
\let\ps@empty\ps@myfancy
\makeatother
\pagestyle{myfancy}

\makeatletter
\xpatchcmd{\makecvtitle}{\namestyle{\@firstname\ \@lastname}}{\namestyle{\@firstname}\par\smallskip\namestyle{\@lastname}}{}{}
\xpatchcmd{\makelettertitle}{\@firstname~\@lastname}{\@firstname\\\@lastname}{}{}
\xpatchcmd{\makeletterclosing}{\@firstname~\@lastname}{\@firstname\\\@lastname}{}{}
\makeatother

\makeatletter
\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}
\makeatother

\firstname{Prename}
\familyname{Surname}
\title{Curriculum vitae}              
\address{}{}  
\photo[128pt]{picture}                        

\begin{document}

\makecvtitle
born 99.11.999 in smallcity

\section{school education}

\cventry{1996- 2008}{Abitur}{School City}{}{}{grade: x,x}  
\cventry{1996--2000}{elementary school}{}{}{}{Grundschule somewhere}
\section{studies}

\cventry{02.10.2011-- today}{matriculation Master of Science in xxx}{}{}{}{Joint Masters Program in whatever}
\cventry{07.04.2011}{finishing of Bachelor studies}{}{}{}{grade: x,x title: Bachelor of Science whatever}
\cventry{02.12.2010-01.02.2011}{student assistant}{}{}{}{Chair of xxx  Prof. Dr. xxx \newline student assistant as a tutor of xxx}
\cventry{21.07.2008--29.09.2011}{matriculation Bachelor of Science xxx}{}{}{}{university of xxx}
\section{Bachelor thesis}
\cvline{title}{\emph{Here comes a long title}}
\cvline{supervisor}{Prof. Dr. xxxxx}
\cvline{date}{february 2011}
\cvline{grade}{1.0}

\section{languages}
\cvlanguage{german}{mother tongue}{}
\cvlanguage{english}{fluent}{}

\section{technical knowledge}

\cvline{basic}{Stata, SPSS}
\cvline{expert}{R}

\cvline{miscellaneous}{LaTex, Microsoft Office, Microsoft Dynamics} 


\clearpage

\begin{tikzpicture}[remember picture,overlay]
\draw[color1,line width=10pt] 
  ([yshift=-55pt]current page.north west) -- +(14cm,0pt);
\end{tikzpicture}
\recipient{HR Departmnet}{Corporation\\123 Pleasant Lane\\12345 City, State} 
\date{\today} 
\opening{Dear Sir or Madam,} 
\closing{Sincerely yours,} 
\enclosure[Attached]{curriculum vit\ae{}} 

\makelettertitle 

\lipsum[1-3] 

\makeletterclosing

\end{document}

初始版本的代码:

\documentclass[11pt,a4paper]{moderncv}
\moderncvtheme[green]{classic}                  
\usepackage[utf8]{inputenc}                  
\usepackage{floatflt}
\usepackage{fancyhdr} 
\usepackage{geometry}
\geometry{a4paper,left=2cm,right=1cm, top=2cm, bottom=1.5cm,headheight=21pt} 
\usepackage{tikz} 
\usepackage{wrapfig}
\usepackage{lipsum} 

% Suppress final dot in \cventry
% Suppress final dot in \cventry
\renewcommand*\cventry[7][.25em]{%
  \cvitem[#1]{#2}{%
    {\bfseries#3}%
    \ifthenelse{\equal{#4}{}}{}{, {\slshape#4}}%
    \ifthenelse{\equal{#5}{}}{}{, #5}%
    \ifthenelse{\equal{#6}{}}{}{, #6}%
    \strut%
    \ifx&#7&%
      \else{\newline{}\begin{minipage}[t]{\linewidth}\small#7\end{minipage}}\fi}}
% New page style
\fancypagestyle{myfancy}{
\fancyhead[L]{\parbox[t]{.3333\textwidth}{\sffamily\footnotesize
  Address Line 1\\Address Line 2}}
\fancyhead[C]{\parbox[t]{.3333\textwidth}{\fixedphonesymbol\sffamily\footnotesize  555-123-456-789}}
\fancyhead[R]{\parbox[t]{.3333\textwidth}{\emailsymbol\sffamily\footnotesize  [email protected]}}
}
\makeatletter
\let\ps@plain\ps@myfancy
\let\ps@empty\ps@myfancy
\makeatother
\pagestyle{myfancy}

\makeatletter
\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}
\makeatother

\firstname{Prename\\[.2ex]}
\familyname{\unskip Surname}
\title{Curriculum vitae}              
\address{}{}  
\photo[128pt]{picture}                        

\begin{document}

\makecvtitle
born 99.11.999 in smallcity

\section{school education}

\cventry{1996- 2008}{Abitur}{School City}{}{}{grade: x,x}  
\cventry{1996--2000}{elementary school}{}{}{}{Grundschule somewhere}
\section{studies}

\cventry{02.10.2011-- today}{matriculation Master of Science in xxx}{}{}{}{Joint Masters Program in whatever}
\cventry{07.04.2011}{finishing of Bachelor studies}{}{}{}{grade: x,x title: Bachelor of Science whatever}
\cventry{02.12.2010-01.02.2011}{student assistant}{}{}{}{Chair of xxx  Prof. Dr. xxx \newline student assistant as a tutor of xxx}
\cventry{21.07.2008--29.09.2011}{matriculation Bachelor of Science xxx}{}{}{}{university of xxx}
\section{Bachelor thesis}
\cvline{title}{\emph{Here comes a long title}}
\cvline{supervisor}{Prof. Dr. xxxxx}
\cvline{date}{february 2011}
\cvline{grade}{1.0}

\section{languages}
\cvlanguage{german}{mother tongue}{}
\cvlanguage{english}{fluent}{}

\section{technical knowledge}

\cvline{basic}{Stata, SPSS}
\cvline{expert}{R}

\cvline{miscellaneous}{LaTex, Microsoft Office, Microsoft Dynamics} 


\clearpage

\begin{tikzpicture}[remember picture,overlay]
\draw[color1,line width=10pt] 
  ([yshift=-55pt]current page.north west) -- +(14cm,0pt);
\end{tikzpicture}
\recipient{HR Departmnet}{Corporation\\123 Pleasant Lane\\12345 City, State} 
\date{\today} 
\opening{Dear Sir or Madam,} 
\closing{Sincerely yours,} 
\enclosure[Attached]{curriculum vit\ae{}} 

\makelettertitle 

\lipsum[1-3] 

\makeletterclosing

\end{document}

相关内容