MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Formatting GridBox with ColumnAlignments


On 12/6/05, bsyehuda at gmail.com <bsyehuda at gmail.com> wrote:
> r3 = DisplayForm[GridBox[{{r1}, {r2}}, ColumnAlignments -> Center]]
>  will do the trick

???

Try evaluating r3 with Using ColumnAlignments -> Center and we find

* nothing above the 1 in r2;
* the 1 in r1 above the 2 in r2;
* the 2 in r1 above the 3 in r2;
* the 3 in r1 above the 4 in r2;
* nothing above the 5 in r2.

In other words, ColumnAlignments -> Center causes r1 and r2 to be
*centered*, as we would expect.

The challenge is to (more-or-less) left-align r1 over r2, such that:

* the 1 in r1 will be above the 1 in r2.

(Think of r1 and r2 as two different lines of symbolic material to be
left-aligned in r3, under the condition that the leftmost numbers in
each should align exactly, ignoring the start-parenthesis in r1 and
the overbracket in r2.)

Is this possible?

Trevor.


  • Prev by Date: Re: Types in Mathematica, a practical example
  • Next by Date: Re: How to set up a diff equation for circuit with a diode?
  • Previous by thread: Re: Formatting GridBox with ColumnAlignments
  • Next by thread: Re: solving simultaneous coupled differential equations