MathGroup Archive 2008

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

Search the Archive

Re: Re: Wrapping text to fit a rectangle

  • To: mathgroup at
  • Subject: [mg87057] Re: [mg86977] Re: Wrapping text to fit a rectangle
  • From: Syd Geraghty <sydgeraghty at>
  • Date: Sun, 30 Mar 2008 01:17:56 -0500 (EST)

Hi all,

Depending on the stylesheet you use an interesting artifact can be  
realized when trying to frame text which is illustrated below.

cc = Framed@(StringJoin @@
     Table["The quick brown fox jumped over the lazy dog. ", {10}]);
Graphics[{Inset[cc, {0, 0}, {0, 0}, {400, 100}]}]
Graphics[{Inset[cc, {0, 0}, {0, 0}, {400, 150}]}]

The "vertical line braces" above appear because the top and bottom  
lines of the frame are hidden in the first example.
One sometimes sees this typesetting effect starting a new chapter with  
a quotation in this format in books.

Is there a Mathematica function designed to create this "vertical line brace"  
output with more controllability?  I have searched the documentation  
and there
appear to be possibilities with GraphicsGrid or Grid with its option  
Dividers but that still does not appear to be intended for achieving  
what I have in mind.

It would be nice to have options similar to those for inserting  
horizontal line breaks.
In addition it would be nice to be able to have full control of text  
size, wrap, justification, margin from text to vertical brace,  
vertical brace thickness and length, etc.

Any guidance or suggestions would be appreciated.

Thanks in advance,

Syd Geraghty B.Sc, M.Sc.

sydgeraghty at

My System

Mathematica 6.0.1 for Mac OS X x86 (64 - bit) (June 19, 2007)
MacOS X V 10.5 .20
MacBook Pro 2.33 Ghz Intel Core 2 Duo  2GB RAM

On Mar 28, 2008, at 1:13 AM, Jens-Peer Kuska wrote:

> Hi,
> it is not Text[] and not Rectangle[] but
> cc = Framed@(StringJoin @@
>    Table["The quick brown fox jump over the lazy dog. ", {10}]);
> Graphics[
> {Inset[cc, {0, 0}, {0, 0}, {400, 100}]}
> ]
> may do what you want.
> Regards
>  Jens
> robert prince-wright wrote:
>> Is there a way of wrapping Text[] so that it fits
>> inside a Rectangle{]??
>> Robert Prince-Wright
>> Houston
>> TX, 77006
>> USA

  • Prev by Date: Re: IsIntegerOrFloat
  • Next by Date: Re: IsIntegerOrFloat
  • Previous by thread: Re: Wrapping text to fit a rectangle
  • Next by thread: inverse of partitioned matrix