Re: Preventing NotebookWrite From Wrapping
- To: mathgroup at smc.vnet.net
- Subject: [mg20481] Re: Preventing NotebookWrite From Wrapping
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Wed, 27 Oct 1999 02:04:47 -0400
- References: <7v3d0k$612@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Steve <nospam at nospam.com> wrote in message news:7v3d0k$612 at smc.vnet.net... > In Mathematica 3.0 how would I write text and the value of a parameter > to a notebook such that both end up on the same line ? > > What I would like written to the notebook is for example > > Min Residual = .0522 > > I tried > NotebookWrite[nb,{"Min Residual=",minresidual}] > > where nb=NotebookCreate[] and minresidual is the desired value. > > The problem is that minresidual wraps to the next line, like so > > Min Residual= > .0522 > > Is there a way to prevent this wrapping ? > > Thanks > > Steve > Steve, How about NotebookWrite[nb, "Min Residual= " <> ToString[MinResidual]] -- Allan --------------------- Allan Hayes Mathematica Training and Consulting Leicester UK www.haystack.demon.co.uk hay at haystack.demon.co.uk Voice: +44 (0)116 271 4198 Fax: +44 (0)870 164 0565