mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merged in olivier-heurtier/sphinx (pull request #255)
When generating latex references, also insert latex target/anchor for the ids defined on the node (mimic HTML writer behavior)
This commit is contained in:
commit
55bf3c27cf
@ -1166,6 +1166,8 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
||||
raise nodes.SkipNode
|
||||
|
||||
def visit_reference(self, node):
|
||||
for id in node.get('ids'):
|
||||
self.body += self.hypertarget(id, anchor=True)
|
||||
uri = node.get('refuri', '')
|
||||
if not uri and node.get('refid'):
|
||||
uri = '%' + self.curfilestack[-1] + '#' + node['refid']
|
||||
|
Loading…
Reference in New Issue
Block a user