Re: How input stacked characters with vertical bar
- To: mathgroup at smc.vnet.net
- Subject: [mg53061] Re: How input stacked characters with vertical bar
- From: "Steve Luttrell" <steve_usenet at _removemefirst_luttrell.org.uk>
- Date: Wed, 22 Dec 2004 04:52:53 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Here is a Text cell expression that does what you want. Cell[TextData[Cell[BoxData[ FormBox[ SubsuperscriptBox[ RowBox[{ StyleBox["\[LeftBracketingBar]", FontColor->GrayLevel[1]], FractionBox["f", FractionBox["g", "h"]], "\[RightBracketingBar]"}], "a", "b"], TraditionalForm]]]], "Text"] The trick is to use the left and right bracketing bars (these are on the BasicTypsetting palette just below the corresponding left and right angle brackets). You then need to colour the left hand bracketing bar white (so it disappears). It is not OK to simply delete it, because the right hand bracketing bar then appears purple (because it is lonely without its partner!), and this colouration survives all the way to the final printed form. Steve Luttrell "Murray Eisenberg" <murray at math.umass.edu> wrote in message news:cq8tl2$h1h$1 at smc.vnet.net... > OK, that does stack th subscript and superscript -- but they are not > placed where proper mathematical notation says they should appear with > such a vertical bar. > > I've tried both the | key on the keyboard as well as the > VerticalSeparator symbol (on the Complete Characters palette). And > those symbols do (almost) automatically expand to the height of what's > immediately to their left, e.g., a stacked: > > 2 > x > --- > 2 > > But the subscript and superscript I type then are NOT located near the > top and bottom of the vertical bar, where they ought to appear. Rather, > they are quite close together vertically, as if they were the subscript > and superscript on a single letter. > > > Paul Abbott wrote: >> In article <cpekge$74l$1 at smc.vnet.net>, >> Murray Eisenberg <murray at math.umass.edu> wrote: >> >> >>>In a text cell, as part of an in-line mathematical expression, how do I >>>type a stacked pair of expressions, both the same size. For example, >>>the stacked b above a, next to a long vertical bar, as you would see in >>>a statement of the Fundamental Theorem of Calculus that expresses the >>>definite integral as F(b) - F(a). >> >> >> Just as you do for an integral or a sum. Use >> >> \[ControlKey] - >> >> (subscript) for the lower limit and toggle to the upper limit using >> >> \[ControlKey] 5 >> >> These are in the >> >> Edit | Expression Input >> >> menu. >> >> >>>And which is the appropriate symbol for that vertical bar? >> >> >> \[VerticalSeparator] >> >> The keyboard shortcut is >> >> esc | esc >> >> >>>Is there some way to force it to expand vertically to the extent of the >>>stacked expressions next to it, or must one do so manually. >> >> >> Select the VerticalSeparator, open the Option Inspector, type in span, >> hit return, and set the SpanMaxSize to Infinity. >> >> Here is an example of such a cell: >> >> Cell[BoxData[FormBox[RowBox[{RowBox[{"F", "(", "x", ")"}], >> SubsuperscriptBox[StyleBox["\[VerticalSeparator]", >> SpanMaxSize->Infinity], "a", "b"]}], >> TraditionalForm]], "Input" >> ] >> >> Cheers, >> Paul >> > > -- > Murray Eisenberg murray at math.umass.edu > Mathematics & Statistics Dept. > Lederle Graduate Research Tower phone 413 549-1020 (H) > University of Massachusetts 413 545-2859 (W) > 710 North Pleasant Street fax 413 545-1801 > Amherst, MA 01003-9305 >