Re: Formatting in text cells ...

*To*: mathgroup at smc.vnet.net*Subject*: [mg95636] Re: Formatting in text cells ...*From*: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>*Date*: Fri, 23 Jan 2009 05:08:16 -0500 (EST)*References*: <gl4a33$gd1$1@smc.vnet.net> <gl72rm$cqf$1@smc.vnet.net>

[Mail from David below.] Hi David, It seems that the problem arises from the fact that you formatted the text cell with TraditionalForm instead of keeping it at its default TextDisplay. As far as I can see, inline equations are already done in TraditionalForm, so there is no need to select this style for the whole text cell (or perhaps your using a style that does that?). Here is the cell that I get when I type it myself: Cell[TextData[{ "Any single arbitrarily oriented dipole source can be represented by \ two scalar potentials ", Cell[BoxData[ FormBox[ SubscriptBox["F", "z"], TraditionalForm]], FormatType->"TraditionalForm"], " for vertical electric dipoles, and ", Cell[BoxData[ FormBox[ SubscriptBox["G", "z"], TraditionalForm]], FormatType->"TraditionalForm"], " for vertical magnetic dipoles. Since in a horizontally - layered \ earth, there can be no vertical magnetic field from a vertical \ electric dipole, fields from a vertical etc. etc." }], "Text", CellChangeTimes->{{3.44165000465625*^9, 3.44165024390625*^9}}] In your cell expression I see things like: RowBox[{ SubscriptBox["F", "z"], " ", "for", " ", "vertical", " ", "electric", " ", "dipoles"}] which cause parts of the sentence to be seen as independent units. Don't know whether this solves your printer problem. Haven't tested that. Cheers -- Sjoerd Hi Sjoerd, > wrt to your first question: I don't seem to have this problem. Could > you post an example of a cell that's having this problem? In the following cell, I get Mathematica-imposed new lines after "potentials" & "earth". When printing, everything after the F(sub)z has a dark background. This is the first time I've seen the background effect but other cells in the notebook, though not all, have the line-break issue. It's the random nature of the effect that's worrying as well as the apparent non-fixableness (yes -- that is a word -- now) of the problem. Regards, Dave. An example cell is Cell[TextData[{ "Any single arbitrarily oriented dipole source can be represented by \ two scalar potentials ", Cell[BoxData[ FormBox[ RowBox[{ RowBox[{ SubscriptBox["F", "z"], " ", "for", " ", "vertical", " ", "electric", " ", "dipoles"}], ",", " ", RowBox[{ RowBox[{"and", " ", SubscriptBox["G", "z"], " ", "for", " ", "vertical", " ", "magnetic", " ", RowBox[{"dipoles", ".", " ", "Since"}], " ", "in", " ", StyleBox["a", FontSlant->"Plain"], " ", "horizontally"}], "-", RowBox[{"layered", " ", "earth"}]}], ",", " ", RowBox[{ "there", " ", "can", " ", "be", " ", "no", " ", "vertical", " ", "magnetic", " ", "field", " ", "from", " ", "a", " ", "vertical", " ", "electric", " ", "dipole"}], ",", " ", RowBox[{"fields", " ", "from", " ", StyleBox["a", FontSlant->"Plain"], " ", "vertical", " ", "electric", " ", "dipole", " ", "are", " ", "called", " ", "the", " ", "transverse", " ", "magnetic", " ", "mode", " ", RowBox[{ RowBox[{"(", "TM", ")"}], ".", " ", "Analagously"}]}], ",", " ", RowBox[{ "fields", " ", "from", " ", "the", " ", "vertical", " ", "magnetic", " ", "dipole", " ", "are", " ", "called", " ", "the", " ", "transverse", " ", "electric", " ", "mode", " ", RowBox[{ RowBox[{"(", "TE", ")"}], "."}]}]}], TraditionalForm]]] }], "Text", CellChangeTimes->{{3.441396065459997*^9, 3.4413961117040772`*^9}, { 3.4413978031905613`*^9, 3.441398018532933*^9}, { 3.4413993977116065`*^9, 3.4413993988365993`*^9}, { 3.441482720735684*^9, 3.4414827238028393`*^9}}, TextJustification- >0., FontFamily->"Arial"] On Jan 21, 2:01 pm, "Sjoerd C. de Vries" <sjoerd.c.devr... at gmail.com> wrote: > Hi Dave, > > wrt to your first question: I don't seem to have this problem. Could > you post an example of a cell that's having this problem? > > Cheers -- Sjoerd > > On Jan 20, 12:46 pm, annetts729 <davidanne... at aapt.net.au> wrote: > > > Hi, > > > Recently, (actually inspired by the "What editor ..." thread) I have > > had occasion to use Mathematica 7 as a text entry tool -- explanatory > > text followed by numbered equations, followed by more text & more > > numbered equations. By and large, it's proving an easier environment > > for this sort of task than MS Word (and equation editor), though not > > nearly as easy as WordPerfect's equation editor from 5.1 / 6 days. > > > I have two (!) problems. > > > 1. Text cells are just fine unless they include explanatory text with > > either super or subscripts. When these are involved, it seems that > > justification rules go out the window; one line might end halfway > > across the window while another might go all the way to the end of the > > window. I can get this effect simply by having something like > > Subscript[F, z] in the middle of a text cell, and on looking a little > > closer, commas appear to be the signal to start a new line > > irrespective of whether it's appropriate to do so. How can I get tex= t > > cells to run to the end of the window when they are long enough to do > > so, and still contain symbols with super & subscripts? > > > 2. Upon printing, some _parts_ cells which contain text as well as > > symbols and super & subscripts are printed with a darker background. > > Why is this, and more importantly, how do I get rid of it? > > > Many thanks, > > > Dave. > >

**Re: Basic questions on list manipulation in the "Mathematica Way"**

**Re: Re: Which editor do you use for math articles**

**Formatting in text cells ...**

**Re: DO and LISTPLOT**