Questions tagged [stylesheet]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
321 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
170 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
25 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
43 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
44 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 ...
1
vote
0answers
31 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
28 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
50 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
49 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
40 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
61 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
126 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
79 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
107 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
98 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
56 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
66 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
38 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
67 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
58 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
52 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
52 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
88 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
54 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
13 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
190 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
53 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
40 views

Editing the ReversedColor stylesheet

I want to use the ReversedColor stylesheet in Mathematica, but there are several things that annoy me. Below the menu bar there is a wide space where it says WOLFRAM MATHEMATICA | STUDENT EDITION ...
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
47 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
104 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
52 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
56 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
69 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
123 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
111 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
211 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
68 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
141 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
55 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
53 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
83 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 ...
2
votes
1answer
64 views

How can I find all of the current stylesheet notebooks?

I want to find all of the stylesheet notebooks currently open. Is there a modestly fast way to get at this?
2
votes
2answers
74 views

NumberedItem but with letters

Is there a way to change the headings on NumberedItem style? Instead of it going 1. 2. 3. I am looking for it to go A. B. C. with the auto increment. I can't find a style that has headings as ...
4
votes
1answer
68 views

change confidential stylesheet

I like the built-in ConfidentialReport Stylesheet under Reports but I would like to be able to change the word "CONFIDENTIAL" displayed at top border to something of my choosing. Does anyone know how ...
5
votes
1answer
144 views

Change the default font in all plots and legends, even when exporting to PDF

This is a followup to: How can I change the default font used in ALL plots and legends in Mathematica? Carl Woll gave a great answer there: change the "Graphics" ...
9
votes
2answers
632 views

How can I change the default font used in ALL plots and legends in Mathematica?

Forgive me, but I cannot for the life of me figure out how to do this no matter how much I research. I really want to change the default font for all graphics, such as ArrayPlot, ContourPlot, ...