我使用 LaTeX 制作简历res
类。它看起来很棒,但有一个细节让我很烦恼。我正在使用res
类的position
环境,但它在标题和其下方段落之间留出的空间太大了。我可以减少那个空间吗?
\employer{{\sl \textbf{St. Louis School of Mandaue}}}
\title{High School}
\dates{June 2002 --- March 2006}
\location{\underline{Mandaue City, Cebu}}
\begin{position}
I received ``blue cards" for three years. These were tokens of recognition for good academic records of the school.
\end{position}
答案1
之后不要留空行\begin{position}
。如果您想要进一步减少(或增加)作业信息和作业主体之间的垂直间距,只需重新定义position
res.cls 中定义的环境即可;以下代码包含必要的修改;更改-0.3em
为适合您需要的值:
\documentclass{res}
\makeatletter
\renewenvironment{position}%
{%
\begingroup
\par
\the\tabular@head
% \addpenalty{-\@secpenalty}% bad place for a page break
\penalty -\@secpenalty % bad place for a page break
\penalty 10000
\ignorespaces%
% change the space between the job info and the body
\\[-0.3em]%change according to your needs
}{%
\the\tabular@tail
% \addpenalty{\@secpenalty}% good place for a page break
\penalty \@secpenalty % good place for a page break
\endgroup
}
\makeatother
\begin{document}
\employer{\textsl{\textbf{St. Louis School of Mandaue}}}
\title{High School}
\dates{June 2002 --- March 2006}
\location{\underline{Mandaue City, Cebu}}
\begin{position}
I received ``blue cards" for three years. These were tokens of recognition for good academic records of the school.
\end{position}
\end{document}