I'm trying to change the CellLabel of Cells using
SetOptions[Cell, CellLabel -> "test"]
or
SetOptions[NotebookRead[nb], CellLabel -> "test"]
if nb is the notebook, without success. How should this be done? Thanks, once again, for all help!
Answer
To see what we are doing, use
SetOptions[EvaluationNotebook[], CellLabel -> True]
Example:
Cell[BoxData[RowBox[{"1", "+", "2"}]], "Input",
CellLabel -> "blabla"] // CellPrint
This should print a cell, such that you can see its label to the left of the cell.
Anyway, we can now do
SetOptions[#, CellLabel -> "test"] & /@ Cells[]
giving all Cells CellLabel test.
Comments
Post a Comment