LaTeX forum ⇒ Curricula Vitae / Résumésmoderncv spacing in title changes after \makelettertitle Topic is solved

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

moderncv spacing in title changes after \makelettertitle

Postby RobTex » Tue Oct 04, 2016 11:59 pm

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:

  1. \documentclass[11pt,a4paper,sans]{moderncv}
  2. \moderncvtheme[blue]{casual}
  3. \usepackage[ngerman]{babel}
  4. \usepackage{amsmath}
  5. \usepackage[left=2.2cm,right=2.2cm,top=2.2cm,bottom=2.2cm,includeheadfoot]{geometry}
  6. \nopagenumbers
  7. \firstname{First}
  8. \familyname{Last}
  9. \title{Curriculum Vitae}
  10. \address{Home}
  11.  
  12. \begin{document}
  13. \recipient{Recipient}{}
  14. \opening{Opening}
  15. \closing{Closing}
  16.  
  17. \makelettertitle
  18.  
  19. \makeletterclosing
  20.  
  21. \maketitle
  22.  
  23. \section{Start}
  24. \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}{}{}
  25.  
  26. \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 53 times
min1.pdf
(112.92 KiB) Downloaded 45 times

Tags:

RobTex
Posts: 3
Joined: Tue Oct 04, 2016 11:50 pm

Postby RobTex » Wed Oct 05, 2016 9:20 am

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:

  1. \documentclass[11pt,a4paper,sans]{moderncv}
  2. \moderncvtheme[blue]{casual}
  3. \usepackage[ngerman]{babel}
  4. \usepackage{amsmath}
  5. \usepackage[left=2.2cm,right=2.2cm,top=2.2cm,bottom=2.2cm,includeheadfoot]{geometry}
  6. \nopagenumbers
  7. \firstname{First}
  8. \familyname{Last}
  9. \title{Curriculum Vitae}
  10. \address{Home}
  11.  
  12. \usepackage{ragged2e}
  13.  
  14. \begin{document}
  15. \recipient{Recipient}{}
  16. \opening{Opening}
  17. \closing{Closing}
  18.  
  19. \makelettertitle
  20.  
  21. \makeletterclosing
  22.  
  23. \justifying
  24.  
  25. \maketitle
  26.  
  27. \section{Start}
  28. \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}{}{}
  29.  
  30. \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

Postby RobTex » Wed Oct 05, 2016 9:37 am

PS: I have contacted the author of moderncv and reported this issue

User avatar
Stefan Kottwitz
Site Admin
Posts: 8523
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Wed Oct 05, 2016 1:57 pm

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
Site admin


Return to “Curricula Vitae / Résumés”

Who is online

Users browsing this forum: No registered users and 3 guests