如何减少模板简历中的间距

如何减少模板简历中的间距

Ocean Engineering我正在使用模板简历。我发现标题和第一部分后的间距Education很大,想减少它。我试过一种简单的方法,但没有用。

我的代码:

\documentclass[12pt,letterpaper,sans]{moderncv} 
\moderncvstyle{casual} 
\moderncvcolor{black} 
\usepackage[body={8.5in, 11in},top=1in, left=1in, right=1in, bottom=1in]{geometry}    
\firstname{Shane} % Your first name
\familyname{Thirkell} % Your last name
% All information in this block is optional, comment out any lines you don't need
\title{Ocean Engineering}
\address{12 Chain Bridge Drive}{Newburyport, Massachusetts 01950}
\mobile{(978)-270-0371}
\email{shane \textunderscore [email protected]}    
\begin{document}        
    \makecvtitle % Print the CV title    
    \section{Education}
    \cventry{2015-2018}{Bachelor of Science}{University of Rhode Island}{Narragansett, RI}{\textit{GPA - 3.42}}{\bfseries Ocean Engineering, Renewable Energy Track}  % Arguments not required can be left empty
\end{document}

在此处输入图片描述

答案1

您可以\vspace*{-1cm}在部分之前使用。

答案2

使用当前版本moderncv2.1.0,您可以修补创建 cv 标题的命令,\\[2.5em]在序言中包含您不想要的空格(),如下所示:

\patchcmd{\makecvhead}{% <==============================================
  \\[2.5em]%
  }{%
  \\[1em]% <========================================================= change 1em to anything you like
  }{%success
  }{%failure
  }

使用以下完整的 MWE

\documentclass[12pt,letterpaper,sans]{moderncv} 

\moderncvstyle{casual} % head 2 body 1 foot 1
\moderncvcolor{black} 
\usepackage[body={8.5in, 11in},top=1in, left=1in, right=1in, bottom=1in]{geometry}    

\patchcmd{\makecvhead}{% <==============================================
  \\[2.5em]%
  }{%
  \\[1em]% <========================================================= change 1em to anything you like
  }{%success
  }{%failure
  }

\firstname{Shane} % Your first name
\familyname{Thirkell} % Your last name
% All information in this block is optional, comment out any lines you don't need
\title{Ocean Engineering}
\address{12 Chain Bridge Drive}{Newburyport, Massachusetts 01950}
\mobile{(978)-270-0371}
\email{shane \textunderscore [email protected]}
 
 
\begin{document}
    \makecvtitle % Print the CV title
    \section{Education}
    \cventry{2015-2018}{Bachelor of Science}{University of Rhode Island}{Narragansett, RI}{\textit{GPA - 3.42}}{\bfseries Ocean Engineering, Renewable Energy Track}  % Arguments not required can be left empty
\end{document}

您将获得以下期望的 pdf:

希望 pdf

相关内容