LaTeX export: Protect examples, even if they look like table.el tables

The recent patch to introduce table.el export in LaTeX forgot to check
protectedness.
This commit is contained in:
Carsten Dominik 2010-03-03 13:26:24 +01:00
parent 463d60c57b
commit 85df69a5c0
2 changed files with 5 additions and 2 deletions

View File

@ -2,6 +2,8 @@
* org-latex.el (org-export-latex-special-chars): Find subsequent
occurrences of special characters.
(org-export-latex-tables): Do not convert table-like stuff that is
protected.
2010-03-01 Carsten Dominik <carsten.dominik@gmail.com>

View File

@ -1541,8 +1541,9 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
;; First, get the table.el tables
(goto-char (point-min))
(while (re-search-forward "^[ \t]*\\(\\+-[-+]*\\+\\)[ \t]*\n[ \t]*|" nil t)
(require 'table)
(org-export-latex-convert-table.el-table))
(org-if-unprotected
(require 'table)
(org-export-latex-convert-table.el-table)))
;; And now the Org-mode tables
(goto-char (point-min))