Allow {} to terminate a tex macro inside a word.

For example, you can now write \Aacute{}stor.
This commit is contained in:
Carsten Dominik 2008-09-01 16:45:11 +02:00
parent 952103e9a3
commit ce88fc8273
1 changed files with 2 additions and 1 deletions

View File

@ -3798,7 +3798,8 @@ If there are links in the string, don't modify these."
(setq s (org-export-html-convert-sub-super s)))
(if org-export-with-TeX-macros
(let ((start 0) wd ass)
(while (setq start (string-match "\\\\\\([a-zA-Z]+\\)" s start))
(while (setq start (string-match "\\\\\\([a-zA-Z]+\\)\\({}\\)?"
s start))
(if (get-text-property (match-beginning 0) 'org-protected s)
(setq start (match-end 0))
(setq wd (match-string 1 s))