Skip to main content

Questions tagged [stylesheet]

Styles define how Mathematica notebooks, cells and expressions are formatted, displayed, evaluated and interacted with.

Filter by
Sorted by
Tagged with
1 vote
1 answer
68 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. ...
B flat's user avatar
  • 5,842
1 vote
1 answer
49 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 ...
B flat's user avatar
  • 5,842
2 votes
1 answer
104 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\...
runner's user avatar
  • 105
1 vote
1 answer
68 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 ...
Klandgren 's user avatar
0 votes
0 answers
39 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 ...
thejacksonjive's user avatar
4 votes
2 answers
172 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 ...
nflswsykimi's user avatar
4 votes
1 answer
111 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 ...
Steven Thomas Hatton's user avatar
0 votes
0 answers
76 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 ...
phein1's user avatar
  • 33
2 votes
1 answer
74 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'...
Craig Carter's user avatar
  • 4,665
1 vote
0 answers
53 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 ...
b3m2a1's user avatar
  • 47k
1 vote
0 answers
62 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?
Daniel Rosencat's user avatar
12 votes
2 answers
332 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 ...
user297024's user avatar
1 vote
1 answer
89 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 ...
Vicent's user avatar
  • 1,111
1 vote
0 answers
47 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 ...
Everett You's user avatar
  • 2,307
0 votes
0 answers
72 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 ...
Spencer Rugaber's user avatar
4 votes
1 answer
106 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 ...
Spencer Rugaber's user avatar
1 vote
1 answer
41 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 ...
Glenn Welch's user avatar
1 vote
0 answers
89 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. ...
Spencer Rugaber's user avatar
1 vote
1 answer
113 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 ...
Stuart Poss's user avatar
  • 1,943
2 votes
0 answers
47 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 ...
skh's user avatar
  • 21
4 votes
1 answer
90 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 ...
B flat's user avatar
  • 5,842
3 votes
1 answer
93 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 (...
Everett You's user avatar
  • 2,307
1 vote
0 answers
114 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 ...
murray's user avatar
  • 12k
1 vote
1 answer
45 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....
JEM_Mosig's user avatar
  • 3,023
0 votes
1 answer
145 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 ...
Jules Manson's user avatar
  • 2,467
1 vote
1 answer
223 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 ...
Jules Manson's user avatar
  • 2,467
2 votes
2 answers
205 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 ...
Jules Manson's user avatar
  • 2,467
3 votes
1 answer
86 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 ...
userrandrand's user avatar
  • 5,947
2 votes
1 answer
65 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. ...
B flat's user avatar
  • 5,842
3 votes
1 answer
319 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 ...
derdotte's user avatar
10 votes
1 answer
139 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]: $$\...
QuantumDot's user avatar
  • 19.7k
1 vote
1 answer
100 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 ...
Jules Manson's user avatar
  • 2,467
2 votes
2 answers
148 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 ...
murray's user avatar
  • 12k
12 votes
1 answer
229 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 ...
M.R.'s user avatar
  • 31.7k
4 votes
1 answer
170 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 ...
userrandrand's user avatar
  • 5,947
2 votes
1 answer
387 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. ...
Adalbert Hanßen's user avatar
4 votes
1 answer
967 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 ...
Claudio Mora's user avatar
0 votes
0 answers
118 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 ...
Adalbert Hanßen's user avatar
2 votes
0 answers
52 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 ...
kienappel's user avatar
  • 431
1 vote
0 answers
135 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 :)
Marcelo Rozas's user avatar
2 votes
2 answers
186 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 ...
abcd's user avatar
  • 483
4 votes
1 answer
179 views

Magnification messing up styles

I have defined the following Input/Output styles in my stylesheet: ...
qreus's user avatar
  • 343
30 votes
2 answers
1k 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 ...
yarchik's user avatar
  • 19.3k
3 votes
1 answer
111 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" ...
Alexey Popkov's user avatar
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 ...
stary's user avatar
  • 113
2 votes
0 answers
52 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 ...
Peter Burbery's user avatar
7 votes
0 answers
249 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?
M.R.'s user avatar
  • 31.7k
1 vote
0 answers
30 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 ...
B flat's user avatar
  • 5,842
2 votes
0 answers
97 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: ...
M.R.'s user avatar
  • 31.7k
2 votes
3 answers
148 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 ...
thorimur's user avatar
  • 9,030

1
2 3 4 5
8