MathGroup Archive 2005

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

Search the Archive

Re: Formatting GridBox with ColumnAlignments

  • To: mathgroup at
  • Subject: [mg62876] Re: [mg62715] Formatting GridBox with ColumnAlignments
  • From: Trevor Bača <trevorbaca at>
  • Date: Tue, 6 Dec 2005 23:12:12 -0500 (EST)
  • References: <> <>
  • Sender: owner-wri-mathgroup at

On 12/6/05, bsyehuda at <bsyehuda at> 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?


  • 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