diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bdd1a0f69..117f78c1e 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-02-06 Carsten Dominik + + * org.el (org-format-latex): Do not convert LaTeX fragments in + protected examples. + 2009-02-04 Carsten Dominik * org-exp.el (org-export-html-style-default): Use color values diff --git a/lisp/org.el b/lisp/org.el index c734d7160..263becf38 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -12725,7 +12725,9 @@ The images can be removed again with \\[org-ctrl-c-ctrl-c]." (when (member m matchers) (goto-char (point-min)) (while (re-search-forward re nil t) - (when (or (not at) (equal (cdr at) (match-beginning n))) + (when (and (or (not at) (equal (cdr at) (match-beginning n))) + (not (get-text-property (match-beginning n) + 'org-protected))) (setq txt (match-string n) beg (match-beginning n) end (match-end n) cnt (1+ cnt)