From ff4af45e687cadb77d5784e756126187052e720c Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 4 Sep 2011 16:45:39 +0200 Subject: [PATCH] org-footnote: no footnote in latex fragments * lisp/org-footnote.el (org-footnote-in-valid-context-p): No footnote in latex fragments. --- lisp/org-footnote.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el index 04389efad..7ef433bfa 100644 --- a/lisp/org-footnote.el +++ b/lisp/org-footnote.el @@ -52,6 +52,7 @@ (declare-function org-in-indented-comment-line "org" ()) (declare-function org-in-regexp "org" (re &optional nlines visually)) (declare-function org-in-verbatim-emphasis "org" ()) +(declare-function org-inside-LaTeX-fragment-p "org" ()) (declare-function org-inside-latex-macro-p "org" ()) (declare-function org-mark-ring-push "org" (&optional pos buffer)) (declare-function org-show-context "org" (&optional key)) @@ -178,6 +179,7 @@ extracted will be filled again." (save-match-data (not (or (org-in-commented-line) (org-in-indented-comment-line) + (org-inside-LaTeX-fragment-p) ;; Avoid protected environments (LaTeX export) (get-text-property (point) 'org-protected) ;; Avoid literal example.