summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2018-09-22 08:45:43 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2018-09-22 08:45:43 +0200
commitfbb5c97bd6397cefaeafb50a631d036f574a8e42 (patch)
tree587f1128fe3d798d2e9465d8f87f37e4c21e0e8e
parent408eaccf1c004144bb950e8d3e55c8198fc2f281 (diff)
downloadorg-mode-fbb5c97bd6397cefaeafb50a631d036f574a8e42.tar.gz
ox-latex: Tiny refactoring
* lisp/ox-latex.el (org-latex-footnote-reference): Tiny refactoring.
-rw-r--r--lisp/ox-latex.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 28a02b0..ebb2b6e 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -1883,8 +1883,8 @@ CONTENTS is nil. INFO is a plist holding contextual information."
((or (org-element-lineage footnote-reference
'(footnote-reference footnote-definition
table-cell))
- (and (org-element-lineage footnote-reference '(item))
- (org-element-secondary-p footnote-reference)))
+ (eq 'item (org-element-type
+ (org-export-get-parent-element footnote-reference))))
"\\footnotemark")
;; Otherwise, define it with \footnote command.
(t