12
votes
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"}]
...
Kuba♦
- 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
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[] }
Kuba♦
- 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 ...
- 60.8k
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
stylesheet × 336front-end × 98
notebooks × 70
style × 57
cells × 54
formatting × 37
customization × 32
inheritance × 19
output-formatting × 13
color × 13
options × 12
fonts × 12
document-creation × 11
bugs × 10
export × 9
cdf-format × 9
dynamic × 6
packages × 6
docked-cell × 6
graphics × 5
pdf-format × 5
latex × 5
display × 5
printing × 5
syntax-highlighting × 5