Curricula Vitae / Résumésmoderncv spacing in title changes after \makelettertitle

ModernCV, Friggeri, Plasmati, Classicthesis-CV, and more
Post Reply
RobTex
Posts: 3
Joined: Tue Oct 04, 2016 11:50 pm

moderncv spacing in title changes after \makelettertitle

Post by RobTex »

Good evening.

I have created my CV using 'moderncv' and I was quite happy with the result - until I added my cover letter. As soon as I include the command \makelettertitle the spacing in the header grows, which looks just wrong.

Here is my MWE:

Code: Select all

\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvtheme[blue]{casual}
\usepackage[ngerman]{babel}
\usepackage{amsmath}
\usepackage[left=2.2cm,right=2.2cm,top=2.2cm,bottom=2.2cm,includeheadfoot]{geometry}
\nopagenumbers
\firstname{First}
\familyname{Last}
\title{Curriculum Vitae}
\address{Home}

\begin{document}
	\recipient{Recipient}{}
	\opening{Opening}
	\closing{Closing}

	\makelettertitle

	\makeletterclosing

	\maketitle

	\section{Start}
	\cventry{Lorem}{ipsum}{dolor sit amet, consectetur}{adipiscing elit. Nulla convallis arcu eu mauris luctus, sit amet pulvinar sem vehicula. Etiam cursus dignissim metus, at faucibus orci vestibulum id}{}{}

\end{document}
I am also attaching two PDF files to show the difference: min1.pdf shows how the title looks like when the command \makelettertitle is removed from the code. And as soon as you add this command the spacing between 'First Last' and 'Curriculum Vitae' increases as shown in min2.pdf

I am aware that moderncv is not one of the best documented packages, but I really hope that someone here is able to help me how I can reduce the spacing so that it looks like it's supposed to.

Thank you all!

Kind Regards,
Rob
Attachments
min2.pdf
(115.01 KiB) Downloaded 560 times
min1.pdf
(112.92 KiB) Downloaded 506 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
RobTex
Posts: 3
Joined: Tue Oct 04, 2016 11:50 pm

moderncv spacing in title changes after \makelettertitle

Post by RobTex »

I have received a solution in a German speaking LaTeX forum and I'd like to post it here in case someone else finds this thread.

The package ragged2e and its command \justifying fixes this (potential) bug in the definition of \makeletterhead. New MWE with two added lines:

Code: Select all

\documentclass[11pt,a4paper,sans]{moderncv} 
\moderncvtheme[blue]{casual} 
\usepackage[ngerman]{babel} 
\usepackage{amsmath} 
\usepackage[left=2.2cm,right=2.2cm,top=2.2cm,bottom=2.2cm,includeheadfoot]{geometry} 
\nopagenumbers 
\firstname{First} 
\familyname{Last} 
\title{Curriculum Vitae} 
\address{Home} 

\usepackage{ragged2e} 

\begin{document} 
   \recipient{Recipient}{} 
   \opening{Opening} 
   \closing{Closing} 

   \makelettertitle 

   \makeletterclosing 

   \justifying 

   \maketitle 

   \section{Start} 
   \cventry{Lorem}{ipsum}{dolor sit amet, consectetur}{adipiscing elit. Nulla convallis arcu eu mauris luctus, sit amet pulvinar sem vehicula. Etiam cursus dignissim metus, at faucibus orci vestibulum id}{}{} 

\end{document}
Last edited by RobTex on Wed Oct 05, 2016 2:23 pm, edited 1 time in total.
RobTex
Posts: 3
Joined: Tue Oct 04, 2016 11:50 pm

Re: moderncv spacing in title changes after \makelettertitle

Post by RobTex »

PS: I have contacted the author of moderncv and reported this issue
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

moderncv spacing in title changes after \makelettertitle

Post by Stefan Kottwitz »

Thank your for giving us that information!

Btw. the link to the German post is: moderncv zu großer Abstand im Titel nach \makelettertitle.

Stefan
LaTeX.org admin
Post Reply