MathGroup Archive 2008

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

Search the Archive

Re: Wrapping text to fit a rectangle

  • To: mathgroup at
  • Subject: [mg87009] Re: Wrapping text to fit a rectangle
  • From: "Fred Klingener" <gigabitbucket at>
  • Date: Fri, 28 Mar 2008 03:19:48 -0500 (EST)
  • References: <fsg6oo$j6m$>
  • Reply-to: "Fred Klingener" <gigabitbucket at>

"robert prince-wright" <robertprincewright at> wrote in message 
news:fsg6oo$j6m$1 at
> Is there a way of wrapping Text[] so that it fits
> inside a Rectangle{]??

Here's how I do it:

, EdgeForm[Black]
, Rectangle[{0, 0}, {300, 200}]
, Inset[
"Wrapped text here.\nLong enough to show wrapping."
, "Label"
, Bold
, LineIndent -> 0
, TextAlignment -> Left]
, 80]
, {150, 0}
, {Left, Bottom}]
It's not pretty, but it lets me get control over the details.

With Options for placement of the Pane contents, you can implement an 
attached Slider to scroll the text too. ScrollingWrappingPane[] would be a 
nice addition to the language.

Be aware, though that Pane had Magnify issues until 6.0.2.

I think TextCell can be made to work inside Inset too. Just differently.

Fred Klingener

  • Prev by Date: Re: Re: Limit[(x - Log[Cosh ]) SinIntegral , x -> Infinity]
  • Next by Date: Re: symbolic evaluation
  • Previous by thread: Re: Wrapping text to fit a rectangle
  • Next by thread: Re: Re: Wrapping text to fit a rectangle