diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2015-12-25 10:43:41 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2015-12-25 10:43:41 +0900 |
commit | 0719611d54b7f40233c2e69439b35dd2b08f98b0 (patch) | |
tree | 9eebf514b44584022ce7562aea2ea0397e7373e0 /sphinx | |
parent | ee7e3cc078365ab20be24e846fbc868b422d252d (diff) | |
download | sphinx-git-0719611d54b7f40233c2e69439b35dd2b08f98b0.tar.gz |
Fix #2071: Same footnote in more than two section titles => LaTeX/PDF Bug
Diffstat (limited to 'sphinx')
-rw-r--r-- | sphinx/writers/latex.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index 192207bce..f5f3b64b2 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -1662,7 +1662,7 @@ class LaTeXTranslator(nodes.NodeVisitor): # if a footnote has been inserted once, it shouldn't be repeated # by the next reference if used: - if self.table or self.in_term: + if self.table or self.in_term or self.in_title: self.body.append('\\protect\\footnotemark[%s]' % num) else: self.body.append('\\footnotemark[%s]' % num) |