With a lot of trial and error, I finally found a solution. This works:
\pdfoutput=1
...
\usepackage{hyperref}
...
\hypersetup{
colorlinks=true,
linkcolor=black,
citecolor=black,
filecolor=black,
urlcolor=black,
}
The links are invisible, there are no borders or colours. Trickery with 00README.XXX
does not seem to be necessary.
Some remarks…
Any approach based on pdfborder={0 0 0}
seems to fail. Options hidelinks
and allcolors
are not supported; the hyperref version that Arxiv.org uses is too old.
I realised that I have to enable colorlinks
only after reading Ryan Reich's answer, in which he mentions that the colorlinks option and customised link colours seem to work fine.
I still do not understand exactly what is going on here—how is it possible that colorlinks
disables borders while pdfborder
does not work? Anyway, I guess I will just blindly copy-and-paste this fragment of code in future and forget about it. :)
Update 2022
Using the original \hypersetup
from this answer, a recent upload to arXiv still compiled with bright-coloured rectangles around links. The following \hypersetup
managed to get the job done:
\hypersetup{
colorlinks=false,
pdfborder={0 0 0},
pdfborderstyle={/S/U/W 0},
}
pdfborderstyle
adapted from here
- note that
pdfborder
is probably redundant and ignored by
arXiv
hyperref
was the problem.