0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-27 16:02:58 +00:00

Export: Stop LaTeX fragment processing in protected examples

LaTeX fragments like math environments were still matched inside
protected code examples.  Fixed now.
This commit is contained in:
Carsten Dominik 2009-02-06 08:24:18 +01:00
parent 058265c32a
commit 44ed0394c4
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2009-02-06 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-format-latex): Do not convert LaTeX fragments in
protected examples.
2009-02-04 Carsten Dominik <carsten.dominik@gmail.com>
* org-exp.el (org-export-html-style-default): Use color values

View file

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