Skip to content

more latex problems with references inside parsed-literal directive (\DUrole) #3207

@jfbu

Description

@jfbu

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).

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions