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)
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为空.
我相信你想用来\usepackage{doublespace}对文档进行双倍空间化.摆在singlespacing块,围绕着它有\begin{singlespace}和\end{singlespace}.
参考:http://web.mit.edu/olh/Latex/ess-latex.html