Protect index string

* lisp/org-latex.el (org-export-latex-preprocess): Protect index string
This commit is contained in:
Carsten Dominik 2011-05-05 10:29:22 +02:00
parent cb6425e6a0
commit 8d509bb494
1 changed files with 2 additions and 1 deletions

View File

@ -2330,7 +2330,8 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
nil t)
(setq entry
(save-match-data
(org-export-latex-fontify-headline (match-string 1))))
(org-export-latex-protect-string
(org-export-latex-fontify-headline (match-string 1)))))
(replace-match (format "\\index{%s}" entry) t t)))
;; Convert center