Преглед на файлове

Fix mathjax treatment of single letters in between dollars.

* lisp/org.el (org-format-latex): Fix mathjax treatment of single letters
in between dollars.
Carsten Dominik преди 14 години
родител
ревизия
d0e70e8c81
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -15960,7 +15960,7 @@ Some of the options can be changed using the variable
 	     ((eq processing-type 'mathjax)
 	     ((eq processing-type 'mathjax)
 	      ;; Prepare for MathJax processing
 	      ;; Prepare for MathJax processing
 	      (setq string (match-string n))
 	      (setq string (match-string n))
-	      (if (equal m "$")
+	      (if (member m '("$" "$1"))
 		  (save-excursion
 		  (save-excursion
 		    (delete-region (match-beginning n) (match-end n))
 		    (delete-region (match-beginning n) (match-end n))
 		    (goto-char (match-beginning n))
 		    (goto-char (match-beginning n))