Ver código fonte

org-footnote: no footnote in latex fragments

* lisp/org-footnote.el (org-footnote-in-valid-context-p): No footnote
  in latex fragments.
Nicolas Goaziou 13 anos atrás
pai
commit
ff4af45e68
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      lisp/org-footnote.el

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