在 ModernCV 中的应用程序中添加收件人地址

在 ModernCV 中的应用程序中添加收件人地址

我试图\recipient{HR Departmnet}{Corporation\\123 Pleasant Lane\\12345 City, State}在简历之后将收件人添加到申请中,但 PDF 文件中没有任何内容。我该如何将收件人添加到申请中?

我只想说一下,简历里的所有信息都是假的。

代码

\documentclass[12pt,a4paper]{moderncv}
\moderncvtheme[red]{casual} %[blue, green, orange, red, grey]{casual, classic}

\setlength{\hintscolumnwidth}{4cm} %Laenge link
\usepackage{lmodern}
\renewcommand{\baselinestretch}{1.5}
\usepackage{lipsum}
\usepackage{ragged2e}
\usepackage{eurosym}
\usepackage[ngerman]{babel}
\usepackage{amsmath}
\usepackage[utf8]{inputenc}
\firstname{Alex}
\familyname{Baumann}
\title{Lebenslauf}
\address{Stek}
\mobile{0136/ 678 910 1112 }
\email{[email protected]}
\photo[4cm]{fadisbild}
\begin{document}
\maketitle



\cvline{}{}{}
\cvline{}{}{}
\cvline{}{}{}
\cvline{}{}{}


%%%%%%%%%%%%%%%% To remove the cover letter, comment out this entire block

\clearpage

\recipient{HR Departmnet}{Corporation\\123 Pleasant Lane\\12345 City, State}


\begin{justify}
Sehr geehrte Damen und Herren,

\bigbreak

Ich bewerbe mich hiermit 

\cvline{}{}{}

Freundliche Grüße, \\
Alex Baumann

\end{justify}
\end{document}

答案1

您需要按照文件所示填写您的template.tex信件moderncv

您错过了以下几行:

\recipient{HR Department}{Corporation\\123 Pleasant Lane\\12345 City, State}
\date{January 01, 1984}
\opening{Dear Sir or Madam,}% Sehr geehrte Damen und Herren
\closing{Yours faithfully,}% freundliche Grüße
\enclosure[Attached]{curriculum vit\ae{}}          % use an optional argument to use a string other than "Enclosure", or redefine \enclname
\makelettertitle

你应该改变信的结尾

Freundliche Grüße, \\
Alex Baumann

到:

\makeletterclosing

最后你不需要环境justify

请参阅以下 MWE:

\documentclass[12pt,a4paper]{moderncv}
\moderncvtheme[red]{casual} %[blue, green, orange, red, grey]{casual, classic}

\setlength{\hintscolumnwidth}{4cm} %Laenge link
\setlength{\footskip}{42.5pt}

\renewcommand{\baselinestretch}{1.5}

\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{lmodern}
\usepackage{lipsum} % blind text
\usepackage{ragged2e}
\usepackage{eurosym}
\usepackage{amsmath}

\firstname{Alex}
\familyname{Baumann}
\title{Lebenslauf}
\address{Stek}
\mobile{0136/ 678 910 1112}
\email{[email protected]}
\photo[4cm]{example-image-A}%fadisbild


\begin{document}
\maketitle

\cvline{Test}{}{}
\cvline{}{}{}
\cvline{}{}{}
\cvline{}{}{}


\clearpage

\recipient{HR Department}{Corporation\\123 Pleasant Lane\\12345 City, State}
%\date{January 01, 1984} % english
\date{01.01.1984}        % german
\opening{Sehr geehrte Damen und Herren,} % Dear Sir or Madam,
\closing{Mit freundlichen Grüßen}% Yours faithfully,
%\enclosure[Anlagen]{curriculum vit\ae{}} 
\makelettertitle

\bigbreak

Ich bewerbe mich hiermit 

\lipsum[1]

\makeletterclosing % <==================================================

\end{document}

结果:

结果页面 2

相关内容