From e4ed09207da0e43cd5bcce64475ff4a89d7e507e Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Tue, 16 Dec 2008 07:44:13 +0100 Subject: 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. --- lisp/ChangeLog | 3 +++ lisp/org-export-latex.el | 5 +++-- 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 + * 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) "$" -- cgit v1.2.3-70-g09d2