Переглянути джерело

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

For example, you can now write \Aacute{}stor.
Carsten Dominik 16 роки тому
батько
коміт
ce88fc8273
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      lisp/org-exp.el

+ 2 - 1
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))