Linked Questions

4
votes
1answer
119 views

Exporting notebooks inserts unwanted $CellContext. Workaround? [duplicate]

Let's import a notebook: nb = ImportString["Notebook[{},TrackCellChangeTimes->False]", "NB"] (* Notebook[{}, TrackCellChangeTimes -> False] *) All is well ...
10
votes
0answers
139 views

NotebookWrite a Cell with WholeCellGroupOpener option [duplicate]

Why NotebookWrite[ EvaluationNotebook[], Cell["ZZ", "Section", WholeCellGroupOpener -> True] ] produces: ...
0
votes
0answers
87 views

Loading Cell Option Definitions on Kernel Launch for Stylesheets [duplicate]

I have my own stylesheet that I like using so much I change all my documents to it almost immediately, but as I demo Mathematica to people I cannot use ...
5
votes
2answers
174 views

Setting WholeCellGroupOpener [duplicate]

When I write WholeCellGroupOpener, Mathematica autocompletes it, but it doesn't recognize it (it stays blue instead of turning black). Example: ...
6
votes
1answer
443 views

Close or Open, not OpenClose CellGroups for specific CellStyle

I am aware of the question Close programmatically all cell groups in Mathematica but I am trying to find out how to close only one kind of Cells in a notebook, e....
9
votes
1answer
138 views

How to sort cells?

Is there a way to programmatically reorder the section cells in a notebook alphabetically? For example:
8
votes
1answer
96 views

How can I use CurrentValue in packages as it generates symbols in current context?

I just found that CurrentValue[$FrontEnd,"ScreenInformation"] will generate (some of) the symbols it uses as keys in the current context of the first evaluation (it ...
4
votes
1answer
95 views

How to improve on this Stylesheet Manipulation for Message Styling

The answer by @Kuba changing color of error messages did not seem to work for me (MMA 11.0.1 Win 10 64-bit). I couldn't work out why and implemented something else that does work for me, but it seems ...
5
votes
1answer
99 views

String option names for Cells

They seem to be correctly interpreted. I'm asking because of some minor reasons and a major one: NotebookWrite a Cell with WholeCellGroupOpener option I don't know any official confirmation so let ...
5
votes
0answers
47 views

Keyboard Shortcuts in paclets?

I’m trying to add simple keyboard shortcuts (together with menu item) to my paclet through FrontEndExecute which works fine in notebook, but as soon as I put it into my paclet and import it the menu ...