Browse Source

ox-latex: Tiny refactoring

* lisp/ox-latex.el (org-latex-footnote-reference): Tiny refactoring.
Nicolas Goaziou 2 years ago
parent
commit
fbb5c97bd6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lisp/ox-latex.el

+ 2 - 2
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