From d02d07e992d258898151247e49a63a2a0458a880 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 23 Sep 2011 11:26:56 +0200 Subject: [PATCH] Switch off pagerefs in production lists. --- sphinx/writers/latex.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index 5e0411e6b..d282d2c99 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -1117,7 +1117,8 @@ class LaTeXTranslator(nodes.NodeVisitor): # references to labels in the same document id = self.curfilestack[-1] + ':' + uri[1:] self.body.append(self.hyperlink(id)) - if self.builder.config.latex_show_pagerefs: + if self.builder.config.latex_show_pagerefs and not \ + self.in_productionlist: self.context.append('}} (%s)' % self.hyperpageref(id)) else: self.context.append('}}')