summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2008-12-16 07:44:13 +0100
committerCarsten Dominik <carsten.dominik@gmail.com>2008-12-16 07:44:13 +0100
commite4ed09207da0e43cd5bcce64475ff4a89d7e507e (patch)
treeb368933a5a6004cf4edb61688d5503930ecddfe6
parent0ea9fb46c5ba754398c4a2b3ad5bf2db1140d3a6 (diff)
Quote special characters in tables for LaTeX export.
Text inside tables did not receive the full treatment of handling sub- and superscripts, and of special character quoting like %, &, and {}. This patch does fix this, but I am worried that I am overlooking the true reason why Bastien did switch off these conversions. We'll see if and what this will break.
-rwxr-xr-xlisp/ChangeLog3
-rw-r--r--lisp/org-export-latex.el5
2 files changed, 6 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2c72c20e1..e81904295 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
2008-12-16 Carsten Dominik <carsten.dominik@gmail.com>
+ * org-export-latex.el (org-export-latex-special-chars): Replace
+ special characters also in tables.
+
* org-agenda.el (org-agenda-change-all-lines): New argument
FORCE-TAGS.
(org-agenda-set-tags): Cet the new tags and pas them to
diff --git a/lisp/org-export-latex.el b/lisp/org-export-latex.el
index 85be3fa63..c215f7b87 100644
--- a/lisp/org-export-latex.el
+++ b/lisp/org-export-latex.el
@@ -877,8 +877,9 @@ See the `org-export-latex.el' code for a complete conversion table."
(goto-char (point-min))
(while (re-search-forward c nil t)
;; Put the point where to check for org-protected
- (unless (or (get-text-property (match-beginning 2) 'org-protected)
- (org-at-table-p))
+; (unless (or (get-text-property (match-beginning 2) 'org-protected);
+; (org-at-table-p))
+ (unless (get-text-property (match-beginning 2) 'org-protected)
(cond ((member (match-string 2) '("\\$" "$"))
(if (equal (match-string 2) "\\$")
(replace-match (concat (match-string 1) "$"