Message Boards Message Boards

0
|
4910 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Skipping CellChangeTimes in Notebooks

Hi,

Is there a way to save a Notebook without writing the CellChangeTimes information?

Thanks, Carlos Felippa

POSTED BY: Carlos Felippa
3 Replies

Do you want to remove the CellChangeTimes information? Or do you want to save a copy of the notebook with the CellChangeTImes information removed but with the original notebook retaining the information?

In the first case you can execute the following in the notebook and then save the notebook:

Module[{nb},
 nb = EvaluationNotebook[];
 SelectionMove[nb, All, Notebook];
 SetOptions[NotebookSelection[nb], CellChangeTimes -> {}];
 ]

In the second case you can do this with a copy of the notebook. Or you can get more sophisticated and create a temporary version of the notebook in which the CellChangeTimes are removed and which is then saved, leaving the original notebook untouched.

POSTED BY: David Reiss

Actually I would like to remove ANY trace of CellChangeTimes FOREVER from any Notebook I use under v9. I do not want that to stay as CellChangeTimes->{}.

Reason: I exchange Notebooks with overseas colleagues and their students, some of whom use older versions such as 5.0. Loading the v9 NB triggers error messages, one per cell. Some of the NB have over 200 cells, so editing that option out by hand is tiresome.

To maintain plot compatibility with older versions I use $VersionNumber If statements. But AFAIK that NB option cannot be controlled that way.

POSTED BY: Carlos Felippa

It looks like there's an option for turning off CellChangeTimes tracking called TrackCellChangeTimes. I found a brief overview of how to change it here:

https://groups.google.com/forum/#!msg/comp.soft-sys.math.mathematica/WbmHY8v1xR4/JDdcNYJwfw0J

POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract