我正在 ShareLaTeX 中编辑 Friggeri-CV 模板,但我想修改\vspace
特定条目列表(并将其保留为\parsep
其他情况)。除了为其创建另一个环境之外,还有其他方法可以做到这一点吗?
\setlength{\tabcolsep}{0pt}
\newenvironment{entrylist}{%
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}ll }
}{%
\end{tabular*}
}
\renewcommand{\bfseries}{\headingfont\color{headercolor}}
\newcommand{\entry}[4]{%
#1&\parbox[t]{11.8cm}{%
\textbf{#2}%
\hfill%
{\footnotesize\addfontfeature{Color=lightgray} #3}\\%
#4\vspace{\parsep}%
}\\}
答案1
默认\parsep
分享LaTeX的精美简历是5.0pt plus 2.0pt
。你可以保存并恢复它entrylist
:
\newlength{\parsepsave}
\setlength{\parsepsave}{\parsep}% Store \parsep
\setlength{\parsep}{<len>}% New/update \parsep
\begin{entrylist}
\entry ...
\entry ...
...
\end{entrylist}
\setlength{\parsep}{\parsepsave}% Restore \parsep
如果您希望 之间有特定的间隙\entry
,那么您可以\\[<len>]
根据需要发出,因为entrylist
实际上是tabular
:
\begin{entrylist}
\entry
{since 2009}
{Ph.D. {\normalfont candidate in Computer Science}}
{DNET/INRIA, LIP/ÉNS de Lyon}
{\emph{A Quantified Theory of Social Cohesion.}}
\\[1cm]% <-------------- Insert forced gap
\entry
{2007–2008}
{M.Sc. magna cum laude}
{IXXI, École Normale Supérieure de Lyon}
{Majoring in Computer Science\\
Specialization in Complex Systems}
...
\end{entrylist}