Bugs in tex-mcond



On 1/10/2011 10:15 PM, Robert Dodier wrote:
> I have a different patch for tex-mcond.
> I pasted the output into a TeX document and
> generated a PDF (attached) from it.
This is an interesting display, but maybe not what people would want by
default, especially for a simple  if-then-else.  Maybe a tex-related flag?

There is another construction, another multi-way branch,
not in Maxima, but Macsyma, which might
have a nice 2-d display,  the "case" statement..

CASE(keyword, ['list-of-indicators1,form1]
  {, ['list-of-indicators2, form2], ..., ['list-of-indicatorsN, formN]})

  Evaluates keyword and compares it with the list of
indicators in the subsequent arguments.  The indicators are not
evaluated.  If keyword is a member of the list of indicators then the
corresponding form is evaluated and the result is returned.  If a
single indicator is given then it need not be a list.  If the final
indicator is either OTHERWISE or TRUE then the final form is
evaluated.

example...

case( b2,[[a1,a2], a]
                 [[b1, b2],b],
[otherwise,x])

familiar to common lisp programmers.