Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

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.


  • Prev by Date: Re: Creating a Banner for presentation
  • Next by Date: Re: How to get the best expression of an ode's solution
  • Previous by thread: How to simplify this expression?
  • Next by thread: How to purge contents of Mathlink buffer after errors sent.