# HG changeset patch # User Jay Belanger # Date 1107162514 0 # Node ID dea78c6f5e48d78a57043a57de4437ca1d6a3c14 # Parent 7129914ec664aabfd048a5c51d61282f4ef4beea (math-latex-input-filter): Remove function. diff -r 7129914ec664 -r dea78c6f5e48 lisp/calc/calc-lang.el --- a/lisp/calc/calc-lang.el Mon Jan 31 09:07:48 2005 +0000 +++ b/lisp/calc/calc-lang.el Mon Jan 31 09:08:34 2005 +0000 @@ -557,22 +557,7 @@ (math-compose-expr (nth 2 a) -1) "}")) -(defun math-latex-input-filter (str) ; allow parsing of 123\,456\,789. - (while (string-match "[0-9]\\\\,[0-9]" str) - (setq str (concat (substring str 0 (1+ (match-beginning 0))) - (substring str (1- (match-end 0)))))) - (while (string-match "\\\\begin{\\(small\\|[bp]\\)?matrix}" str) - (setq str (concat (substring str 0 (match-beginning 0)) - "\\matrix{" - (substring str (match-end 0))))) - (while (string-match "\\\\end{\\(small\\|[bp]\\)?matrix}" str) - (setq str (concat (substring str 0 (match-beginning 0)) - "}" - (substring str (match-end 0))))) - - str) - -(put 'latex 'math-input-filter 'math-latex-input-filter) +(put 'latex 'math-input-filter 'math-tex-input-filter) (defun calc-eqn-language (n) (interactive "P")