Re: Aligning Typeset Math on Equal Signs
- To: mathgroup at smc.vnet.net
- Subject: [mg121466] Re: Aligning Typeset Math on Equal Signs
- From: Thomas Dowling <thomasgdowling at gmail.com>
- Date: Fri, 16 Sep 2011 05:47:36 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201109150839.EAA29158@smc.vnet.net>
Hello,
I think what you probably require is AlignmentMarker, esc am esc (or
\[AlignmentMarker]
See here ("Math Typsetting Options and Tweaking", )
http://reference.wolfram.com/mathematica/guide/MathTypesettingOptionsAndTweaking.html
I do it something like this (I am using Mathematica 7 on a Mac) which I learned from
an old Mathgroup post (I cannot locate the original source)
1. From within the text cell, open an inline cell (Insert-> Typesetting->
Start Inline Cell on a Mac with Mathematica 7)
2. Type in the equations putting an alignment marker before each equals
sign (ie "esc am esc =" ..)
3. Close inline cell
4. Select the text WITHIN THE INLINE CELL, and choose TextAlignment ->
OnAlignmentMarker from the Format menu.
5 Click anywhere outside the inline cell.
6 Thats it!
You end up with something like this (should cut-and-paste)
Cell[TextData[{
"This is a text cell\n",
Cell[BoxData[{
FormBox[
RowBox[{
RowBox[{"a", "+", "b", "+", "c", "+", "d"}], "\[AlignmentMarker]", "=",
"50"}], TraditionalForm], "\[IndentingNewLine]",
FormBox[
RowBox[{"a", "\[AlignmentMarker]", "=", "50"}], TraditionalForm]}],
TextAlignment->AlignmentMarker,
FormatType->"TraditionalForm"]
}], "Text",
CellChangeTimes->{{3.5250825627116632`*^9, 3.525082650843917*^9}}]
I also have this from somewhere (again not originally mine) which might be
of use:
eqns = {a == b + c + d + e, a + b == c + d + e, a + b + c == d + e, a + b +
c + d == e};
Grid[List /@ eqns, Alignment -> "=="]
On Thu, Sep 15, 2011 at 9:39 AM, Gregory Lypny
<gregory.lypny at videotron.ca>wrote:
> Hello everyone,
>
> How can align my typeset equations on the equal signs? I'm doing the
> typesetting in Text cells.
>
> Gregory
>
>
- References:
- Aligning Typeset Math on Equal Signs
- From: Gregory Lypny <gregory.lypny@videotron.ca>
- Aligning Typeset Math on Equal Signs