1 This is Andy Hefner's McCLIM formula display code, and an initial effort
2 by Raymond Toy at getting a Maxima REPL display in an McCLIM window.
4 Licenses: Public Domain for Andy Hefner's code (formula.lisp)
5 Raymond Toy's code is GPL
7 Committer's note concerning formula.lisp: This is mainly being
8 uploaded to make sure I can find a copy sometime in the future. It doesn't
9 have any ties to Maxima right now.
11 Below is preserved part of an IRC discussion on formula.lisp, mainly
12 so I (CY) remember what some of the issues were.
14 <starseeker> what license, by the way?
15 <hefner> dunno, that's a standard disclaimer for me. I guess if you
16 don't expect it to ever reach quite 'TeX' quality output it's pretty
17 sound. Right now I haven't worked out how/when it should emit
18 parenthesis according to operator precedence, that's the major issue.
19 <hefner> license is whatever, public domain I guess
21 <starseeker> I don't think tex quality is called for, at least not
22 right away - Mathematica doesn't achieve it
23 <starseeker> Neither does word, for that matter ;-)
25 <starseeker> Can it handle stuff like integral signs and summations?
26 * starseeker is busily emailing himself the links.
27 <hefner> not yet. I need to work out an interface to symbol fonts
28 across the two mcclim backends, then I'll look at that.
29 <hefner> but there's no reason in theory why it couldn't
30 <starseeker> I've wondered about that - should those be done with fonts
32 <hefner> I'm thinking fonts
33 <starseeker> that's the harder way, right?
34 <starseeker> granted it'll look better
35 <hefner> I think that's the easier way, actually. The fonts should
37 <starseeker> Well, almost - http://www.stixfonts.org
38 <starseeker> yes - I was thinking about resizing them in response to
39 the expression they relate to - drawings you can tie the dimensions in
40 x and y to the size of the expression - how would that work for fonts?
41 <hefner> something creeping up my todo list is a little glue code that
42 lets me match text sizes with pixel sizes (which I intended to use for
43 trying to match the sizes of divisors/dividends more closely, but you
44 could use it here too)
45 <starseeker> Hmm. That's a possibility, but doesn't that break down
46 when generating postscript/pdf?
47 <hefner> well s/pixel/device unit/
49 <starseeker> My worry is if you have something like x^2/(x^3+y)^2 in 2D
50 inside an integral, the font may or may not have an integral symbol to
51 fit. Or am I underestimating fonts?
52 <hefner> ah.. yeah, that could be a problem. the x11 symbol font here
53 is bitmapped and goes up to 34 pixels high. that's too small, actually
54 <starseeker> I think that's why maple does it with drawing lines
55 <starseeker> the original macsyma gui I think did too
56 <starseeker> Mathematica I can't remember
57 <hefner> you could just pester people to install a scalable symbol font.