Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'd like to add my cover letter with the title "Cover letter" after my CV part in moderncv. I use classic style and I tried to add \title{Cover letter} after the \clearpage and before \makelettertitle but it doesn't print it anything. Has someone solved this problem?

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


\moderncvstyle{classic}                           
\moderncvcolor{blue}                               

\usepackage[scale=0.75]{geometry}
\title{Curriculum vitae}
\name{John}{Doe}


\begin{document}
\thispagestyle{empty}
\pagestyle{empty}
\makecvtitle

\title{Cover letter}
\recipient{HR Departmnet}{Corporation\\123 Pleasant Lane\\12345 City, State} 
\date{\today} 
\opening{Dear Sir or Madam,} 
\closing{Sincerely yours,}


\makelettertitle
\end{document}

I'd like to print "cover letter" title with same font/size as the curriculum vitae title on the cover letter portion of my application.

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Add the following lines in your preamble:

\makeatletter
\patchcmd{\makelettertitle}
  {\recomputeletterlengths}
  {\recomputeletterlengths\titlestyle{\@title}\par\vspace{2cm}}
  {}
  {}
\makeatother

MWE:

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


\moderncvstyle{classic}
\moderncvcolor{blue}

\makeatletter
\patchcmd{\makelettertitle}
  {\recomputeletterlengths}
  {\recomputeletterlengths\titlestyle{\@title}\par\vspace{2cm}}
  {}
  {}
\makeatother

\usepackage[scale=0.75]{geometry}
\title{Curriculum vitae}
\name{John}{Doe}


\begin{document}
\thispagestyle{empty}
\pagestyle{empty}
\makecvtitle

\clearpage

\title{Cover letter}
\recipient{HR Departmnet}{Corporation\\123 Pleasant Lane\\12345 City, State}
\date{\today}
\opening{Dear Sir or Madam,}
\closing{Sincerely yours,}

\makelettertitle
\end{document} 

Output:

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.