moderncv 中的一些格式问题

moderncv 中的一些格式问题

我对我正在制作的简历有几个问题moderncv。首先这是我的代码:

\documentclass[11pt,a4paper]{moderncv}

% moderncv themes
\moderncvtheme[orange]{casual}                

% character encoding
\usepackage[utf8]{inputenc}                   

\usepackage{lipsum} % Just for dummy text

% adjust the page margins
\usepackage[scale=0.8]{geometry}

% personal data
\firstname{John}
\familyname{Doe}
\title{Software Developer} 
\address{Earth}{Universe}
\mobile{+123456789}
\email{[email protected]}

\definecolor{dark-gray}{gray}{0.20}

\quote{{\raggedright\color{dark-gray}\lipsum[2]}}

% to show numerical labels in the bibliography; only useful if you make citations in your resume
\makeatletter
\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}
\makeatother

%----------------------------------------------------------------------------------
%            content
%----------------------------------------------------------------------------------
\begin{document}
\maketitle

\section{Skills}
\cvline{\fontsize{9}{12}\selectfont{Skill1}}{Skills, Skills, Skills}
\cvline{\fontsize{9}{12}\selectfont{Skill1}}{Skills, Skills, Skills}
\cvline{\fontsize{9}{12}\selectfont{Skill1}}{Skills, Skills, Skills}
\cvline{\fontsize{9}{12}\selectfont{Skill1}}{Skills, Skills, Skills}
\cvline{\fontsize{9}{12}\selectfont{Skill1}}{Skills, Skills, Skills}
\cvline{\fontsize{9}{12}\selectfont{Skill1}}{Skills, Skills, Skills}

\section{Experience}
\cventry{Nov 2009 Nov 2011}{Software Developer}{Microsoft}{Earth, Universe}{}{\lipsum[6]
\begin{itemize}
\item Designed and developed features
\item Designed and developed features
\item Designed and developed features
\item Designed and developed features
\item Designed and developed features
\item Designed and developed features
\item Designed and developed features
\item Designed and developed features
\item Designed and developed features
\item Designed and developed features
\item Designed and developed features
\item Designed and developed features
\item Designed and developed features
\item Designed and developed features
\end{itemize}}

\end{document}

所以:

  1. 如何增加引用部分的覆盖面积(宽度方向),使其从绝对左侧开始并跨越到页面的最大右侧(在允许的最大 A4 边距内)?

  2. 如何缩小报价部分和技能之间的差距?

  3. 在 Experience 中的第一个位置,我想要在名称等后面加一行。但是,当我添加\newline(在 Universe 之后)时,会导致两个问题:

    a. 空行中有句号

    b. 整个块移动到第二页(第一页大部分留空),我需要它继续到下一页。

我真的非常感激一些帮助,因为我自己尝试了一些语法,但就是无法做到正确。

谢谢。

答案1

以下一系列补丁应该可以满足您的需求:

\documentclass[11pt,a4paper]{moderncv}

% moderncv themes
\moderncvtheme[orange]{casual}                

% character encoding
\usepackage[utf8]{inputenc}                   

\usepackage{lipsum} % Just for dummy text

% adjust the page margins
\usepackage[scale=0.8]{geometry}

\usepackage{xpatch}

% fix the spacing above the quote
\xpatchcmd\makecvtitle
  {2.5em}
  {12pt}% or whatever: space above the quote
  {}{}
% fix the spacing below the quote (you have to do both!)
\xpatchcmd\makecvtitle
  {2.5em}
  {0pt}% or whatever: space below the quote
  {}{}

% Patch the width of the quote
\xpatchcmd\makecvtitle{\quotewidth}{0.9\textwidth}{}{} % default is .65

% Add a vertical space before the description
\xpatchcmd\cventry
  {\small}
  {\small\vspace*{1ex}} % choose what you want
  {}{}

% personal data
\firstname{John}
\familyname{Doe}
\title{Software Developer} 
\address{Earth}{Universe}
\mobile{+123456789}
\email{[email protected]}

\definecolor{dark-gray}{gray}{0.20}

\quote{\raggedright\color{dark-gray}\lipsum[2]}

% to show numerical labels in the bibliography; 
% only useful if you make citations in your resume
\makeatletter
\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}
\makeatother

%----------------------------------------------------------------------------------
%            content
%----------------------------------------------------------------------------------
\begin{document}
\maketitle

\section{Skills}
\cvline{\footnotesize Skill1}{Skills, Skills, Skills}
\cvline{\footnotesize Skill1}{Skills, Skills, Skills}
\cvline{\footnotesize Skill1}{Skills, Skills, Skills}
\cvline{\footnotesize Skill1}{Skills, Skills, Skills}
\cvline{\footnotesize Skill1}{Skills, Skills, Skills}
\cvline{\footnotesize Skill1}{Skills, Skills, Skills}

\section{Experience}
\cventry{Nov 2009 Nov 2011}
 {Software Developer}
 {Microsoft}
 {Earth, Universe}
 {}
 {%
  \lipsum[6]
  \begin{itemize}
  \item Designed and developed features
  \item Designed and developed features
  \item Designed and developed features
  \item Designed and developed features
  \item Designed and developed features
  \item Designed and developed features
  \item Designed and developed features
  \item Designed and developed features
  \item Designed and developed features
  \item Designed and developed features
  \item Designed and developed features
  \item Designed and developed features
  \item Designed and developed features
  \item Designed and developed features
  \end{itemize}
 }

\end{document}

在此处输入图片描述

相关内容