Re: Preventing NotebookWrite From Wrapping
- To: mathgroup at smc.vnet.net
- Subject: [mg20488] Re: [mg20431] Preventing NotebookWrite From Wrapping
- From: "Tom De Vries" <tdevries at shop.westworld.ca>
- Date: Wed, 27 Oct 1999 02:04:52 -0400
- Sender: owner-wri-mathgroup at wolfram.com
Hello Steve, minresidual = .0522; Then, once you create a notebook, the following works.... NotebookWrite[nb, Cell[TextData[{ "Min Residual =", minresidual }], "Text"]] though your decimal formatting may not be what you would like. I used the line below to get a better decimal output, but no doubt there is a better way that someone else might suggest. NotebookWrite[nb, Cell[TextData[{ "Min Residual =", Cell[ToBoxes[minresidual, TraditionalForm]] }], "Text"]] Tom De Vries ---------- >From: Steve <nospam at nospam.com> >To: mathgroup at smc.vnet.net >Subject: [mg20488] [mg20431] Preventing NotebookWrite From Wrapping >Date: Mon, Oct 25, 1999, 10:33 PM > >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 > > >