![Friggeri CV:减少入口之间的空间](https://linux22.com/image/401557/Friggeri%20CV%EF%BC%9A%E5%87%8F%E5%B0%91%E5%85%A5%E5%8F%A3%E4%B9%8B%E9%97%B4%E7%9A%84%E7%A9%BA%E9%97%B4.png)
在里面Friggeri 简历模板我想减少一个条目entrylist
(不是全部)之间的间距,但我真的不知道该怎么做。
我想减少所附屏幕截图上红色箭头所在的间距。
我的想法是在一个部分中放置两个\begin{entrylist}
,其中一个具有减少间距的属性。但我不知道如何实现。
有人能帮帮我吗?谢谢!
答案1
没有 MWE,我只能猜测一点,但请参阅以下 MWE 寻找可能的解决方案。
您需要定义一个新命令\myentry
来获取较小的空间(不适用于所有条目),例如:
\newcommand{\myentry}[4]{% <============================================
#1&\parbox[t]{12.8cm}{%
\textbf{#2}%
\hfill%
{\footnotesize\addfontfeature{Color=lightgray} #3}\\%
#4%\vspace{\parsep}% <==============================================
}\\}
请注意,我只是\vspace{\parsep}
为了获得更小的空间而进行注释......
将此代码添加到 CV 代码的前言中,例如:
\documentclass[]{cv-style}
\sethyphenation[variant=british]{english}{} % Add words between the {} to avoid them to be cut
\newcommand{\myentry}[4]{% <============================================
#1&\parbox[t]{12.8cm}{%
\textbf{#2}%
\hfill%
{\footnotesize\addfontfeature{Color=lightgray} #3}\\%
#4%\vspace{\parsep}% <==============================================
}\\}
\begin{document}
\header{John}{Smith} % Your name
\lastupdated
%----------------------------------------------------------------------------------------
% SIDEBAR SECTION -- In the aside, each new line forces a line break
%----------------------------------------------------------------------------------------
\begin{aside}
%
\section{contact}
123 Broadway
City, State 050022
Country
~
+0 (000) 111 1111
+0 (000) 111 1112
~
[email protected]
%
\section{languages}
English mother tongue
Spanish fluency
%
\section{programming}
{\color{red} $\varheartsuit$} R
VBA, SQL, Python
\LaTeX{}
%
\end{aside}
%----------------------------------------------------------------------------------------
% SKILLS SECTION
%----------------------------------------------------------------------------------------
\section{skills}
\vspace{-0.2cm}
Skill 1, skill 2, skill 3, skill 4, skill 5.
%----------------------------------------------------------------------------------------
% EDUCATION SECTION
%----------------------------------------------------------------------------------------
\section{education}
\begin{entrylist}
%------------------------------------------------
\entry
{2010--2011}
{M.Sc. {\normalfont in Economics [Grade]}}
{University}
{\vspace{-0.3cm}}
%------------------------------------------------
\entry
{2004--2009}
{B.Eng. {\normalfont in Engineering Management [Grade]}}
{University}
{(Emphasis in ...)}
%------------------------------------------------
\end{entrylist}
\section{myeducation}
\begin{entrylist}
%------------------------------------------------
\myentry
{2010--2011}
{M.Sc. {\normalfont in Economics [Grade]}}
{University}
{\vspace{-0.3cm}}
%------------------------------------------------
\myentry
{2004--2009}
{B.Eng. {\normalfont in Engineering Management [Grade]}}
{University}
{(Emphasis in ...)}
%------------------------------------------------
\end{entrylist}
\end{document}
education
请参阅我添加了名为的部分的副本myeducation
,并在其中使用了新命令\myentry
。请参阅生成的 pdf: