branch: elpa/cdlatex commit cf1dad9f993f619c987d84181167ff937e576909 Author: Carsten Dominik <carsten.domi...@gmail.com> Commit: Carsten Dominik <carsten.domi...@gmail.com>
Use \mathrm to make index/subscript roman in math --- cdlatex.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cdlatex.el b/cdlatex.el index ddd2a91698..d1c6c8f994 100644 --- a/cdlatex.el +++ b/cdlatex.el @@ -850,7 +850,10 @@ When pressed twice, make the sub/superscript roman." (interactive) (if (and cdlatex-make-sub-superscript-roman-if-pressed-twice (equal this-command last-command)) - (insert "\\rm ") + (progn + ;; (insert "\\rm ") + (insert "\\mathrm{}") + (backward-char 1)) (if (cdlatex-number-of-backslashes-is-odd) ;; Quoted (insert (event-basic-type last-command-event))