From: Robert D. <rob...@us...> - 2006-07-21 06:05:16
|
Update of /cvsroot/maxima/maxima/tests In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv24299/tests Modified Files: rtest_tex.mac Log Message: Fix bug in formatting function names which have user-defined tex properties (assigned by texput). - src/mactex.lisp: fix TEX-FUNCTION - tests/rtest_tex.mac: additional test cases Index: rtest_tex.mac =================================================================== RCS file: /cvsroot/maxima/maxima/tests/rtest_tex.mac,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- rtest_tex.mac 22 May 2006 02:38:38 -0000 1.1 +++ rtest_tex.mac 21 Jul 2006 06:05:13 -0000 1.2 @@ -12,7 +12,7 @@ /* These declarations must precede the first expression in which they occur. * Maxima doesn't know how to parse "a foo b" in with_stdout (... infix("foo"), a foo b, ...). */ -(infix ("implies"), infix ("iff")); +(infix ("implies"), infix ("iff"), matchfix ("<<", ">>")); '((aa or bb) and not (cc or dd)); @@ -123,11 +123,30 @@ * See note near top of file. */ + tex_text ("\\def\\sgn{\\mathop{\\rm sgn}}"), + tex ('("Before texput" : signum(x))), + texput (signum, "\\sgn"), + tex ('("After texput" : signum(x))), + + tex ('("Before texput" : grad(x))), + texput (grad, "\\nabla ", prefix), + tex ('("After texput" : grad(x))), + + tex ('("Before texput" : degrees_F(85))), + texput (degrees_F, "^o {\\rm F}", postfix), + tex ('("After texput" : degrees_F(85))), + + tex ('("Before texput" : <<x, y>>)), + texput ("<<", [" \\langle ", " \\rangle "], matchfix), + tex ('("After texput" : <<x, y>>)), + + tex ('("Before texput" : ((foo or bar) implies (baz or quux)))), texput ("implies", "\\Rightarrow", infix), - tex ('((foo or bar) implies (baz or quux))), + tex ('("After texput" : ((foo or bar) implies (baz or quux)))), + tex ('("Before texput" : ((foo or bar) iff (baz or quux)))), texput ("iff", "\\Leftrightarrow", infix), - tex ('((foo or bar) iff (baz or quux))), + tex ('("After texput" : ((foo or bar) iff (baz or quux)))), tex_text ("\\subsection*{Miscellany}"), |