我怎样才能删除间距?

我怎样才能删除间距?

如何删除下图所示的间距:

在此处输入图片描述

这是我的代码:

\documentclass[11pt,a4paper,sans]{moderncv} % Font sizes: 10, 11, or 12; paper sizes: a4paper, letterpaper, a5paper, legalpaper, executivepaper or landscape; font families: sans or roman

\moderncvstyle{casual} % CV theme - options include: 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{blue} % CV color - options include: 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'

\usepackage{lipsum} % Used for inserting dummy 'Lorem ipsum' text into the template
\usepackage[top=1.1cm, bottom=1.5cm, left=2cm, right=2cm]{geometry}
%\usepackage[scale=0.75]{geometry} % Reduce document margins
%\setlength{\hintscolumnwidth}{3cm} % Uncomment to change the width of the dates column
%\setlength{\makecvtitlenamewidth}{10cm} % For the 'classic' style, uncomment to adjust the width of the space allocated to your name




%----------------------------------------------------------------------------------------
%   NAME AND CONTACT INFORMATION SECTION
%----------------------------------------------------------------------------------------

\firstname{Mehmet} % Your first name
\familyname{DEMIR} % Your last name

% All information in this block is optional, comment out any lines you don't need
\title{Étudiant en réseaux et télécommunications}
\address{50, rue de la Paix}{77270 Villeparisis}
\phone{06 52 42 28 65}
\email{[email protected]}
\extrainfo{23 ans}
%\homepage{staff.org.edu/~jsmith}{staff.org.edu/$\sim$jsmith} % The first argument is the url for the clickable link, the second argument is the url displayed in the template - this allows special characters to be displayed such as the tilde in this example
\extrainfo{Permis B / Véhiculé}
\photo[100pt][0.4pt]{pictures/picture} % The first bracket is the picture height, the second is the thickness of the frame around the picture (0pt for no frame)
\quote{Obtenir un contrat d'apprentissage d'une durée de trois ans en cycle ingénieur}


%----------------------------------------------------------------------------------------

\begin{document}

\makecvtitle % Print the CV title

