Questions tagged [stylesheet]

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
112 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 ...
user avatar
2 votes
1 answer
127 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. ...
user avatar
4 votes
1 answer
63 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 ...
user avatar
0 votes
0 answers
58 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 ...
user avatar
1 vote
0 answers
41 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 ...
user avatar
  • 155
1 vote
0 answers
60 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 :)
user avatar
0 votes
0 answers
29 views

Having Difficulty getting heading and data alignments to behave in a custom themed DataSet?

I'm actually quite competent when applying Option Style-s to almost any output so it puzzles me that everything I tried only ...
user avatar
  • 1,837
2 votes
2 answers
79 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 ...
user avatar
  • 483
3 votes
1 answer
144 views

Magnification messing up styles

I have defined the following Input/Output styles in my stylesheet: ...
user avatar
  • 313
0 votes
0 answers
22 views

Where is the documentation for the intended semantics of Format > Style?

After selecting a cell (in a Mma notebook) and choosing Format > Style from the menus, a list of named styles appears. Some have obvious interpretations; others ...
user avatar
  • 12.3k
29 votes
2 answers
543 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 ...
user avatar
  • 16.1k
3 votes
1 answer
80 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" ...
user avatar
1 vote
1 answer
55 views

How to customize a notebook as follows

How to customize a notebook including drop-down cells and 'button >>'
user avatar
  • 503
5 votes
0 answers
89 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 ...
user avatar
  • 113
2 votes
0 answers
40 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 ...
user avatar
7 votes
0 answers
170 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?
user avatar
  • 30.5k
1 vote
0 answers
15 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 ...
user avatar
  • 4,681
2 votes
0 answers
87 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: ...
user avatar
  • 30.5k
2 votes
3 answers
78 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 ...
user avatar
  • 8,208
3 votes
0 answers
39 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 ...
user avatar
  • 4,681
0 votes
0 answers
71 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 ...
user avatar
1 vote
0 answers
37 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?...
user avatar
  • 31
1 vote
1 answer
45 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: ...
user avatar
  • 4,681
2 votes
0 answers
53 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. ...
user avatar
  • 4,681
4 votes
1 answer
98 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 ...
user avatar
1 vote
2 answers
136 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 ...
user avatar
  • 21
0 votes
0 answers
20 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 ...
user avatar
0 votes
0 answers
30 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....
user avatar
10 votes
1 answer
197 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 ...
user avatar
  • 368
4 votes
1 answer
69 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 ...
user avatar
1 vote
1 answer
147 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+...
user avatar
  • 113
2 votes
2 answers
61 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, ...
user avatar
  • 2,160
1 vote
0 answers
50 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 ...
user avatar
  • 11
1 vote
1 answer
49 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 ...
user avatar
  • 11
1 vote
1 answer
187 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 ...
user avatar
  • 119
4 votes
1 answer
106 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 ...
user avatar
  • 2,643
1 vote
0 answers
105 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 ...
user avatar
2 votes
1 answer
233 views

Change Font and Size of Print[] output

I managed to create a definition for the "Print" style, following the instructions here. However, the result does not work in my v.12.1. On the plus side, a "Print" entry exists at the bottom of the ...
user avatar
  • 1,585
1 vote
0 answers
26 views

Style options to make initialization cells appear like regular cells?

I find the discontinuous grey rectangles around those cells to be distracting. Any way I can make them look like regular cells?
user avatar
10 votes
1 answer
975 views

How use the black mode permanently

Now I can use this function:ResourceFunction["DarkMode"][] to use the dark mode, but when I turn on Mathematica again, the black mode will not work. How can I set ...
user avatar
9 votes
0 answers
331 views

The dark side of Mathematica

I know that there are (at least one: Where can I find a dark stylesheet for mathematica?) previous posts about how to change the appearance of Mathematica, but they haven't been much of a help for me. ...
user avatar
  • 753
2 votes
1 answer
59 views

Can Notebooks Inherit Options through Stylesheets?

Motivation: Is there some way to bundle notebook-level options such as InputAliases into a stylesheet, so that notebooks styled with it inherit those options? ...
user avatar
  • 30.5k
6 votes
1 answer
117 views

Color of the evaluating cell brackets

What is the option to use in a stylesheet that controls the color of the brackets for cells in the evaluation queue?
user avatar
  • 3,731
2 votes
0 answers
25 views

How to add "New Stylesheet" to the New File Menu?

What's the easiest way of adding an option for opening a "New Stylesheet" to the File > New submenu.
user avatar
  • 30.5k
3 votes
1 answer
95 views

Stylesheet control of system panel font colors?

I'm trying to make a custom dark mode stylesheet, and I started with Kuba's great DarkPackage. The issue is how to deal with text in panels (you can barely see the white-on-white text, unless you ...
user avatar
  • 30.5k
9 votes
1 answer
229 views

How to share stylesheets (with a preview)?

I have never understood how to easily generate an image preview for a given stylesheet. I also am unclear on how to easily share one. So I'm looking for an implementation or good 3rd party solution ...
user avatar
  • 3,731
1 vote
0 answers
62 views

How do Mathematica processes DynamicBox? [closed]

I've heard that Mathematica uses a session ad hoc to process DynamicBox, but I don't know any detail. I am using DynamicBox in ...
user avatar
7 votes
1 answer
137 views

Quick way to preview and tweak styles?

I find the old stylesheet UI clunky and hard to use: FrontEndExecute @ FrontEndToken @ "EditStyleDefinitions" There's also the clunky style previewer as well: ...
user avatar
  • 30.5k
6 votes
1 answer
158 views

Formula numbering in StyleSheet Book/Monograph

I am writing a text within the document corresponding to the StyleSheet Book/Monograph. I find it strange how the numeration is working in this StyleSheet. Here you can see the screenshot from a part ...
user avatar
1 vote
1 answer
319 views

Is it possible to make a notebook behave like text editor such as Sublime Text with regard to code formatting?

Can Mathematica, natively or otherwise, behave more like a conventional text editing tool such as Sublime Text or Notepad++ when it comes to code formatting and syntax highlighting? I have seen some ...
user avatar
  • 2,301

1
2 3 4 5
7