Productionlist referencing incorrect in latex

16 views
Skip to first unread message

Csaba O

unread,
Mar 16, 2022, 11:57:04 AM3/16/22
to sphinx-users
Hi All!

Has anyone encountered the following issue regarding productionGroup arguments? 

When I specify the ProductionGroup argument to a group of production in the following way in rST: 
.. productionlist:: [productionGroup]

The grammar tokens in that production group are properly referenced in HTML (the HTML strong tag will contain the ProductionGroup name: 
<strong id="grammar-token-productionGroup-Tokenname">Tokenname), but they are incorrectly referenced in PDF:

\begin{productionlist}
\phantomsection\label{\detokenize{nameofrstfile:grammar-token-Tokenname}}\production{Tokenname}{......

which should be
\phantomsection\label{\detokenize{nameofrstfile:grammar-token-productionGroup-Tokenname} for the link to work properly.

Thanks for any help!
Csaba

Reply all
Reply to author
Forward
0 new messages