\section{Formations}
\cventry{2013 -- 2014}{Formation d'Ingénieurs}{Institut Galilée}{}{}{Spécialité Télécommunications et Réseaux}
\cventry{2010 -- 2013}{Diplôme Universitaire de Technologie}{I.U.T de Villetaneuse (Paris XIII)}{}{}{Spécialité Télécommunications et Réseaux}
\cventry{2010}{Baccalauréat Scientifique}{Lycée Gérard de Nerval (Noisiel, 77186)}{}{}{Spécialité Physique-Chimie}

\section{Compétences}
\cvitem{Langages}{Java, HTML5/CSS3, Javascript, C/C++, PHP, SQL, Script Shell, XML}
\cvitem{Environnements}{Windows, Linux, Android}
\cvitem{Réseaux}{Mise en places des architectures LAN / WLAN}
\cvitem{}{Principe d'interconnexion de réseaux TCP/ IP}
\cvitem{}{Paramétrage de routeurs CISCO}
\cvitem{}{Mise en place d'outils réseaux sur un serveur Linux : DHCP, VPN, firewall (iptables) et proxy}
\cvitem{}{Réseaux locaux, Ethernet}
\cvitem{Télécoms}{Configuration PABX, VoIP}
\cvitem{}{Fibre optique}
\cvitem{Langues}{\textbf{Anglais}\hspace{6.32cm}Bon niveau (\textbf{950} au dernier \textbf{TOEIC})}
\cvitem{}{Turc\hspace{6.972cm}Bilingue}
\cvitem{}{Espagnol\hspace{6.215cm}Débutant}
\cvitem{Logiciels}{Microsoft Office, Open Office}

\section{Expériences professionnelles}

\cventry{Mars 2012\\\`a  Aujourd'hui}{Auto-entrepreneur}{}{}{}{Gestion de Oues Peinture, entreprise spécialisée dans la peinture et travaux de rénovation.\newline{}}

\cventry{Avril 2013\\\`a Juin 2013}{Stage de fin d'études}{University of Bergen}{Norv\`ege}{}{Développement d'une application mobile Android pour contr\^oler une prise de courant GSM.\newline{}}

\cventry{2006 - 2012}{Travailleur saisonnier}{SBR Décoration}{entreprise de B.T.P}{}{
\begin{itemize}%
\item Préparation de commandes, factures et devis,
\item Elaboration de l'emploi du temps des salariés,
\item Gestion des courriers de l'Assurance Retraite et de l'URSSAF.\newline{}
\end{itemize}}

\section{Centres d'intérêt}
\cvitem{Intérêts}{Association << Entraide Scolaire Amicale >>}
\cvitem{Sport}{Football en salle, musculation}
\cvitem{Cinéma}{Films et séries anglophones en version originale}


%----------------------------------------------------------------------------------------
%   LANGUAGES SECTION
%----------------------------------------------------------------------------------------
\section{Languages}

\cvitemwithcomment{English}{Mothertongue}{}
\cvitemwithcomment{Spanish}{Intermediate}{Conversationally fluent}
\cvitemwithcomment{Dutch}{Basic}{Basic words and phrases only}

\end{document}

答案1

更新(moderncvv2.0)

对于moderncvv2.0,需要修补的命令不再是\makecvtitle\makecvhead所以此版本的正确修补程序是

  \patchcmd{\makecvhead}%
  {\hfill\null\\[2.5em]}%
  {\hfill\null\\[0em]}%
  {}%
  {}%

原始答案(适用于旧版本moderncv

该样式在 后casual添加了 的垂直间距。2.5em\quote

减少该间距的一种方法是“修补”命令\makecvtitle。例如,您可以将其设置为0em

为此,请在序言中添加以下几行:

  \patchcmd{\makecvtitle}%
  {\hfill\null\\[2.5em]}%
  {\hfill\null\\[0em]}%
  {}%
  {}%

您可以0em根据您的需要进行调整(即使是负值)。

因此,以下 MWE

\documentclass[11pt,a4paper,sans]{moderncv} % Font sizes: 10, 11, or 12; paper sizes: a4paper, letterpaper, a5paper, legalpaper, executivepaper or landscape; font families: sans or roman

\moderncvstyle{casual} % CV theme - options include: 'casual' (default), 'classic', 'oldstyle' and 'banking'
\moderncvcolor{blue} % CV color - options include: 'blue' (default), 'orange', 'green', 'red', 'purple', 'grey' and 'black'

\patchcmd{\makecvtitle}%
  {\hfill\null\\[2.5em]}%
  {\hfill\null\\[0em]}%
  {}%
  {}%

\usepackage[utf8]{inputenc}

\usepackage{lipsum} % Used for inserting dummy 'Lorem ipsum' text into the template
\usepackage[top=1.1cm, bottom=1.5cm, left=2cm, right=2cm]{geometry}
%\usepackage[scale=0.75]{geometry} % Reduce document margins
%\setlength{\hintscolumnwidth}{3cm} % Uncomment to change the width of the dates column
%\setlength{\makecvtitlenamewidth}{10cm} % For the 'classic' style, uncomment to adjust the width of the space allocated to your name




%----------------------------------------------------------------------------------------
%   NAME AND CONTACT INFORMATION SECTION
%----------------------------------------------------------------------------------------

\firstname{Mehmet} % Your first name
\familyname{DEMIR} % Your last name

% All information in this block is optional, comment out any lines you don't need
\title{Étudiant en réseaux et télécommunications}
\address{50, rue de la Paix}{77270 Villeparisis}
\phone{06 52 42 28 65}
\email{[email protected]}
\extrainfo{23 ans}
%\homepage{staff.org.edu/~jsmith}{staff.org.edu/$\sim$jsmith} % The first argument is the url for the clickable link, the second argument is the url displayed in the template - this allows special characters to be displayed such as the tilde in this example
\extrainfo{Permis B / Véhiculé}
\photo[100pt][0.4pt]{picture} % The first bracket is the picture height, the second is the thickness of the frame around the picture (0pt for no frame)
\quote{Obtenir un contrat d'apprentissage d'une durée de trois ans en cycle ingénieur}


%----------------------------------------------------------------------------------------

\begin{document}

\makecvtitle % Print the CV title

\section{Formations}
\cventry{2013 -- 2014}{Formation d'Ingénieurs}{Institut Galilée}{}{}{Spécialité Télécommunications et Réseaux}
\cventry{2010 -- 2013}{Diplôme Universitaire de Technologie}{I.U.T de Villetaneuse (Paris XIII)}{}{}{Spécialité Télécommunications et Réseaux}
\cventry{2010}{Baccalauréat Scientifique}{Lycée Gérard de Nerval (Noisiel, 77186)}{}{}{Spécialité Physique-Chimie}

\section{Compétences}
\cvitem{Langages}{Java, HTML5/CSS3, Javascript, C/C++, PHP, SQL, Script Shell, XML}
\cvitem{Environnements}{Windows, Linux, Android}
\cvitem{Réseaux}{Mise en places des architectures LAN / WLAN}
\cvitem{}{Principe d'interconnexion de réseaux TCP/ IP}
\cvitem{}{Paramétrage de routeurs CISCO}
\cvitem{}{Mise en place d'outils réseaux sur un serveur Linux : DHCP, VPN, firewall (iptables) et proxy}
\cvitem{}{Réseaux locaux, Ethernet}
\cvitem{Télécoms}{Configuration PABX, VoIP}
\cvitem{}{Fibre optique}
\cvitem{Langues}{\textbf{Anglais}\hspace{6.32cm}Bon niveau (\textbf{950} au dernier \textbf{TOEIC})}
\cvitem{}{Turc\hspace{6.972cm}Bilingue}
\cvitem{}{Espagnol\hspace{6.215cm}Débutant}
\cvitem{Logiciels}{Microsoft Office, Open Office}

\section{Expériences professionnelles}

\cventry{Mars 2012\\\`a  Aujourd'hui}{Auto-entrepreneur}{}{}{}{Gestion de Oues Peinture, entreprise spécialisée dans la peinture et travaux de rénovation.\newline{}}

\cventry{Avril 2013\\\`a Juin 2013}{Stage de fin d'études}{University of Bergen}{Norv\`ege}{}{Développement d'une application mobile Android pour contr\^oler une prise de courant GSM.\newline{}}

\cventry{2006 - 2012}{Travailleur saisonnier}{SBR Décoration}{entreprise de B.T.P}{}{
\begin{itemize}%
\item Préparation de commandes, factures et devis,
\item Elaboration de l'emploi du temps des salariés,
\item Gestion des courriers de l'Assurance Retraite et de l'URSSAF.\newline{}
\end{itemize}}

\section{Centres d'intérêt}
\cvitem{Intérêts}{Association << Entraide Scolaire Amicale >>}
\cvitem{Sport}{Football en salle, musculation}
\cvitem{Cinéma}{Films et séries anglophones en version originale}


%----------------------------------------------------------------------------------------
%   LANGUAGES SECTION
%----------------------------------------------------------------------------------------
\section{Languages}

\cvitemwithcomment{English}{Mothertongue}{}
\cvitemwithcomment{Spanish}{Intermediate}{Conversationally fluent}
\cvitemwithcomment{Dutch}{Basic}{Basic words and phrases only}

\end{document} 

产生以下结果:

在此处输入图片描述

相关内容