New answers tagged

4

This is not a real answer but a detailed explanation of performance issue with member kglr's first two solutions. Use third solution. It works perfectly,. Solution 1: Scan Scan[(CurrentValue[#, StyleNames] = "Code")&, Cells[CellStyle -> "Input"] It sort of kind of works. Yes it seems to set CellStyle StyleNames from "Input&...


4

Try Scan[(CurrentValue[#, StyleNames] = "Code")&, Cells[CellStyle -> "Input"]] or SetOptions[#, "Code"]& /@ Cells[CellStyle -> "Input" ] or NotebookWrite[#, Replace[NotebookRead[#],"Input" -> "Code", All]]& /@ Cells[CellStyle -> "Input"] or, using ReplaceAll, ...


2

The notebook is a text-file. You can add any markers inside it as a (*comment*) by any text editors outside the "Notebook Content" section. These comments are invisible from Mathematica and you can hide it inside the inner data of Mathematica making the ID numerical or using senseless strings.


8

You could tag a notebook with an encrypted identifier. studentID = "Albert Einstein's notebook 42"; encryptedID = Compress[Encrypt["password", studentID]]; SetOptions[EvaluationNotebook[], TaggingRules -> {"innocuousTag" -> encryptedID}]; Then when you open it you can check the identity. readID = Uncompress[CurrentValue[{...


2

currently there is no way to achieve the deletion of the TemplateBox via a single delete. Normally the TemplateBox has arguments so the promotion of the selection to the whole of the TemplateBox generally makes sense, however in the no argument case I can see the appeal of just deleting the entire TemplateBox. I'll discuss this with colleagues and maybe ...


5

The functionality still exists in current version of Mathematica, but it has slightly changed for several times in past versions. According to my test, the functionality is introduced in v3, but auto conversion doesn't happen in any version if one directly types the expression inside the notebook. In v3 and v4, one needs to manually convert the cell to ...


Top 50 recent answers are included