RE: Cell evaluation in notbooks - template notebooks
- To: mathgroup at smc.vnet.net
- Subject: [mg42936] RE: [mg42927] Cell evaluation in notbooks - template notebooks
- From: "David Park" <djmp at earthlink.net>
- Date: Tue, 5 Aug 2003 02:04:52 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Magnus, What about something like... x = 2; StylePrint[ SequenceForm["The new value of ", HoldForm[x + 2], " is ", x + 2], "Text"] You could also look into NotebookWrite with which you could generate a completely new notebook with the complete report. David Park djmp at earthlink.net http://home.earthlink.net/~djmp/ From: Magnus L Andersson (home) [mailto:Magnus.L.Andersson at bredband.net] To: mathgroup at smc.vnet.net Hi, Assume having the following text paragraph with the inline expression X+2, where at an earlier line X was set to 1. >This is a test of X+2 If I now evaluate the inline cell in place I obtain 3 and the paragraph >This is a test of 3 My problem is that I have lost the underlying expression X+2, and if I set X=2 there's no way to re-evaluate the inline cell (3) to get 4. My interest in this is based on wanting to create notebook templates, or forms, than can be instansiated by some parameters and automatically generate the report with the correct inline data in text paragraphs. Any suggestion on how to solve this... Regards, Magnus L Andersson Magnus.L.Andersson at bredband.net