浏览代码

ox-latex: Tiny refactoring

* lisp/ox-latex.el (org-latex-footnote-reference): Tiny refactoring.
Nicolas Goaziou 7 年之前
父节点
当前提交
fbb5c97bd6
共有 1 个文件被更改,包括 2 次插入2 次删除
  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