diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index 5a599084d..eaca3e714 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -1027,6 +1027,8 @@ class LaTeXTranslator(nodes.NodeVisitor): def visit_reference(self, node): uri = node.get('refuri', '') + if not uri and node.get('refid'): + uri = '%' + self.curfilestack[-1] + '#' + node['refid'] if self.in_title or not uri: self.context.append('') elif uri.startswith('mailto:') or uri.startswith('http:') or \