MathGroup Archive 2006

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

Search the Archive

Re: [TS 27522]--Re:Re: PageWidth option is not measured in characters

  • To: mathgroup at smc.vnet.net
  • Subject: [mg70736] Re: [TS 27522]--Re:Re: PageWidth option is not measured in characters
  • From: "Chris Chiasson" <chris at chiasson.name>
  • Date: Wed, 25 Oct 2006 01:40:03 -0400 (EDT)
  • References: <200610250030.k9P0U4ci002440@localhost.localdomain>

I, too, think it is in printers points for non-keyboard character displays.

However, the docs don't come out and say it ... which can be a little
confusing when other typesetting commands, such as the GridBox option
for column spacing actually do measure in "characters" (AFAIK)

Maybe this is could be a candidate for a quick documentation patch?

Peace,

On Wed, 25 Oct 2006 00:30:04 UT, mathgroup <mathgroup at smc.vnet.net> wrote:
>  -- Wolfram Research Technical Support --
>
> This is a response to your email.
> The reply to your question can be found at the bottom of this message.
> Our classification number for this message is: [TS 27522]
> Please give this number in any future correspondence
> related to this question. If you leave this number in
> the Subject: [mg70736] header in the form [TS 27522], it will
> automatically be reassigned to the original technician.
>
> From: "Chris Chiasson" <chris at chiasson.name>
To: mathgroup at smc.vnet.net
> Date: Sat, 21 Oct 2006 08:23:24 -0500
> Subject: [mg70736] Re: PageWidth option is not measured in characters
>
> The Help Browser says:
>
> "explicit width in characters"
>
> in its description, which was the reason for the previous message.
>
> On 10/21/06, Chris Chiasson <chris at chiasson.name> wrote:
> > In[1]:=
> > PageWidth::usage
> >
> > Out[1]=
> > PageWidth is an option for output streams and for cells which specifies how \
> > wide each line of text should be allowed to be.
> >
> > In[2]:=
> > DisplayForm@Cell[BoxData["here is some text"],PageWidth\[Rule]50]
> >
> > the output looks like
> >
> > here is
> >  some
> >  text
> >
> >
> > meaning that, at least in the front end, the PageWidth option is not
> > measured in characters
> >
> > --
> > http://chris.chiasson.name/
> >
>
>
> _________________________________________________________________________
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Chris,
>
> The way I read the docs on this is that n as explicit width in characters
> is the unit measure for Streams, while the unit measure for Cells has n
> being printer's points
>
> ----------------
> &#9724; PageWidth is an option for output streams and for cells which specifies how wide each line of text should be allowed to be.
>
> &#9724; Possible settings for output streams are:
>
> Infinity , an infinite width (no linebreaking) },
> n , explicit width in characters
>
> &#9724; SetOptions[stream, PageWidth -> val] resets the line width allowed for an open stream.
> -----------------
> &#9724; Possible settings for cells are:
>
> WindowWidth , the width of the window on the screen
> PaperWidth , the width of the page as it would be printed
> n , explicit width given in printer's points
>
>
> Your example with three inches worth of points comes out on one line:
>
> In[4]:=
> DisplayForm@Cell[BoxData["here is some text"],PageWidth\[Rule] 3*72]
>
>
> Out[4]//
>
> here is some text
>
>
> Tom Zeller
> Wolfram Research Technical Support
>
>
> ----------------------------------------------------------------------------
>
> If this issue is resolved, please consider taking a few minutes
> to give us some feedback on your experience. Please visit
> http://support.wolfram.com/survey/?trackingnumber=27522
> and give your honest answers to these three short questions.
> Thanks for taking the time to help us improve.
>


-- 
http://chris.chiasson.name/


  • Prev by Date: Re: Evaluate, /., {{...}}, etc.
  • Next by Date: how to compact many maps?
  • Previous by thread: Re: "Declaring" a vector for NDSolve
  • Next by thread: how to compact many maps?