我正在使用模板sig-alternate.cls
,但我发现作者区块和论文正文之间的间距太大,如何减小这个间距?
编辑:我想减少作者区块和论文文本之间的空间。
\documentclass{sig-alternate}
\begin{document}
\title{shrink space}
\author{XXX}
\maketitle
paper text here!
\end{document}
答案1
您的文档类使用额外的垂直跳跃来定义命令\@maketitle
。使用以下定义来减少空间:
\def\@maketitle{\newpage
\null
\setbox\@acmtitlebox\vbox{%
\baselineskip 20pt
\vskip 2em % Vertical space above title.
\begin{center}
{\ttlfnt \@title\par} % Title set in 18pt Helvetica (Arial) bold size.
\vskip 1.5em % Vertical space after title.
%This should be the subtitle.
{\subttlfnt \the\subtitletext\par}\vskip 1.25em%\fi
{\baselineskip 16pt\aufnt % each author set in \12 pt Arial, in a
\lineskip .5em % tabular environment
\begin{tabular}[t]{c}\@author
\end{tabular}\par}
\vskip 1.5em % Vertical space after author.
\end{center}}
\dimen0=\ht\@acmtitlebox
% \advance\dimen0 by -12.75pc\relax % comment by Marco Daniel
\unvbox\@acmtitlebox
\ifdim\dimen0<0.0pt\relax\vskip-\dimen0\fi}
未经修改:
修改后:
以下是完整的 MWE:
\documentclass{sig-alternate}
\usepackage{kantlipsum}
\makeatletter
\def\@maketitle{\newpage
\null
\setbox\@acmtitlebox\vbox{%
\baselineskip 20pt
\vskip 2em % Vertical space above title.
\begin{center}
{\ttlfnt \@title\par} % Title set in 18pt Helvetica (Arial) bold size.
\vskip 1.5em % Vertical space after title.
%This should be the subtitle.
{\subttlfnt \the\subtitletext\par}\vskip 1.25em%\fi
{\baselineskip 16pt\aufnt % each author set in \12 pt Arial, in a
\lineskip .5em % tabular environment
\begin{tabular}[t]{c}\@author
\end{tabular}\par}
\vskip 1.5em % Vertical space after author.
\end{center}}
\dimen0=\ht\@acmtitlebox
% \advance\dimen0 by -12.75pc\relax % comment by Marco Daniel
\unvbox\@acmtitlebox
\ifdim\dimen0<0.0pt\relax\vskip-\dimen0\fi}
\makeatother
\begin{document}
\title{shrink space}
\author{XXX}
\maketitle
\kant
\end{document}
答案2
我觉得下面的方法是更直接的办法:在sig-alternate.cls中注释掉这一行。
\advance\dimen0 by -12.75pc\relax % Increased space for title box -- KBT
此行在 的定义中\@maketitle
,旨在增加作者块和论文文本之间的空间。