如何修复错误缺失数字,视为零

如何修复错误缺失数字,视为零

我知道这肯定是一个问题的常见标题,并且我已经完成了研究,但我仍然无法弄清楚为什么我在使用这段代码时会出现此错误:

\documentclass{sig-alternate}
\usepackage[british]{babel}
\usepackage{fancyhdr}
\usepackage{booktabs}
\usepackage[utf8]{inputenc}
\usepackage{libertine}
\usepackage{balance}
\usepackage{hyperref}
\usepackage{url}
\graphicspath{ {./images/} }

\setlength{\heavyrulewidth}{1.2pt}
\setlength{\lightrulewidth}{0.7pt}
\pagestyle{fancy}
\lhead{UMAP 2017 Short Paper}
\rhead{UMAP’17, July 9-12, 2017, Bratislava, Slovakia}

\renewcommand{\headrulewidth}{}
\renewcommand{\footrulewidth}{}
\newfont{\mycrnotice}{ptmr8t at 7pt}
\newfont{\myconfname}{ptmri8t at 7pt}
\let\crnotice\mycrnotice
\let\confname\myconfname

\begin{document}
\title{Improving Cold Start Recommendation by Mapping
        Feature-Based Preferences to Item Comparisons}

\numberofauthors{2}

\author{
\alignauthor
Saikishore Kalloori\\
       \affaddr{Free University of Bozen - Bolzano,}\\
       \affaddr{Piazza Domenicani 3, I - 39100,}\\
       \email{[email protected]}
\alignauthor
Francesco Ricci\\
       \affaddr{Free University of Bozen - Bolzano,}\\
       \affaddr{Piazza Domenicani 3, I - 39100,}\\
       \email{[email protected]}
}
\maketitle
\section{EXPERIMENTAL EVALUATION}\noindent
\subsection{Data Set}\noindent
In order to test our hypothesis we needed a dataset containing both
item and feature preferences. The only publicly available data set
with such preferences, which we could identify, is the PoliMovie
dataset \cite{10}. For each user in the dataset, there are preferences
expressed explicitly for movies and for their features, in the form
of likes.
\bibliographystyle{abbrv}
\bibliography{zdroje}
\end{document}

错误指向了 \section 的第一行。它说:

缺少数字,视为零。段落第 140-154 行的 \hbox 过满(宽度过大 1.82866 pt)。

链接到 sig-alternate 和我的 .bib 文件: https://drive.google.com/open?id=1Hg5Rw9iFLI1w6hSyAwlRyX29bkMwyIXY

整个文档中 \section 命令附近都散布着几个类似的错误。我只看到几行突出显示了此错误(没有出现其他类型的错误),但 overleaf 说我有 37 个错误,即使文档编译正常,看起来也和预期的一样。有什么想法可以修复此错误吗?感谢您的帮助和时间。

答案1

答案是由用户@egreg发布的,我只需要更改命令:

\renewcommand\headrulewidth{} 
\renewcommand{\footrulewidth}{} 

到:

\renewcommand\headrulewidth{0pt}
\renewcommand{\footrulewidth}{0pt}

正如用户@moewe 指出的那样,该问题与软件包 fancyhdr 有关。谢谢大家的帮助。

相关内容