aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger2006-02-28 14:28:42 +0000
committerJay Belanger2006-02-28 14:28:42 +0000
commit29ecdb2212662dd0c73f9338aea8ea8dd0de2df3 (patch)
treeb6793be34609a82bfe189c08f67d5a89a76ea202
parent3ea32d7481523bbb0c54b90606687dcba5c5a405 (diff)
downloademacs-29ecdb2212662dd0c73f9338aea8ea8dd0de2df3.tar.gz
emacs-29ecdb2212662dd0c73f9338aea8ea8dd0de2df3.zip
(math-compose-tex-matrix): Add a latex option.
(math-compose-expr): Use latex option when calling math-compose-tex-matrix for latex mode.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/calc/calccomp.el11
2 files changed, 12 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3344bca5ba3..656a17a3c96 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12006-02-28 Jay Belanger <belanger@truman.edu>
2
3 * calc/calccomp.el: (math-compose-tex-matrix): Add a latex option.
4 (math-compose-expr): Use latex option when calling
5 `math-compose-tex-matrix' for latex mode.
6
12006-02-28 Nick Roberts <nickrob@snap.net.nz> 72006-02-28 Nick Roberts <nickrob@snap.net.nz>
2 8
3 * speedbar.el: Re-instate comments about developing for speedbar 9 * speedbar.el: Re-instate comments about developing for speedbar
diff --git a/lisp/calc/calccomp.el b/lisp/calc/calccomp.el
index 548fe83882d..9b5eab5b133 100644
--- a/lisp/calc/calccomp.el
+++ b/lisp/calc/calccomp.el
@@ -286,10 +286,10 @@
286 (> calc-language-option 1) 286 (> calc-language-option 1)
287 (< calc-language-option -1))) 287 (< calc-language-option -1)))
288 (append '(vleft 0 "\\begin{pmatrix}") 288 (append '(vleft 0 "\\begin{pmatrix}")
289 (math-compose-tex-matrix (cdr a)) 289 (math-compose-tex-matrix (cdr a) t)
290 '("\\end{pmatrix}")) 290 '("\\end{pmatrix}"))
291 (append '(horiz "\\begin{pmatrix} ") 291 (append '(horiz "\\begin{pmatrix} ")
292 (math-compose-tex-matrix (cdr a)) 292 (math-compose-tex-matrix (cdr a) t)
293 '(" \\end{pmatrix}"))) 293 '(" \\end{pmatrix}")))
294 (if (and (eq calc-language 'eqn) 294 (if (and (eq calc-language 'eqn)
295 (math-matrixp a)) 295 (math-matrixp a))
@@ -1015,10 +1015,11 @@
1015 (math-compose-expr (car a) math-comp-vector-prec) 1015 (math-compose-expr (car a) math-comp-vector-prec)
1016 (concat " " math-comp-right-bracket))))) 1016 (concat " " math-comp-right-bracket)))))
1017 1017
1018(defun math-compose-tex-matrix (a) 1018(defun math-compose-tex-matrix (a &optional ltx)
1019 (if (cdr a) 1019 (if (cdr a)
1020 (cons (append (math-compose-vector (cdr (car a)) " & " 0) '(" \\\\ ")) 1020 (cons (append (math-compose-vector (cdr (car a)) " & " 0)
1021 (math-compose-tex-matrix (cdr a))) 1021 (if ltx '(" \\\\ ") '(" \\cr ")))
1022 (math-compose-tex-matrix (cdr a) ltx))
1022 (list (math-compose-vector (cdr (car a)) " & " 0)))) 1023 (list (math-compose-vector (cdr (car a)) " & " 0))))
1023 1024
1024(defun math-compose-eqn-matrix (a) 1025(defun math-compose-eqn-matrix (a)