I'm including some code in a paper submission to arxiv (I assume to prevent galley proofs from being uploaded as discussed here: https://academia.stackexchange.com/questions/49386/why-does-arxiv-not-allow-numbered-lines-in-submissions). However, I used the Listings package in Latex and was rejected by the automod because line numbers are not allowed. For completeness, here is the Latex code for the Listings package from How to add line numbers to a program listing/code?:
\usepackage{listings} %For code in appendix
\lstset
{ %Formatting for code in appendix
language=Matlab,
basicstyle=\footnotesize,
numbers=left,
stepnumber=1,
showstringspaces=false,
tabsize=1,
breaklines=true,
breakatwhitespace=false,
}
I think the code is more useful with the line numbers since it can go for a few lines in this particular case. So, I'd like to keep including them. I tried changing the numbers=left to numbers=right and changing the numbersep=5pt default to something to keep the numbers in the box, but automod still rejected it.
Has anyone else found an issue with arxiv on this? Did you find a way to put line numbers into the code snippet? Is there a better package or way to still have line numbers but not have them show up for arxiv's moderation?