MathGroup Archive 2011

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

Search the Archive

Re: Aligning Typeset Math on Equal Signs


Hi Tom,

Nice example. I have a question though. Did you actually type all the 
GridBox's and RowBox's in the example below? If so, I would submit that 
this is a really, really slow way to get from here to there. Personally, 
I would not be willing to type all that stuff just to get the equals 
signs to line up. Maybe I am lazy, but there it is.

I would hope that I could type up the three equations as one usually 
does and then execute some alignment command to make it "look nice".

Kevin

On 9/17/2011 6:25 AM, Tom wrote:
>>> Hello everyone,
>>
>>> How can align my typeset equations on the equal signs?  I'm doing the typesetting in Text cells.
>>
>>> Gregory
>
> HI,  there are always lots of ways to do things.  Not sure if this is
> useful....
>
> Below is a text cell with three lined up equations.   You can copy and
> paste this into Mathematica, then use the cell Menu and Show
> Expression to view it normally.
>
> Cell[TextData[Cell[BoxData[
>   FormBox[GridBox[{
>      {GridBox[{
>         {
>          RowBox[{
>           RowBox[{
>            RowBox[{"2", "x"}], "-",
>            RowBox[{"3", "y"}]}], "=", "5"}]},
>         {
>          RowBox[{
>           RowBox[{
>            RowBox[{
>             FractionBox["1", "2"], "x"}], "-", "y"}], "=", "1"}]},
>         {
>          RowBox[{
>           RowBox[{
>            RowBox[{"2", "x"}], "-", "5"}], "=", "12"}]}
>        },
>        GridBoxAlignment->{"Columns" ->  {{"="}}}]}
>     },
>     GridBoxItemSize->{"Columns" ->  {{
>          Scaled[1]}}}], TraditionalForm]]]], "Text"]
>
>
>
>
> Hit control and return to add  a new line
>
> I keep that handy for when I am typing systems, etc.
>
> TOM
>




  • Prev by Date: Re: output forms
  • Next by Date: Re: Likelihood analysis with Mathematica: which Method for NIntegrate
  • Previous by thread: Re: Aligning Typeset Math on Equal Signs
  • Next by thread: Will it be a problem to include the mathematica plots in conference