moderncv 修改 cvitem 的右边距或长度

moderncv 修改 cvitem 的右边距或长度

我正在尝试编辑我的简历,但在管理简历的间距方面遇到了麻烦。我希望简历的长度短一点,更具体地说,我希望行尾比其他元素短一点。

在此处输入图片描述

这里我在 cvitem 中有一个 itemize。基本上我希望整个 cvitem 的长度更短。我尝试修改一些 moderncv 类,但无济于事。感谢帮助。谢谢!

编辑:这里的代码

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

    \usepackage{verbatim}

    % moderncv themes
    \moderncvtheme[blue]{banking}                 % optional argument are 'blue' (default), 'orange', 'red', 'green', 'grey' and 'roman' (for roman fonts, instead of sans serif fonts)
    %\moderncvtheme[green]{classic}                % idem

    % character encoding
    \usepackage[utf8]{inputenc}                   % replace by the encoding you are using

    % adjust the page margins
    \usepackage[scale=0.93]{geometry}
    .....
    \begin{document}
    ....
    \cvitem{Projects}{\begin{itemize} 
    \item \textbf{Porting packages to Image Packaging System in OpenSolaris} \newline{} Sun Microsystems Internship. Ported applications such as Parcellite, VLC to the IPS in OpenSolaris. Published in Fibonacci, Vol 1, SF-FOSS, IIITM, Gwalior, India \end{itemize}}
    \end{document}

答案1

您可以进行修改\cventry,使其内容位于 内minipage。将这些行放入您的序言中:

\renewcommand*{\cvitem}[3][.25em]{%
  \ifthenelse{\equal{#2}{}}{}{\begin{minipage}[t]{15cm}\hintstyle{#2}: }{#3}\end{minipage}%
  \par\addvspace{#1}}

15cm根据您的需要进行调整。

梅威瑟:

\documentclass[12pt,a4paper,sans]{moderncv}
 \usepackage{verbatim}

% moderncv themes
\moderncvtheme[blue]{banking}                 % optional argument are 'blue' (default), 'orange', 'red', 'green', 'grey' and 'roman' (for roman fonts, instead of sans serif fonts)
%\moderncvtheme[green]{classic}                % idem

% character encoding
\usepackage[utf8]{inputenc}                   % replace by the encoding you are using

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

\firstname{John}\familyname{Doe}

\renewcommand*{\cvitem}[3][.25em]{%
  \ifthenelse{\equal{#2}{}}{}{\begin{minipage}[t]{15cm}\hintstyle{#2}: }{#3}\end{minipage}%
  \par\addvspace{#1}}


\begin{document}

\maketitle

\cvitem{Projects}{\begin{itemize}
\item \textbf{Porting packages to Image Packaging System in OpenSolaris} \newline{} Sun Microsystems Internship. Ported applications such as Parcellite, VLC to the IPS in OpenSolaris. Published in Fibonacci, Vol 1, SF-FOSS, IIITM, Gwalior, India \end{itemize}}

\end{document} 

输出:

在此处输入图片描述

相关内容