Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

When a given cell has a label (given with the CellLabel->"label" option of the cell), then this label disappears after calling

SelectionEvaluate[ nb ]

when the contents of the cell is selected. Why is that? Is it possible to keep the label after evaluating its content (without making a new cell, so not using the

SelectionEvaluateCreateCell[]

command?

Thanks for all help!

share|improve this question
1  
Could you describe steps you are performing? I can't reproduce your observation. I have to go now but just in case, take a look at CellLabelAutoDelete. –  Kuba Sep 11 '13 at 13:59
    
Yes, I can add the steps, of course. Should I add an answer for that, to be able to format it? Thanks! –  Gabriel Sep 11 '13 at 14:01
    
CellLabelAutoDelete seems to do the job! Thanks! –  Gabriel Sep 11 '13 at 14:03
add comment

1 Answer

up vote 2 down vote accepted

If you try:

Options[EvaluationCell[], CellLabelAutoDelete]
{CellLabelAutoDelete -> True}

so you see we have to change this default setting by

SetOptions[EvaluationCell[], CellLabelAutoDelete -> False]

(EvaluationCell[] is only for example, do this for the cells you need to)

For global control go to Options Inspector:

Shift+Ctrl+O > Cell Options > Cell Labels > CellLabelAutoDelete

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.