Problem with CellPrint
- To: mathgroup at smc.vnet.net
- Subject: [mg93637] Problem with CellPrint
- From: ag <ashutoshgupta.umd at gmail.com>
- Date: Wed, 19 Nov 2008 05:40:05 -0500 (EST)
Hi,
I am using the following line of code to create a sequence of
commands:
CellPrint@TextCell["Section", "Subsection"]; Table[
CellPrint[TextCell["Sub" <> ToString[j], "Subsubsection"]];
CellPrint[TextCell[Defer[Table[Print[i], {i, 5}]], "Input"]];, {j, 1,
5}];
Just copy & paste in the notebook.
When I evaluate the commands within each subsubsection, couple of
unexpected things happen:
1. The heading of following subsubsection is lost.
2. All the results go to the last subsection.
& more..
I am not sure whats wrong...
Ashutosh.