Mactex ignores aliases; here is an example
(%i1) ordergreat(a);
(%o1) DONE
(%i2) tex(a);
$$_101a\leqno{\tt NIL}$$
(%o2) NIL
(%i3) build_info();
Maxima version: 5.9.0.1cvs
Maxima build date: 12:29 5/12/2004
host type: i686-pc-mingw32
lisp-implementation-type: Kyoto Common Lisp
lisp-implementation-version: GCL 2.7.0
Here is one way fix this bug; change tex-atom to
(defun tex-atom (x l r) ;; atoms: note: can we lose by
leaving out {}s ?
(if (symbolp x) (setq x (or (get x 'reversealias) x)))
(append l
(list (cond ((numberp x) (texnumformat x))
((and (symbolp x) (get
x 'texword)))
((stringp x) (tex-string x))
((characterp x) (tex-char x))
(t (tex-stripdollar x))))
r))
Testing ...
(%o3)
(%i4) load("c:/maximacvs/maxima/src/mactex.lisp");
(%o4) c:/maximacvs/maxima/src/mactex.lisp
(%i5) tex(a);
$$a\leqno{\tt NIL}$$
(%o5) NIL
(%i6)
Ordergreat isn't all that useful, but it is a good way to
change the ordering of an expression to something more
standard for typesetting.
Barton
Nobody/Anonymous
Lisp Core
Includes proposed fix
Public
|
Date: 2008-01-17 15:21
|
|
Date: 2008-01-17 04:48
|
|
Date: 2006-07-29 06:31 Logged In: YES |
|
Date: 2004-11-23 17:19 Logged In: YES |
|
Date: 2004-11-23 16:02 Logged In: YES |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2008-01-17 15:21 | robert_dodier |
| resolution_id | None | 2008-01-17 15:21 | robert_dodier |
| close_date | - | 2008-01-17 15:21 | robert_dodier |
| artifact_group_id | None | 2006-09-09 15:10 | robert_dodier |
| category_id | None | 2006-07-29 06:31 | robert_dodier |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use