diff options
| author | Jay Belanger | 2005-01-31 06:21:31 +0000 |
|---|---|---|
| committer | Jay Belanger | 2005-01-31 06:21:31 +0000 |
| commit | 434e68998059809d3481f5506108eefddbf1f974 (patch) | |
| tree | be13b4987ede995bd311a6b0cccab0a738a22bcc | |
| parent | 37ebd64bd93a489e5f0ed61a2a4f936d111391e3 (diff) | |
| download | emacs-434e68998059809d3481f5506108eefddbf1f974.tar.gz emacs-434e68998059809d3481f5506108eefddbf1f974.zip | |
(math-read-token): Add support for LaTeX.
| -rw-r--r-- | lisp/calc/calc-aent.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/calc/calc-aent.el b/lisp/calc/calc-aent.el index 2210435036c..bf4f5c382e7 100644 --- a/lisp/calc/calc-aent.el +++ b/lisp/calc/calc-aent.el | |||
| @@ -690,7 +690,7 @@ in Calc algebraic input.") | |||
| 690 | math-exp-pos) | 690 | math-exp-pos) |
| 691 | (or (eq math-exp-pos 0) | 691 | (or (eq math-exp-pos 0) |
| 692 | (and (memq calc-language '(nil flat big unform | 692 | (and (memq calc-language '(nil flat big unform |
| 693 | tex eqn)) | 693 | tex latex eqn)) |
| 694 | (eq (string-match "[^])}\"a-zA-Z0-9'$]_" | 694 | (eq (string-match "[^])}\"a-zA-Z0-9'$]_" |
| 695 | math-exp-str (1- math-exp-pos)) | 695 | math-exp-str (1- math-exp-pos)) |
| 696 | (1- math-exp-pos)))))) | 696 | (1- math-exp-pos)))))) |
| @@ -746,7 +746,7 @@ in Calc algebraic input.") | |||
| 746 | (setq math-exp-token 'string | 746 | (setq math-exp-token 'string |
| 747 | math-expr-data (math-match-substring math-exp-str 1) | 747 | math-expr-data (math-match-substring math-exp-str 1) |
| 748 | math-exp-pos (match-end 0)))) | 748 | math-exp-pos (match-end 0)))) |
| 749 | ((and (= ch ?\\) (eq calc-language 'tex) | 749 | ((and (= ch ?\\) (memq calc-language '(tex latex)) |
| 750 | (< math-exp-pos (1- (length math-exp-str)))) | 750 | (< math-exp-pos (1- (length math-exp-str)))) |
| 751 | (or (string-match "\\\\hbox *{\\([a-zA-Z0-9]+\\)}" | 751 | (or (string-match "\\\\hbox *{\\([a-zA-Z0-9]+\\)}" |
| 752 | math-exp-str math-exp-pos) | 752 | math-exp-str math-exp-pos) |
| @@ -800,11 +800,11 @@ in Calc algebraic input.") | |||
| 800 | (setq math-exp-pos (match-end 0)) | 800 | (setq math-exp-pos (match-end 0)) |
| 801 | (math-read-token)) | 801 | (math-read-token)) |
| 802 | (t | 802 | (t |
| 803 | (if (and (eq ch ?\{) (memq calc-language '(tex eqn))) | 803 | (if (and (eq ch ?\{) (memq calc-language '(tex latex eqn))) |
| 804 | (setq ch ?\()) | 804 | (setq ch ?\()) |
| 805 | (if (and (eq ch ?\}) (memq calc-language '(tex eqn))) | 805 | (if (and (eq ch ?\}) (memq calc-language '(tex latex eqn))) |
| 806 | (setq ch ?\))) | 806 | (setq ch ?\))) |
| 807 | (if (and (eq ch ?\&) (eq calc-language 'tex)) | 807 | (if (and (eq ch ?\&) (memq calc-language '(tex latex))) |
| 808 | (setq ch ?\,)) | 808 | (setq ch ?\,)) |
| 809 | (setq math-exp-token 'punc | 809 | (setq math-exp-token 'punc |
| 810 | math-expr-data (char-to-string ch) | 810 | math-expr-data (char-to-string ch) |