I have a latex paper which I want to publish on Arxiv. It compiles correctly on Overleaf. After that, I export it for Arxiv via the Submit button. But it fails when I import it in Arxiv, showing the following error message:

! Undefined control sequence.
<argument> \sf@counterlist

l.95 \begin{document}

! Emergency stop.
<argument> \sf@counterlist

I cannot find out what this error message is telling me and could not find a hint by googling. Could you please help me understanding the error message, what the bug is and what I can do to fix it? I can also provide you with more information if necessary.

UPDATE: I have update the document and shorten it, so I can show the content here:

% Last Version 30-03-2020
% \pdfoutput=1

% \usepackage[backend=biber,style=numeric]{biblatex}
% \addbibresource{AnomalyDetection.bib}  



\usepackage[utf8]{inputenc} % allow utf-8 input
\usepackage[T1]{fontenc}    % use 8-bit T1 fonts
\usepackage{booktabs}       % professional-quality tables
\usepackage{amsfonts}       % blackboard math symbols
\usepackage{nicefrac}       % compact symbols for 1/2, etc.
\usepackage{microtype}      % microtypography
\graphicspath{ {./images/} }



{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}


\newcommand{\citea}[1]{\citeauthor{#1} \cite{#1}}
\newcommand{\citepa}[1]{(\citeauthor{#1} \cite{#1})}



%\title{Anomaly detection of univariate timeseries: A comparison of statistical vs classical machine learning vs deep learning approaches}
\title{Anomaly Detection}


Anomaly detection Anomaly detection Anomaly detection Anomaly detection Anomaly detection Anomaly detection Anomaly detection Anomaly detection Anomaly detection Anomaly detection Anomaly detection Anomaly detection Anomaly detection Anomaly detection Anomaly detection Anomaly detection Anomaly detection Anomaly detection Anomaly detection Anomaly detection Anomaly detection Anomaly detection Anomaly detection \citea{Chandola2009}


Uploading this document from Overleaf to Arxiv results in the same error:


Package hyperref Warning: Rerun to get /PageLabels entry.

! Undefined control sequence.
<argument> \sf@counterlist

l.73 \begin{document}

! Emergency stop.
<argument> \sf@counterlist

l.73 \begin{document}

No pages of output.
Transcript written on AnomalyDetection.log.

UPDATE 2: Here the arxiv.sty:



% fonts

% set page geometry


\rhead{\scshape \today}

%Handling Keywords
\def\keywordname{{\bfseries \emph Keywords}}%
\def\keywords#1{\par\addvspace\medskipamount{\rightskip=0pt plus1cm
\def\and{\ifhmode\unskip\nobreak\fi\ $\cdot$

% font sizes with reduced leading
  \abovedisplayskip      7\p@ \@plus 2\p@ \@minus 5\p@
  \abovedisplayshortskip \z@ \@plus 3\p@
  \belowdisplayskip      \abovedisplayskip
  \belowdisplayshortskip 4\p@ \@plus 3\p@ \@minus 3\p@
  \abovedisplayskip      6\p@ \@plus 1.5\p@ \@minus 4\p@
  \abovedisplayshortskip \z@  \@plus 2\p@
  \belowdisplayskip      \abovedisplayskip
  \belowdisplayshortskip 3\p@ \@plus 2\p@   \@minus 2\p@

% sections with less space
                {-2.0ex \@plus -0.5ex \@minus -0.2ex}%
                { 1.5ex \@plus  0.3ex \@minus  0.2ex}%
                {-1.8ex \@plus -0.5ex \@minus -0.2ex}%
                { 0.8ex \@plus  0.2ex}%
                {-1.5ex \@plus -0.5ex \@minus -0.2ex}%
                { 0.5ex \@plus  0.2ex}%
                {1.5ex \@plus 0.5ex \@minus 0.2ex}%
                {1.5ex \@plus 0.5ex \@minus 0.2ex}%

% float placement
\renewcommand{\topfraction      }{0.85}
\renewcommand{\bottomfraction   }{0.4}
\renewcommand{\textfraction     }{0.1}



% swap above/belowcaptionskip lengths for tables

% footnote formatting
\setlength{\footnotesep }{6.65\p@}
\setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@}
\renewcommand{\footnoterule}{\kern-3\p@ \hrule width 12pc \kern 2.6\p@}

% paragraph formatting
\setlength{\parskip  }{5.5\p@}

% list formatting
\setlength{\topsep       }{4\p@ \@plus 1\p@   \@minus 2\p@}
\setlength{\partopsep    }{1\p@ \@plus 0.5\p@ \@minus 0.5\p@}
\setlength{\itemsep      }{2\p@ \@plus 1\p@   \@minus 0.5\p@}
\setlength{\parsep       }{2\p@ \@plus 1\p@   \@minus 0.5\p@}
\setlength{\leftmargin   }{3pc}
\setlength{\leftmargini  }{\leftmargin}
\setlength{\leftmarginii }{2em}
\setlength{\leftmarginiv }{1.0em}
\setlength{\leftmarginv  }{0.5em}
\def\@listi  {\leftmargin\leftmargini}
\def\@listii {\leftmargin\leftmarginii
              \topsep  2\p@ \@plus 1\p@    \@minus 0.5\p@
              \parsep  1\p@ \@plus 0.5\p@ \@minus 0.5\p@
              \itemsep \parsep}
              \topsep    1\p@ \@plus 0.5\p@ \@minus 0.5\p@
              \parsep    \z@
              \partopsep 0.5\p@ \@plus 0\p@ \@minus 0.5\p@
              \itemsep \topsep}
\def\@listiv {\leftmargin\leftmarginiv
\def\@listv  {\leftmargin\leftmarginv
\def\@listvi {\leftmargin\leftmarginvi

% create title
    % for perfect author name centering
    \renewcommand{\@makefnmark}{\hbox to \z@{$^{\@thefnmark}$\hss}}
    % The footnote-mark was overlapping the footnote-text,
    % added the following to fix this problem               (MK)
      \parindent 1em\noindent
      \hbox to 1.8em{\hss $\m@th ^{\@thefnmark}$}##1

% rules for title box at top of first page
  \hrule height 2\p@
  \vskip 0.25in
  \vskip -\parskip%
  \vskip 0.29in
  \vskip -\parskip
  \hrule height 2\p@
  \vskip 0.09in%

% create title (includes both anonymized and non-anonymized versions)
    \vskip 0.1in
    {\LARGE\sc \@title\par}
    \vskip 0.1in
  \vskip 0.4in \@minus 0.1in \center{\today}   \vskip 0.2in

% add conference notice to bottom of first page
  % give a bit of extra room back to authors on first page

% abstract styling
  {\large \bfseries \scshape Abstract}


UPDATE 3: The whole log in Arxiv:

Log of Arxiv

  • 1
    arXiv uses some oldish TeX installation, and overleaf also uses an old yet different TeX installation. IMHO if overleaf have a submit to arXiv button, they could really test the file on an installation that resembles the one of arXiv. That is, by using overleaf, you make the problem worse compared to just compiling on your own installation, in which you can at least find out what the versions are used without problems.
    – user194703
    Mar 31 '20 at 18:52
  • 1
    this is exactly the same issue as your question earlier today tex.stackexchange.com/questions/536123/… Mar 31 '20 at 18:56
  • @DavidCarlisle, No this is absolutely not the same as the first question.There I used Biblatex in overleaf and daleif recommended to use bibtex. I exactly did that and removed biblatex and did the steps that was proposed. Now I get the error message I have written here. Thus, I have created a new thread.
    – Code Pope
    Mar 31 '20 at 19:21
  • @Schrödinger'scat I tried to use TexStudio and there I don't get this error message. I don't know what this message means
    – Code Pope
    Mar 31 '20 at 19:23
  • 3
    well it's basically the same issue that you are using (on arxiv) an older tex system and as you have provided no test example you are relying on someone recognising an internal command in a changed package Mar 31 '20 at 19:23

In a current tex distribution \sf@counterlist is defined in subfig package (and used in caption) package so it (may) work to include those packages in your submission, or to re-write your document not to use those packages.

If I run the newly supplied example with texlive2017 (and force an error at begin document) my terminal output is not as you show (note he extra package loading

(./cc752.out) (./cc752.out)
) (/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/mt-ptm.cfg)
! Undefined control sequence.
l.73 \begin{document}\zzz
  • This is not the problem. I have compressed the document (see UPDATE in the main question) and deleted the package caption and everywhere it was used. Package subfig wasn't used in my project. But the same error message still appears when uploading to Arxiv.
    – Code Pope
    Apr 1 '20 at 10:21
  • @CodePope the ` sf@`... command is only defined in subfig (and only used in caption) in a current texlive I grepped the input directory, so it is the problem or at least it is equivalent to the problem, you may have local code you have not shown doing the same thing. But since you have so far provided essentially no information, this answer (which already required me to do a search over thousands of files to find uses of that command is probably the best that can be given. At least you should show the full log as the fragment you show does not give the full context for the error. Apr 1 '20 at 10:30
  • I have provided the whole document in the question. As I said please refer to the UPDATE part of my question. There is the whole document which compiles without any error and warning in Overleaf, but fails in Arxiv. The error message in Arxiv is shown there, too. What kind of information do you need yet?
    – Code Pope
    Apr 1 '20 at 10:36
  • 1
    @CodePope I don't have arxiv.sty and if I remove that the document you provided runs error free in all texlives from 2016 to 2020, but the fragment of the log you show does not seem to match the code you posted Apr 1 '20 at 10:38
  • Sorry for that. I have added arxiv.sty and updated the document and the error message. Now everything should fit
    – Code Pope
    Apr 1 '20 at 10:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.