Questions tagged [stylesheet]

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

Filter by
Sorted by
Tagged with
7
votes
0answers
66 views

How to distribute styles with packages?

I want to define some named styles with StyleData and StyleDefinitions that are either entirely new or inherit from default ...
3
votes
0answers
16 views

Change the default color of formula embedded in text

We can use Ctrl+( to start a new math cell in a text cell. But is there anyway to make the default color of the formula different? I am making a presentation with ...
4
votes
1answer
37 views

How to remove an installed Stylesheet?

Recently I learned to installed a stylesheet, so I tried it on a random notebook. While the installed stylesheet did show in the drop-down menu, I don't know how to remove it! Since I won't be using ...
2
votes
1answer
26 views

easy modification of existing theme

For the most part, the "Monochrome" theme is useful. However the default inclusion of plot markers in a ListLinePlot was imo a horrible mistake (a design bug), ...
2
votes
1answer
57 views

PlotMarkers problem on some stylesheets

Sample data: ...
5
votes
0answers
49 views

How to force a desired numeration of equations in Book/Monograph StyleSheet?

I am writing a text in the MMA > Format > StyleSheet > Book > Monograph StyleSheet. I have a problem with the automatic numeration of "EquationNumbered" cells. ...
3
votes
1answer
340 views

Can a Mathematica notebook be programmed to work as a LaTeX editor? [duplicate]

A short example code will show that the answer to this question is yes. The example code (which I give in my answer) is for a simple LaTeX editor that is almost a drop-in replacement for TeXworks. ...
10
votes
1answer
185 views

How to emulate LaTeX Theorem environment with a Mathematica Style?

( This has probably been asked before, but I found no Q/A's ) ( Update: Changed Title 28/6 ) Mathematica has the Style 'DisplayFormulaNumbered', I want to find / create something like 'TextNumbered' (...
1
vote
0answers
29 views

Un-assign MenuCommandKey

In my StyleSheet, I would like to assign to the environment Subchapter the Key Alt+2 (via MenuCommandKey. However, this is ...
0
votes
1answer
54 views

Specify position of button

This might go against the spirit of Mathematica, but I would like to create the button, but I do not want that button to be grouped with the code that generated it. In fact, the code that generates it ...
1
vote
0answers
48 views

Where do documentation stylesheets live?

I started using Workbench to write documentation again after some time off. Something must have happened (maybe upgrading to v12?), because now when I double click on a documentation page in ...
2
votes
0answers
36 views

How to undo “do this for all notebooks” when offered to revert or keep updated styling of older styled notebooks?

Check out this old question: How to stop V10 asking to continue with updated styling each time I open a new notebook Cool, right? But what if you checked "do this for all notebooks", naively ...
0
votes
0answers
32 views

How to Reduce Font Size for SearchIndexObject display form?

In the documentation on the wolfram.com web site, SearchIndexObjects display with a font size for the search index object's metatdata (the text between the square braces) that is proportional to the ...
0
votes
2answers
55 views

How does one use option CellGroupingRules?

It seems that Manual Cell Grouping is broken in 12.0.0.0 (at least in Linux). If one pastes a cell, then any cell bracketing gets "chopped" at the paste position. This bug affects a large project of ...
0
votes
1answer
53 views

Automatic indentation of text and equations depending on Style

I have a rule when writing text and equations. Starting from the Section environment, each text/equation that sits inside Section...
3
votes
1answer
42 views

Using an image as a CellDingbat

I'm writing code that generates a report notebook using a defined style. I would like to display an image (a logo) in the title cell along with the title itself. How can this be done? Example: ...
2
votes
1answer
66 views

How do I add a style programmatically without specifying the stylesheet?

I have the following code that successfully adds a style: ...
4
votes
2answers
130 views

How do I add into a text cell a reference to a numbered function?

I have a document with lots of numbered equations in their own cells (which I numbered through Format->Style->DisplayFormulaNumbered). I also have lots of ...
4
votes
1answer
85 views

How to improve on this Stylesheet Manipulation for Message Styling

The answer by @Kuba changing color of error messages did not seem to work for me (MMA 11.0.1 Win 10 64-bit). I couldn't work out why and implemented something else that does work for me, but it seems ...
3
votes
2answers
53 views

Using a stylesheet to create a footer that prints the directory name of the current file

I am trying to use a stylesheet to create a footer that will use the directory name of the current file. For example, consider the following temp.nb file with stored within the CalculusI directory. ...
5
votes
1answer
109 views

Change color of curently evaluating cell using stylesheets

How can I change the format of the cell, which is currently being evaluated?
3
votes
1answer
99 views

Changing Color of error messages

I would like to change (from the stylesheet) the colors of the error messages. For example, trying to evaluate Solve[wrongsyntax = 0, var] gives an obvious error ...
1
vote
1answer
62 views

Changing text color for Input fields

I try changing the color for the Input fields. By going to Format >> Text Color >> Orange the color stays to the default value of blue?? For any other ...
8
votes
1answer
75 views

Stylesheets & Wolfram Cloud

Can one use a custom stylesheet in Wolfram Cloud? I didn't see such an option but maybe there's a non-obvious way.
1
vote
0answers
39 views

Setting default font size [duplicate]

Say I want to create a new stylesheet that would be based on some preexisting stylesheet. The first thing I'd like to do is to set some initial font size globally by: ...
2
votes
1answer
73 views

A stylesheet problem

I've run into a problem with a private stylesheet that I'm struggling to understand and resolve. The issue is that my notebook does not appear to always respect the values for ...
5
votes
1answer
60 views

Styling InputAlias popup box

I'm trying to create a dark theme and I'm using the ReverseColor stylesheet as a base. I have most things changed to my liking and fixed some of the problems with ReverseColor. However, I cannot find ...
1
vote
0answers
54 views

Is there a good strategy or method to produce “cascading” styles?

I want to write a theorem in form of group of cells in a notebook. I want all the cells within the theorem grouping have the same styling such as background color, text font, etc. I would also like ...
2
votes
1answer
54 views

Modify CellLabel of Print cell in stylesheet

I would like to modify the style of Print in a Mathematica notebook. Locally, I can do so by toggling on Show Cell Expression of ...
2
votes
1answer
45 views

Can I prevent changing the background color from changing the cell spacing?

The first image shows what my list of items looks like with no background color. The second shows what setting the background color to light green does to the cell spacing. That is not what I want. ...
3
votes
1answer
103 views

Change large output background color in ReverseColor stylesheet

I like using the ReverseColor stylesheet in Mathematica as I find it easier on the eyes when staring at at notebook for long periods of time. However, the one bugbear I have is that some of the ...
2
votes
1answer
56 views

Automatic space after comma in Code cell style

"Input" cell style automatically inserts a space after each comma, with natural exceptions such as when quotation marks are open. ...
0
votes
0answers
15 views

Code style background color does not follow stylesheet rules [duplicate]

I really like the ReverseColor stylesheet but the code blocks (cmd-9 on a mac) have white text on a lightgray background making them nearly impossible to use. Also the variables have a light color ...
6
votes
1answer
191 views

Printing a notebook without background color to save ink

I sometimes need to print hard copies of my notebooks, but I really like having a background color to make the notebooks easier on my eyes. Is it possible to automatically remove the background color ...
5
votes
1answer
57 views

How to Retain Frame Color when Saving as PDF

Alright, so I am trying to export a homework assignment in full color. I tried simply saving as a pdf, however I lost my frame color. Is there a SetOptions[] command that I am missing to retain this ...
0
votes
0answers
27 views

.:Duplicated:..formatting - text cells and math cells [duplicate]

I'm writing a formulary in Mathematica and I'm experiencing issues while formatting the text. I create a new notebook and a text cell (Alt+9) with text style. Let's ...
3
votes
1answer
51 views

Prevent Grid from overriding GridBoxItemSize from Stylesheet

I have problems getting the Stylesheet settings for GridBoxOptions/GridBoxItemSize to be applied to ...
2
votes
0answers
21 views

How to keep a DisplayFormula cell connected to its Input cell? [duplicate]

I am writing up some notes and enter formulas (integrals, products, PDFs, ...) in Input cells to get the formatted result in the Output cell. When I restyle the output cell as a DisplayFormula the ...
4
votes
1answer
111 views

Create responsive, resizing, centered DockedCell

I was trying to define the same decorative toolbar as it is pictured here in stylesheet. I succeed to do so. Now, I want to define custom decorative toolbar in the Default stylesheet using the same ...
2
votes
1answer
55 views

Docked Cell Slider that controls magnification of Output Cells only

The following code (found here on stack exchange) creates a docked cell which contains a slider that can be used to change the magnification of the entire notebook. ...
1
vote
0answers
57 views

Cell style inheritance and specifying the same style twice [duplicate]

Bug introduced in V11.1 or earlier and persists through V11.3 [CASE:4061571], confirmed Consider the following three examples of a cell: ...
5
votes
0answers
73 views

Nested explicit StyleDefinitions not working

Bug introduced in 10.0.2 or earlier and persists through 11.3 [CASE:4061425], confirmed TL;DR; How can I add a style definition to a notebook with existing, arbitrary ...
4
votes
3answers
138 views

How can I set the style of one Output cell so it doesn't change after re-evaluating its Input cell?

I have created a notebook for my classes which is full of inputs that need to be evaluated by my students. All these inputs produce standard outputs, which are fine as they are. But there is one of ...
3
votes
2answers
113 views

Want a BlockQuote style in my notebooks

I would like to format a cell as a block quote. Similar to here on stackoverflow: This is a blockquote. I think there is no such default style in Mathematica version 11.2. Does anyone have or ...
6
votes
1answer
233 views

Notebook layout best practices [closed]

I realise this is a very broad and subjective topic, but I wanted to know if there are any good sources for best practices on organising the layout of a notebook. I often find my documents hard to ...
1
vote
1answer
69 views

How to export notebook in PDF with long formulas in traditional format?

I am trying to export notebook in PDF but these formulas below always automatically converts to raw input form such as $a/b$ instead of $\frac{a}{b}$. So it doesn't look nice. There are many other ...
4
votes
0answers
151 views

Use conda env for ExternalLanguage cell?

I really like the new 'ExternalLanguage' cell in v11.3. Is there a way to tell the cell to use a specific conda environment, either as default or for a specific input cell? Mathematica can find ...
0
votes
1answer
62 views

Define parameters local to a notebook section

Is there a way to split a Mathematica worksheet, so that I can define parameters that are valid only for a section of the worksheet, like "local parameters" of a Matlab or C++ function? I need a ...
3
votes
0answers
56 views

Merging list valued style options

As shown in Difference between ParentList and Inherited we can use ParentList to nicely merge additional rules. It seems to work nicely when it comes to inheriting ...
3
votes
1answer
91 views

Why does Mathematica ignore my stylesheet for DisplayFormulaNumbered cells?

I made a custom stylesheet, installed it, and applied it to a new blank notebook. Adding a cell and changing it to Text results in the expected behavior. The font and font size change to whatever the ...