Questions tagged [stylesheet]
Styles define how Mathematica notebooks, cells and expressions are formatted, displayed, evaluated and interacted with.
362 questions
3
votes
0
answers
114
views
Turn off keyboard shortcut, redux
This is a duplicate of a previous question (linked below), but the previous answer no longer works.
Every once in a while when editing a formula, I want to add a parenthesis at the beginning of the ...
0
votes
0
answers
63
views
Differents Notebook background color in differents Environment with stylesheet
I build a custom stylesheet several years ago, where the notebook background is
Light Purple in working environment
White in Printout Environment
For this I used the section Style Environment Name of ...
0
votes
0
answers
106
views
Save notebook as HTML: Styles not preserved
I am saving a notebook as an HTML document. The html file is created, but the coloring and styles are lost. It appears in black and white.
When saved as a PDF, it works.
Is there anything extra that I ...
4
votes
1
answer
334
views
Stylesheets not working in Mathematica 14.2
I have 14.2 and I chose macOS stylesheet option from writing assistant. Now the yellow color is not applied anymore in 14.2
The white part of the notebook should be yellow.
Does anyone has this issue?
0
votes
0
answers
57
views
AutomaticNumbering does not recognize my privately created style
Automatic Numbering does not recognize my privately created style:
...
1
vote
0
answers
120
views
How to Style certain words in ExternalLanguage cells?
I know I can Style all content of a cell using:
...
1
vote
0
answers
84
views
How to apply a function f to the output of external language cell?
I have a External language session of "SQL-JDBC" created and connected to the External language cell:
...
10
votes
3
answers
645
views
Change style of True/False everywhere
I was wondering if it was possible to change the output of Booleans, (True and False) so that they are always displayed in ...
2
votes
1
answer
88
views
How to change the appearance of file object?
Sometimes the file path is too long, and it's really inconvenient to open the file by clicking the ">>" button on the right.
Is it able to modify the appearance of file object by ...
1
vote
1
answer
114
views
Option Style Definitions Not Grabbing CurrentValue["MouseOver"]
I created a private stylesheet for a notebook that makes Section style cells appear bold when moused over. Here is the private stylesheet.
...
2
votes
1
answer
160
views
CellDingbat Background Issue
I've modified my stylesheet to illustrate some Wolfram code for my students. I created a CellDingbat and set the background to white, but for some reason, I still get gray coming through from the cell ...
2
votes
1
answer
159
views
StyleSheet in MMA 14.1
This works with MMA 14.0:
c:\users\myname\AppData\Roaming\Mathematica\SystemFiles\FrontEnd\StyleSheets\calibri.nb
This doesn't work with MMA 14.1, why? :
c:\users\myname\AppData\Roaming\Wolfram\...
1
vote
1
answer
123
views
How can I import a stylesheet from another workbook? [closed]
I get the following error message:
The stylesheet "D:\OneDrive\Documents\Mathematics\Physics\E&M\ElectroDynamics_v3.0.0\9_Relativistic_Electrodynamics-working-stylesheet.nb" depends upon ...
0
votes
0
answers
70
views
Trying to get rid of cell and notebook (?) dingbats from ages ago
Years ago, I must have changed my stylesheet or something and put in clubs (the card suit) as cell dingbats. I'd like to get rid of them. I can turn them off manually, but the change does stick, and I ...
4
votes
2
answers
244
views
How to typeset a key combination in Mathematica notebook?
I'm writing a tech note in Mathematica, and would like to include some key combination shortcuts. For example, Ctrl+/ for entering fractions. How do I typeset key combinations so that they look like ...
4
votes
1
answer
158
views
Is there an easy way to batch the change of StyleSheet in 120 notebooks
At one point in the past I believed that a style sheet colocated with a notebook would not require a path. For example, if my notebook resided in the same directory as this style sheet, the style ...
0
votes
0
answers
126
views
What does "Function Resource" above my toolbar mean, and how do I get rid of it?
I am a bit lost probably. I dont know how I activated it but this appeared in my notebook. This was not above my toolbar for the most time I was working on the Notebook, which was quite a while. The ...
2
votes
1
answer
127
views
How do I change my Input/Output labels back to the default?
My notebooks have a non-standard In/Out labels.
They look like this:
I changed label style so long ago, I can't remember how I did it.
I've tried changing the CellLabelTemplate option, but that didn'...
1
vote
0
answers
76
views
Component stylesheets
A bunch of years back I wrote a reasonably functional IDE for Mathematica development in Mathematica, which required me to tackle a bunch of thorny theming issues
In particular, I consistently came ...
1
vote
0
answers
125
views
Monokai Pro Stylesheet
I am searching for a Monokai or Monokai Pro Stylesheet for Mathematica. Any idea of where I could find it or how I could easily import it from Monokai Website?
13
votes
2
answers
495
views
Turn off keyboard shortcut
Every once in a while when editing a formula, I want to add a parenthesis at the beginning of the line by pressing Shift9 to get (. However, I will accidentally ...
1
vote
1
answer
156
views
Customising the editor: (real) monospace font and dark theme (and more)
I don't know how to make the code editor in Mathematica present the code in a real 'monospace' font, with a dark, customisable theme (syntax highlighting and so on). This is something that keeps me ...
1
vote
0
answers
75
views
GraphicsBoxOptions no longer working in Mathematica 13.3
Previously, I used GraphicsBoxOptions to set BaseStyles for my notebook. It is no longer working in Mathematica 13.3. What is ...
0
votes
0
answers
110
views
Problem extend the Text style
This question follows up on a previous question SelectionMove in Stylesheets that essentially asked to how to construct a new style that was the same as a "Text" paragraph except that the ...
4
votes
1
answer
183
views
Problem with SelectionMove in stylesheets
I would like to design a cell style, for inclusion in a stylesheet, having the following characteristics:
It should be a cascade descendant of Text, called here FactoidText
When a FactoidText cell is ...
1
vote
1
answer
106
views
Permanently changing default output style
I have read through this discussion several times: Keeping Quotation Marks in Output
Unfortunately, the accepted answer here only works once, at the notebook level. I'd like to permanently change this ...
1
vote
0
answers
148
views
How to restore LightGray Background to initialization cells?
I am running Mathematica 13.2.1 on a new MacBook Pro M2 with Ventura 13.2.1. I have done something that causes any initialization cells that I create or view to no longer have a LightGray background. ...
1
vote
1
answer
249
views
Resetting Default Stylesheet/Options Inspector
While trying to learn about the use of Stylesheets and use of the Options Inspector, I have managed via misguided bravado or accident to change the global options for the default stylesheet in a way ...
2
votes
0
answers
84
views
What do I need to do to change CellFrameStyle in the stylesheet?
My stylesheet inherits definitions from Core.nb. I want the cell frame of a particular cell to be dotted. I went to "Edit Stylesheet" and then selected the cell style I want to change. I ...
4
votes
1
answer
138
views
How to programmatically open the Stylesheet of the current notebook
How do you programmatically open the stylesheet of the current notebook? I can choose the "Edit Stylesheet..." menu item with my mouse, but I can't find a way to do it programmatically. I ...
4
votes
1
answer
150
views
How to add a popup menu to the default toolbar?
Is there a way to customize the default toolbar in Mathematica 13? I would like to add a new icon to the toolbar, which triggers a popup menu containing several frontend operations I can customize (...
1
vote
0
answers
178
views
How get this kind of group opener?
Some notebooks of mine have Section (and Subsection) cells formatted like the following, so that clicking on the icon to the right of the Section's title opens the entire group of cells in that ...
1
vote
1
answer
84
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
183
views
Why does font weight sometimes lighten in certain Input cells? [closed]
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
260
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 ...
2
votes
2
answers
259
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 ...
3
votes
1
answer
155
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
127
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
452
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 ...
10
votes
1
answer
188
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
162
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 ...
2
votes
2
answers
222
views
How can I 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
304
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 ...
4
votes
1
answer
221
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
567
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
1k
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
201
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
...
2
votes
0
answers
84
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
173
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
300
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 ...