The latex writer uses \DUrole
with a comma separated first argument, but if this is found inside alltt
environment, the comma is TeX active and this breaks latex compilation.
.. _mysection:
Section
-------
.. parsed-literal::
public :ref:`mysection` antidiag()
latex file contains
\begin{alltt}
public {\hyperref[index:mysection]{\sphinxcrossref{\DUrole{std,std-ref}{Section}}}} antidiag()
\end{alltt}
and the problem comes from the comma inside \DUrole
. Reported at #2026 (comment).