org-footnote: no footnote in latex fragments

* lisp/org-footnote.el (org-footnote-in-valid-context-p): No footnote
  in latex fragments.
This commit is contained in:
Nicolas Goaziou 2011-09-04 16:45:39 +02:00
parent 235e993ae6
commit ff4af45e68
1 changed files with 2 additions and 0 deletions

View File

@ -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.