Questions tagged [stylesheet]
Styles define how Mathematica notebooks, cells and expressions are formatted, displayed, evaluated and interacted with.
336
questions
1
vote
1
answer
32
views
How to avoid spaces before parenthesis in DisplayFormula cells?
When I write a formula in a DisplayFormula or DisplayFormulaNumbered cell, I like to use "traditional notation", i.e. function-parenthesis-argument instead of function-squarebracket-argument....
0
votes
1
answer
77
views
Why does font weight sometimes lighten in certain Input cells?
Why do font weights sometimes change in cells, where they evolve from a regular weight to a dimmer or lighter font weight? The notebook I have open is not heavy as it only has a few cells. Also, there ...
1
vote
1
answer
83
views
How to check that a user-input of a list of CellObject-s actually belong to the EvaluationNotebook?
Suppose a user inputs a list of CellObject-s to operate on. How might one check these objects to determine if they actually belong to the ...
0
votes
0
answers
16
views
How to add a new style in a separate version of Default.nb to be used as default stylesheet
I want to add an additional style to be used globally in my notebooks. I often find that I need both a "Code" style that is an initialization cell (and whose cells get exported to an ...
2
votes
2
answers
119
views
ChangeCellStyle function works in one direction but not in reverse
This post is a continuation of an earlier Question, How to programmatically change CellStyle of all Cells from "Input" to "Code"? but with a ...
0
votes
0
answers
31
views
Is there a stylesheet producing style same as Mathematica's guide documents?
I prefer the format of the Mathematica help documentations, where can I import this stylesheet?
If there is no such stylesheet, it is okay to recommend some of the same, thank you.
for no ambiguity, ...
3
votes
1
answer
76
views
How to change the color scheme of DifferentialRoot and DifferenceRoot outputs?
Question:
Differential root reduce uses the font color of the stylesheet and a default white background. How to change the color of the background ?
Why :
I am using a dark style sheet where text is ...
2
votes
1
answer
53
views
Trigger Code when the Window Size Changes
I created a button that temporarily fixes the text alignment bug described here. The code for the button is shown below.
...
3
votes
1
answer
176
views
Darker stylesheet for Notebook and overall Interface with high contrast for plots and graphics
I am currently looking for a stylesheet in a black theme that still has high contrast for graphics/plots and similar. Preferably it should also change the menu to a darker color. It preferably should ...
0
votes
0
answers
14
views
How can I prevent spelling out the path to my user-specific Default.nb in references to private stylesheets of newly created notebooks?
This question came up with Mathematica 12.3.0.0. It probably also applies to other versions with slight variations, e.g. the initialization cells in Mma 13.0 are said to be shaded pink instead of gray....
0
votes
0
answers
26
views
Notebook with an old default styling - How can I continue with updated styling
This question arose with Mathematica 12.3.0.0.
I have an old notebook. In this one, the initialization cells are not shaded gray.
If I start a new notebook, all initalization cells in it appear on ...
8
votes
1
answer
108
views
How do I view the built-in definition of TemplateBox styles in terms of low level boxes?
The following:
TemplateBox[{"a", "b"}, "Binomial"] // RawBoxes
yields the correctly formatted (2d box structure) of Binomial[a,b]:
$$\...
1
vote
1
answer
82
views
How can a Style Cell be safely programmatically appended to the Notebook Stylesheet at (Format -> Edit -> Stylesheet)
The purpose of this is to append a DockedCell style definition to the list of cells inside Edit Stylesheet without deleting any ...
1
vote
2
answers
87
views
How restore Default stylesheet's new type of group openers?
With the Default stylesheet (in Mathematica 13.1 and several versions earlier), the new kind of group opener for sections, subsections, etc., appears as in this screenshot:
When I apply a certain ...
12
votes
1
answer
173
views
How to decorate cells with widgets like jupyter and collab?
I would like to add a couple UI features from cells in python notebooks that I find helpful. Specifically, these two features from google's collaboratory and vs-code's jupyter mode:
To the left of ...
3
votes
1
answer
138
views
Can not change background of code cell style in private stylesheet. Bug?
I would like to change the background color of the code cell style in my private stylesheet.
I can change the background of the text cell style for example but not the code cell style in my private ...
2
votes
1
answer
176
views
Stop Mathematica’s automatic indentation on existing notebooks
This question relates to Mathematica 12.3 (and possibly many other versions).
Mathematica's automatic indentation does not conform to my workflow. From the very old days of Mathematica 1.2, i.e. ...
4
votes
1
answer
247
views
Change color of text in comments inside Input cell
I've made my research in how to change the color of comments inside an input cell. I've tried it all and nothing seems to work as it should.
First, I am using a Stylesheet, not the default looking ...
0
votes
0
answers
85
views
How do I cope with "The TemplateBox was unable to use the specified display function..."?
$Version -> "12.3.0 for Linux x86 (64-bit) (May 10, 2021)"
I used
...
1
vote
0
answers
45
views
Stylesheet Directives for DisplayFormular overwritten?
I'm trying to change the font of DisplayFormula, DisplayFormulaNumbered and InlineFormula in my stylesheet. So in the options inspector of the stylesheet under ...
1
vote
0
answers
88
views
How to put image in mathematica header?
I wanted to know if you can help me how to put this image in the header of the notebook
Thanks in advance :)
2
votes
2
answers
109
views
How can the format of Initialization Cells be set to the format of normal input cells?
I don't like how initialization (or "Code") cells are formatted in notebooks, namely the grey background color and the spacing/wrapping settings. I want ...
3
votes
1
answer
155
views
Magnification messing up styles
I have defined the following Input/Output styles in my stylesheet:
...
29
votes
2
answers
681
views
Writing a technical note in Mathematica
I have been using Mathematica for many years, mostly for plotting, derivations and numerical computations. Many times I tried to incorporate some text and formulas in my worksheets. Text is Ok, but ...
3
votes
1
answer
96
views
Is it possible to substitute one style with another via Stylesheet?
When thinking on the question
How to programmatically change CellStyle of all Cells from "Input" to "Code"?
it crossed my mind that it may be possible to "intercept" ...
1
vote
1
answer
58
views
How to customize a notebook as follows
How to customize a notebook including drop-down cells and 'button >>'
5
votes
0
answers
90
views
MoleculePlot is completely unfunctional when DefaultStyleDefinitions sets to ReverseColor.nb [duplicate]
If you set the DefaultStyleDefinitions sets to ReverseColor.nb
then when you try to execute the example from the MoleculePlot document,
your MoleculePlot will have blank result like
even if you ...
2
votes
0
answers
43
views
How to automatically name a Wolfram Notebook after the first title line of code if present?
I have a goal of somehow using Wolfram Mathematica's Notebook object functionality to program an initialization cell that will automatically save and name a new file after a title line of code ...
7
votes
0
answers
188
views
How to format notebook like ACL Papers?
I typically use the ICML or ACL paper format in latex which is two-columns (shown below). Is there anyway to get a two column stylesheet that looks similar?
1
vote
0
answers
19
views
How to Dynamically update CellFrame around 1, 2 or more cells of the same style (Looking for a Stylesheet Solution)
The following "Theorem" cellstyle in defined in my private stylesheet
...
2
votes
0
answers
93
views
Realtime background blur
Is it possible to have partially transparent cells (attached or docked) with live background blur? Something like this:
Here's what I've tried:
...
2
votes
3
answers
102
views
Make new cells in package files Input-style cells by default
When editing a package (*.wl or *.m) file, the "Style" of each newly-created cell is "Code" by default. However, when writing code (and in particular, usage messages) in these ...
3
votes
0
answers
42
views
Trigger immediate update of (Inherited?) stylesheet to notebook [duplicate]
I’ve noticed that when I make changes to a notebook’s stylesheet, whether it’s manually or programmatically, often the changes are not applied immediately to the notebook.
Usually all it takes is ...
0
votes
0
answers
84
views
Cursor (prompt) color using black background
I am dealing with a prompt (blinking cursor) color problem in Mathematica 12.3.0. I am using a black theme (my input cells have black background) and, during the cell editing, the prompt blinks in ...
1
vote
0
answers
38
views
In my stylesheet how to change number color to red?
I would like to have a notebook stylesheet which colors any number e.g., {1,2,{3}} red. I tried Preferences ,Appearance, LocalVariables etc.but there numbers stay black. How can I change my stylesheet?...
1
vote
1
answer
54
views
Stylesheet that assigns CellIDs as CellTags
For a given notebook, I can turn on CellIDs by opening the notebook's stylesheet and adding the following code:
...
2
votes
0
answers
57
views
Using a Stylesheet to create reference links to "DisplayFormulaNumbered" cells using CellIDs
Suppose I have a notebook with lots of "DisplayFormulaNumbered" cells. These cells have a built-in counter, which continuously updates when cells are deleted, moved or added, which is nice. ...
4
votes
1
answer
116
views
Set a background color for several adjacent cells and "page"
I'm using a book style sheet but this question applies to the standard notebook interface as well.
I'm writing a sequence of cells in different styles (text, equation, figure, figure caption, ...) in ...
1
vote
2
answers
200
views
How to set a background color for a cell style via a command?
I want to set different background colors for various cell styles (e.g. Section, Text), so that whenever I choose a specific style for some cell in the notebook, it automatically gets colored ...
0
votes
0
answers
22
views
CDF Strange difference of line Plot display when switching from stylesheet "Normal" to "Journal Article" with "Manipulate"
A LinePlot graphic with Manipulate works well in the CDF Player if i Use the stylesheet "Normal" but is rendered quite differently when I use the stylesheet "Journal Article". Here ...
0
votes
0
answers
35
views
GraphicsGrid $\to$ Beep "The shared stylesheet "Stylesheet-review-topics.nb" could not be \ found. The default stylesheet will be used instead."
12.0.0 for Microsoft Windows (64-bit) (April 6, 2019)
I have a notebook in which using GraphicsGrid causes a beep "The shared stylesheet "Stylesheet-review-topics.nb" could not be found....
11
votes
1
answer
224
views
How to modify default options of Dataset
I try to make a dark stylesheet based on the ReverseColor theme. However, dataset headers are barely readable.
This question is related to others such as
Question ...
4
votes
1
answer
76
views
How to preserve the Checkbox value after closing the notebook
I am trying to create a to-do list style for the stylesheet. The goal is to have a CellDingbat that is a check box. And after pressing enter, a new cell with a ...
1
vote
1
answer
166
views
Mathematica 12.1 is treating all my cells as raw texts by default
I was once using Mathematica 11 it all works fine - when I create new Notebook (.nb) input like 1+1 and press shift+...
3
votes
2
answers
70
views
Can a Style inherit CellMargins depending how it is grouped?
This is a cross-post from https://community.wolfram.com/groups/-/m/t/2107710?p_p_auth=JoAd1Xpi
and is similar to How to inherit indentation in cell groups?
I'd like to have the Styles Item, Subitem, ...
1
vote
0
answers
53
views
Latex Stylesheet and inline text cells
I am looking for a professionally looking LaTex ish stylesheet, where i can still calculate equations within Mathematica.
Also i am wondering if i can get inlineText cells to display summations with ...
1
vote
1
answer
57
views
Change the linespacing of input cell of Mathematica globally
Is there a way to change linespacing of input Cell of Mathematica globally? I think the default linespacing is a litte small and want to change it. I have tried to do it by set options of input Cell ...
1
vote
1
answer
365
views
Pressing the "enter" key in the Python External Evaluation cell becomes "run" instead of "line break"
I have met problem in the use of style sheet. In using the External Evaluation of Python in Mathematica, If we choose the style sheet as "Default", pressing the "Enter" will cause ...
4
votes
1
answer
128
views
Is there a way to construct more/deeper layer of subsection?
We know in a notebook there are Sections, Subsections and Subsubsections. I wonder is there a way to construct something like Subsubsubsection and Subsubsubsub...subsection?
I ask this because when I ...
1
vote
0
answers
113
views
How can i change IDE color theme of Mathematica Wolfram? [duplicate]
I'm a new in mathematica wolfram, please help how can i change IDE colors theme's, text and background? I can't work with bright white screen?
I use Mathematica 12.1. and want color theme like a ...