我正在使用包moderncv
编写我的简历。我有几个\cventry
块。现在我想全局更改块末尾A
和下一个块之间的间距B
。可以吗?
我发现您可以使用\cventry[10em]
,但就我而言它不起作用。
这里是 MWE:
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{banking}
\moderncvcolor{blue}
\usepackage[scale=0.7]{geometry}
\name{John}{Doe}
\title{Resume title}
\address{street and number}{postcode city}{country}
\phone[mobile]{+1~(234)~567~890}
\renewcommand*{\cventry}[9][.25em]{%
\begin{tabular*}{\textwidth}{l@{\extracolsep{\fill}}r}%
{\bfseries #4} & {\bfseries #5} \\%
{\itshape #3\ifthenelse{\equal{#6}{}}{}{, #6}} & {\itshape #2}\\%
{#7} & \ifthenelse{\equal{#8}{}}{}{\\ {#8} & \\}%
\end{tabular*}%
}
\begin{document}
\makecvtitle
\section{Education}
\cventry[10em]{Grade}{Degree}{Institution}{year--year}{M.Sc.}{Majors}{Majors}{}
\cventry{year--year}{Degree}{Institution}{City}{Grade}{Majors}{Majors}{}
\end{document}
答案1
你必须\par\addvspace{#1}%
添加
.
.
.
\end{tabular*}%
\par\addvspace{#1}%
}
在您的定义中,您离开了#1
,因此10em
没有影响。
\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{banking}
\moderncvcolor{blue}
\usepackage[scale=0.7]{geometry}
\name{John}{Doe}
\title{Resume title}
\address{street and number}{postcode city}{country}
\phone[mobile]{+1~(234)~567~890}
\renewcommand*{\cventry}[9][.25em]{%
\begin{tabular*}{\textwidth}{l@{\extracolsep{\fill}}r}%
{\bfseries #4} & {\bfseries #5} \\%
{\itshape #3\ifthenelse{\equal{#6}{}}{}{, #6}} & {\itshape #2}\\%
{#7} & \ifthenelse{\equal{#8}{}}{}{\\ {#8} & \\}%
\end{tabular*}%
\par\addvspace{#1}%
}
\begin{document}
\makecvtitle
\section{Education}
\cventry[10em]{Grade}{Degree}{Institution}{year--year}{M.Sc.}{Majors}{Majors}{}
\cventry{year--year}{Degree}{Institution}{City}{Grade}{Majors}{Majors}{}
\end{document}