From 5d9d80227239047764271eb9f90c4ae4715a0b24 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 6 Nov 2014 21:26:00 +0100 Subject: [PATCH] Closes #1619: missing in_production_list check for latex writer --- 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 8c9b1f5c4..eb637fc32 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -1209,7 +1209,8 @@ class LaTeXTranslator(nodes.NodeVisitor): # don't add a pageref for glossary terms self.context.append('}}') else: - if self.builder.config.latex_show_pagerefs: + if self.builder.config.latex_show_pagerefs and not \ + self.in_production_list: self.context.append('}} (%s)' % self.hyperpageref(id)) else: self.context.append('}}')