Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

Re: Arrays of equations

  • To: mathgroup at smc.vnet.net
  • Subject: [mg12763] Re: Arrays of equations
  • From: "P.J. Hinton" <paulh>
  • Date: Wed, 10 Jun 1998 03:04:22 -0400
  • Organization: Wolfram Research, Inc.
  • References: <6l812d$mre@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

On 5 Jun 1998, Issac Trotts wrote:

> Hi all,
> 
> I'd like to make an array of equations looking like this:
> 
>         f(x) + g(x) = h(x) - q(x)
> =>             g(x) = h(x) - q(x) - f(x)
> 
> etc.
> 
> I've been doing this with a table: making four columns, one for the =>,
> one for the left hand side of the equation, one for the equals sign,
> and one for the right hand side of the equation.  This works fine,
> except that everything is centered in each column of the table.  If I
> could right-align the stuff to the left of the "=" and left-align the
> stuff to the right, I would be happy.  Does anyone know how to do this?

This is done by the ColumnAlignments option for GridBox, which is
documented in Section 2.8.11 of _The Mathematica Book_ (Third Edition).

You can adjust the value of this option by doing the following:

1) Select the entire table (GridBox).

2) Click on the front end menu command sequence

	Format -> Option Inspector...

3) In the Lookup line, enter the word "ColumnAlignments".

4) Set the scope of the inspector to "selection" if it is not already
set to this value.

5) Edit the text field for ColumnAlignments to contain the settings of
your choice, whichh is probably:

		{Right, Right, Center, Left}

You may also want to exercise greater control over the relative portions
of the table occupied by each column.  This is done with ColumnWidths,
which is also documented in the same book section.

--
P.J. Hinton
Mathematica Programming Group           paulh at wolfram.com Wolfram
Research, Inc.                  http://www.wolfram.com/~paulh/
Disclaimer: Opinions expressed herein are those of the author alone.



  • Prev by Date: Complex Conjugation
  • Next by Date: Re: logplot
  • Previous by thread: Re: Arrays of equations
  • Next by thread: Integration