12 votes

How to decorate cells with widgets like jupyter and collab?

Here's a first attempt: ...
  • 30.2k
8 votes
Accepted

How do I view the built-in definition of TemplateBox styles in terms of low level boxes?

They live in stylesheets: CurrentValue[{StyleDefinitions, "Binomial"}] ...
  • 135k
6 votes
Accepted

Can not change background of code cell style in private stylesheet. Bug?

The simplest, easiest way is to set the background color against the InitializationCell style. Cell[StyleData["InitializationCell"],Background->RGBColor[0.87, 0.94, 1]]
  • 2,776
5 votes
Accepted

Change color of text in comments inside Input cell

This works for me: ...
  • 226k
5 votes
Accepted

ChangeCellStyle function works in one direction but not in reverse

The issue is that the From-> "Code" option is assigned to the bak_ parameter, rather than being interpreted as an ...
  • 30.2k
5 votes
Accepted

How to change the color scheme of DifferentialRoot and DifferenceRoot outputs?

Both DifferentialRoot and DifferenceRoot use the same template for their box structure, which is named "HolonomicDisplay&...
  • 11.6k
3 votes
Accepted

Stop Mathematica’s automatic indentation on existing notebooks

If I understand the question, I think you have to create a stylesheet. Using a document created with the Default stylesheet, this should work: Format > Edit Stylesheet... Base definitions will be ...
  • 5,147
3 votes
Accepted

Trigger Code when the Window Size Changes

Posting this as an answer since it seems to fulfil the requirements You can use NotebookDynamicExpression together with ...
  • 30.2k
3 votes
Accepted

Darker stylesheet for Notebook and overall Interface with high contrast for plots and graphics

Outline Stylesheets Graphics visualization (Plot, Graph, Dataset, etc) modifications ...
  • 4,589
2 votes

ChangeCellStyle function works in one direction but not in reverse

I cannot seem to run your code. In any case, your issue may be related to an issue I was having in solving the same problem. I tried creating a function to change the cell style programmatically. It ...
  • 5,211
1 vote
Accepted

How to check that a user-input of a list of CellObject-s actually belong to the EvaluationNotebook?

You can do this to check whether they all belong there: DeleteDuplicates[ParentNotebook /@ cells] === { EvaluationNotebook[] }
  • 135k
1 vote
Accepted

How can a Style Cell be safely programmatically appended to the Notebook Stylesheet at (Format -> Edit -> Stylesheet)

There is ResourceFunction["AddStyleToNotebook"] which allows to add a new style to the private stylesheet without erasing the existing styles. But ...

Only top scored, non community-wiki answers of a minimum length are eligible