Browse Source

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.
Carsten Dominik 16 years ago
parent
commit
e4ed09207d
2 changed files with 6 additions and 2 deletions
  1. 3 0
      lisp/ChangeLog
  2. 3 2
      lisp/org-export-latex.el

+ 3 - 0
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

+ 3 - 2
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) "$"