The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [stylesheet]

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

Filter by
Sorted by
Tagged with
8
votes
1answer
49 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 ...
14
votes
2answers
1k views

How to get rid of new default Version 11 and 12 Input/Output fonts -> and keep the traditional Courier font

Since version 11 (and 12), the default font for Input/Output cells has changed. As @J.M. has commented below, the font changes are system specific: Default font changed Source Code Pro on Mac ...
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 ...
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
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 ...
4
votes
3answers
178 views

How can I make a stylesheet where inline cells are styled like input cells?

How can I make a stylesheet where inline cells are styled like input cells? By "similar", I mean the same font and syntax highlighting. I have even tried copying all settings from ...
2
votes
2answers
158 views

Embedding a “Details Section Style” within a Section or SubSection

When presenting a technical derivation within a Section of a Mathematica notebook, I often encounter the situation where a lot of "detail" separates equations (x) and (x+1), and I suspect many ...
0
votes
2answers
57 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 ...
5
votes
1answer
186 views

How to edit stylesheet to change automatic numbering of Reference type to numeric, not alphabetic?

I applied the stylesheet JournalArticle to a notebook. When I use the Reference cell style there, it automatically inserts "A.", "B.", etc., to number the cells. What exactly should one do (...
13
votes
2answers
249 views

How can I make a stylesheet that counts subcells?

The example cells in the documentation each have a count of the cells inside their section: ...
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. ...
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
102 views

How to inherit indentation in cell groups?

In my notebook the text cells "stick out" like this: Instead, I'd like the to be left aligned (plus some margin) with the cell they are grouped under... How can I achieve this from the stylesheet? <...
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 ...
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?
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.
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 ...
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 ...
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: ...
9
votes
1answer
1k views

Solarized stylesheet and other goodies. Feedback welcome!

I was inspired by this post so I've made a Solarized stylesheet after mucking around with the text options and asking stupid questions on here. I know you can change the syntax highlighting by running ...
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 ...
4
votes
1answer
74 views

Styling CurrentValues in Stylesheet

I've succeeded in putting the notebook title into page headers (thanks to @Kuba), but I failed at styling the label. ...
2
votes
0answers
50 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
1answer
57 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 ...
12
votes
3answers
338 views

How can I get information about properties of a style?

I'd like to make some features of my notebooks responsive to some properties of styles in the active stylesheet. Is there a way to do this? I can't seem to get anything out of ...
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 ...
8
votes
3answers
538 views

How to use FontWeight options in Mathematica 10.x

Bug introduced in OSX v10.0.0 and persisting in all v10.x.x. Almost fixed in v11.0.0 I‘m using stylesheets to create customized styles for course materials. That includes using fonts like Gill Sans, ...
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 ...
6
votes
1answer
111 views

Preserving changed Output style

Let's say I have a stylesheet with two slightly different "Output" and "Output2" styles. ...