From ce88fc827392d23aa83c823f2c6af810b7ce3a2c Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Mon, 1 Sep 2008 16:45:11 +0200 Subject: [PATCH] Allow {} to terminate a tex macro inside a word. For example, you can now write \Aacute{}stor. --- lisp/org-exp.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org-exp.el b/lisp/org-exp.el index c2074fae0..c4d91acff 100644 --- a/lisp/org-exp.el +++ b/lisp/org-exp.el @@ -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))