diff options
| author | Jay Belanger | 2009-01-11 19:14:59 +0000 |
|---|---|---|
| committer | Jay Belanger | 2009-01-11 19:14:59 +0000 |
| commit | 91ca6606a6cfa3cd5b126cf32375ea9bbf765359 (patch) | |
| tree | 971dc86cb84cf43a40bc2e1eb7adc2369f7ab45f | |
| parent | 0d3b1f4e84c70c73e7af29db128039948ab46cf3 (diff) | |
| download | emacs-91ca6606a6cfa3cd5b126cf32375ea9bbf765359.tar.gz emacs-91ca6606a6cfa3cd5b126cf32375ea9bbf765359.zip | |
(math-compose-tex-sqrt): New function (previously commented out).
(math-special-function-table): Use `math-compose-tex-sqrt' to compose
sqrts in TeX and LaTeX mode.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/calc/calc-lang.el | 12 |
2 files changed, 13 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index edcea7dc113..c337e97aaa6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2009-01-11 Jay Belanger <jay.p.belanger@gmail.com> | ||
| 2 | |||
| 3 | * calc/calc-lang.el (math-compose-tex-sqrt): New function. | ||
| 4 | (math-special-function-table): Use `math-compose-tex-sqrt' to | ||
| 5 | compose sqrts in TeX and LaTeX mode. | ||
| 6 | |||
| 1 | 2009-01-11 Chong Yidong <cyd@stupidchicken.com> | 7 | 2009-01-11 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 8 | ||
| 3 | * faces.el (describe-face): Ignore anonymous faces. | 9 | * faces.el (describe-face): Ignore anonymous faces. |
diff --git a/lisp/calc/calc-lang.el b/lisp/calc/calc-lang.el index 59a11c42b7f..1bf5ff6c484 100644 --- a/lisp/calc/calc-lang.el +++ b/lisp/calc/calc-lang.el | |||
| @@ -494,6 +494,7 @@ | |||
| 494 | (put 'tex 'math-special-function-table | 494 | (put 'tex 'math-special-function-table |
| 495 | '((calcFunc-sum . (math-compose-tex-sum "\\sum")) | 495 | '((calcFunc-sum . (math-compose-tex-sum "\\sum")) |
| 496 | (calcFunc-prod . (math-compose-tex-sum "\\prod")) | 496 | (calcFunc-prod . (math-compose-tex-sum "\\prod")) |
| 497 | (calcFunc-sqrt . math-compose-tex-sqrt) | ||
| 497 | (intv . math-compose-tex-intv))) | 498 | (intv . math-compose-tex-intv))) |
| 498 | 499 | ||
| 499 | (put 'tex 'math-variable-table | 500 | (put 'tex 'math-variable-table |
| @@ -673,11 +674,11 @@ | |||
| 673 | (substring str (1- (match-end 0)))))) | 674 | (substring str (1- (match-end 0)))))) |
| 674 | str) | 675 | str) |
| 675 | 676 | ||
| 676 | ;(defun math-tex-print-sqrt (a) | 677 | (defun math-compose-tex-sqrt (a) |
| 677 | ; (list 'horiz | 678 | (list 'horiz |
| 678 | ; "\\sqrt{" | 679 | "\\sqrt{" |
| 679 | ; (math-compose-expr (nth 1 a) 0) | 680 | (math-compose-expr (nth 1 a) 0) |
| 680 | ; "}")) | 681 | "}")) |
| 681 | 682 | ||
| 682 | (defun math-compose-tex-intv (a) | 683 | (defun math-compose-tex-intv (a) |
| 683 | (list 'horiz | 684 | (list 'horiz |
| @@ -782,6 +783,7 @@ | |||
| 782 | (calcFunc-choose . (math-compose-latex-frac "\\binom")) | 783 | (calcFunc-choose . (math-compose-latex-frac "\\binom")) |
| 783 | (calcFunc-sum . (math-compose-tex-sum "\\sum")) | 784 | (calcFunc-sum . (math-compose-tex-sum "\\sum")) |
| 784 | (calcFunc-prod . (math-compose-tex-sum "\\prod")) | 785 | (calcFunc-prod . (math-compose-tex-sum "\\prod")) |
| 786 | (calcFunc-sqrt . math-compose-tex-sqrt) | ||
| 785 | (intv . math-compose-tex-intv))) | 787 | (intv . math-compose-tex-intv))) |
| 786 | 788 | ||
| 787 | (put 'latex 'math-variable-table | 789 | (put 'latex 'math-variable-table |