Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [stylesheet]

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

4
votes
1answer
45 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 ...
0
votes
0answers
41 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
34 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
38 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
65 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
48 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
11 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
177 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
48 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
37 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
42 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 ...
3
votes
1answer
69 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 ...
0
votes
0answers
15 views

How is it possible to number sections in a notebook? [duplicate]

How is it possible to number the sections of a notebook ? I create a stylesheet and in the definition of my stylesheet, i would like that my sections be numbered. My question should be very simple but ...
2
votes
1answer
44 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
55 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
61 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
98 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
96 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
146 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
50 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
118 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
47 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 ...
0
votes
0answers
41 views

How to modify spacing in Textbook style

I would like to use the "built in" style Textbook available from the drop down menu: Format > Stylesheet > Book > Textbook However, I do not like the "extra" space that shows up between "Title" ...
3
votes
0answers
49 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
70 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 ...
0
votes
0answers
38 views

Editing Stylesheet.nb [duplicate]

I am trying to change the default text color in my Mathematica notebooks. EDITED: I tried to adapt the method of Need a gentle introduction to stylesheet writing but I failed at steps 4 and 8. So I ...
2
votes
1answer
59 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
57 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
63 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
130 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
398 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, ...
6
votes
1answer
102 views

Preserving changed Output style

Let's say I have a stylesheet with two slightly different "Output" and "Output2" styles. ...
1
vote
1answer
58 views

How to avoid those small variable-width spaces within Mathematica code?

When writing a Mathematica sentence (with default input style), you get your code written in a fixed-width font (Consolas, for instance, in Windows). However, small blank spaces are added to separate ...
3
votes
1answer
42 views

A custom StyleSheet yields only centrally aligned cells

Today, while giving a lecture on preparation of a custom StyleSheet, I noticed an unexpected problem that I did not see a year ago. Namely, I create a new type of a cell, entitled "EmphasisCell", ...
2
votes
0answers
47 views

How to create a banner cell in a custom StyleSheet?

I would like to make a custom StyleSheet based on the JournalArticle for making internal documents for a company I am working at. In this template I would like to have a banner cell containing an ...
0
votes
0answers
34 views

Abnormal height of fractions after installation of the latest OS Windows

After installation of new Windows 10 Enterprise rel 1703, fractions in notebook have become extra high. For years, I use own external Stylesheet. Before release 1703, all Windows' ans Mathematica ...
16
votes
1answer
354 views

Need a gentle introduction to stylesheet writing

I have searched Mathematica.SE for stylesheet and found a lot of useful information on specific issues but no general introduction. There were 746 hits, and it is very time consuming for anyone to ...
8
votes
0answers
325 views

How was this beautiful textbook created? Where's the stylesheet?

UPDATE: The video presentation on how this was carried out by the author is given at the following link: http://www.wolfram.com/broadcast/video.php?c=88&v=185 I am really impressed by the way ...
3
votes
1answer
91 views

Create a list of contents with sections that contain counters

Basically, I need to create a list of sections and subsections which goes in action menu button in order to make some sort of navigation pane for the notebook (similar to the one you can see in "...
3
votes
1answer
80 views

How to style a cell depending on CellTags?

Is there a way to create a style definition that reformats its background based on it's own tags? The following doesn't work: ...
3
votes
1answer
89 views

Is it possible to have versioned stylesheets?

Typically I have several vastly different versions of Mathematica installed on the same machine. Specifically, currently I have installed: Mathematica 5.2 Mathematica 8.0.4 Mathematica 10....
1
vote
0answers
36 views

How to add stylesheets to the style chooser?

I'd like thumbnails of my own stylesheets to show up in the menu option File > New > Styled Notebook: Is this possible?
1
vote
0answers
76 views

Oxford journal referencing style

I've been scanning through Mathematica documentation for a while but has been unable to find anything related to compiling a journal/ report based on Oxford style. Does Mathematica have this option ...
2
votes
0answers
46 views

How to override the style definitions in Reference.nb? [duplicate]

Mathematica 11.1.0 introduces a new look to its documentation, which doesn't look good on my Windows machine. After some digging it turns out the styles are largely defined in ...
2
votes
3answers
189 views

Forcing the front end to update style definitions

tl;dr I need a way to apply style edits in stylesheets, even when I can't use cmd+Shift+E ntl;wr A while back I wrote a suite of stylesheet editing tools to automate operations I did in batch, ...
1
vote
0answers
37 views

Modify slide show printout settings

I am using the "Water" stylesheet for a slide show that has some problems when printing the slides as PDF, etc. When using e.g. ItemNumbered cells the item numbers get cropped at the left edge. Does ...
15
votes
1answer
264 views

Setting Stylesheet for Package files in Version 11.1

Since many versions the frontend does a pretty good job as an editor for package files (.m or .wl). In versions up to 11.1 code as the following could be used to additionally tweak the appearance and ...
11
votes
1answer
195 views

Creating version specific notebook styles: decide based on whether version is at least 11.1

I am trying to clean up the appearance of user-generated documentation in 11.1. I believe in some cases I need to set options based on the front end version: use one value for 10.0-11.0 and a ...