MathGroup Archive 2000

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

Search the Archive

Re: CellAutoDelete

  • To: mathgroup at
  • Subject: [mg25188] Re: CellAutoDelete
  • From: paulh at (P.J. Hinton)
  • Date: Tue, 12 Sep 2000 21:24:30 -0400 (EDT)
  • Organization: "Wolfram Research, Inc."
  • References: <8pkki5$>
  • Sender: owner-wri-mathgroup at

In article <8pkki5$m3q at>,
 "Tom De Vries" <tdevries at> writes:

> I am using some Mathematica programs to generate math tests for my classes. 
> They create questions and answers "randomly" so I can create different
> versions of the same test to avoid students comparing answers.  
> I wonder if anyone could help with this small problem.  Since the tests are
> created by Mathematica, the cells all have  the attribute 
> CellAutoOverwrite->True.   When a student tries to do a calculation in the
> test file,  the cells below the calculation get deleted, or the output cell
> ends up in a different place in the file than expected.  
> I tried selecting all the cells in the file and changing this cell attribute
> to False, but when the student opens the file, it is changed back to True
> again...!?  I have my file with all the cells set to
> CellAutoOverwrite->False   and a student just sent me back their work and
> all the cells are CellAutoOverwrite->True!!   Has anyone had any experience
> with this, or could anyone suggest how to deal with this?    The low tech
> solution has been to put a new text cell at the end of each question, and
> calculations done above this work fine.

I suspect that you are using CellPrint[] to create your cells.  If you
are, then don't use it.  Use NotebookWrite[] instead.  This will spare
you the fate of CellAutoOverwrite.

    GeneratedCell -> False

creates a cell that looks like this:

Cell["2+2", "Input",

P.J. Hinton
User Interface Programmer                         paulh at
Wolfram Research, Inc.
Disclaimer: Opinions expressed herein are those of the author alone.

  • Prev by Date: Re: Displaying 3D data as 2D + color ?
  • Next by Date: Re: Evaluate a string
  • Previous by thread: CellAutoDelete
  • Next by thread: PseudoInverse for exact matrices