在LaTeX中将ACM会议文章双倍间隔

rep*_*mer 22 templates latex tex spacing

我正在使用acm LaTeX模板,我无法将纸张双倍间隔.

我的LaTeX文档如下所示:

\documentclass{acm_proc_article-sp}
\usepackage{setspace}
\doublespacing
\begin{document}
...
\end{document}
Run Code Online (Sandbox Code Playgroud)

当我使用pdflatex编译上述文档时,我在使用该命令的行上收到以下错误消息\doublespacing:

Missing number, treated as zero \doublespacing
Run Code Online (Sandbox Code Playgroud)

Sea*_*mus 22

\linespread{2}应该管用.据我所知,不需要任何包装,如果你觉得它可以改为1.9间距或2.1间距......


god*_*byk 14

看起来这个acm_proc_article-sp类做了一些让setspace包装混淆的时髦事物.在.tex文档的序言中,添加以下行:

% Redefines \@ptsize to make setspace happy
\makeatletter
\renewcommand{\@ptsize}{0}
\makeatother

% Double-spaces the entire document
\usepackage{setspace}
\doublespacing
Run Code Online (Sandbox Code Playgroud)

我不知道为什么这个acm_proc_article-sp类重新定义\@ptsize为空.


Mar*_*off 9

我相信你想用来\usepackage{doublespace}对文档进行双倍空间化.摆在singlespacing块,围绕着它有\begin{singlespace}\end{singlespace}.

参考:http://web.mit.edu/olh/Latex/ess-latex.html

  • TeX-FAQ建议不要使用`doublespace`.他们说使用`setspace`代替. (14认同)