Questions tagged [stylesheet]

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

Filter by
Sorted by
Tagged with
4
votes
1answer
151 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 ...
4
votes
1answer
393 views

How to avoid page break appearing between the table title and the table in Mathematica?

I'm wring a thesis which has quite amount of tables. When the thesis gets printed, Mathematica often breaks pages between the table title and table. I would like to keep the title and table in the ...
4
votes
1answer
83 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. ...
4
votes
0answers
72 views

How to control indentation of a cell relative to it's parent?

Is there a stylesheet property that can be set to control the extra level of indentation of a cell in its group (I don't want to specify absolute CellMargins)? Carl suggests in the comments to use ...
4
votes
0answers
90 views

How can I change the style of the Input Assistant?

I went to the Format/Stylesheet menu item and clicked on ReverseColor. I find the reversed colors more pleasant, with a dark background. However, the text in the Input Assistant became unreadable. It ...
4
votes
0answers
372 views

Stylesheet issue in MMA 11

In my custom stylesheet that I use for all my notebooks, I had a definition of the style for graphics that looked like so: ...
4
votes
0answers
120 views

How to format the background color of page footers and headers

I have created a StyleSheet by modifying a copy of Default.nb. The StyleSheet applies a dark grey background at the Notebook level. However, when I export to PDF and exam Print Preview (although PDF ...
4
votes
0answers
104 views

Custom WindowToolbar for my stylesheet

So I've noticed that some stylesheets (for instance Slideshow stylesheets) load a toolbar using the assignment WindowToolbars -> {"ToolbarName"} and I've been ...
3
votes
1answer
267 views

Customizing the numbers used by DisplayFormulaNumbered cells

I was typesetting some formulas and I encountered a formula number marked with a prime. I am using the DisplayFormulaNumbered cell style`. How can I add a cell ...
3
votes
1answer
266 views

Prevent Mathematica from "romanizing" a string of letters?

When I'm authoring in text style (Alt-7), I'll often include inline math. Whenever I enter two or more consecutive letters (e.g., $ax^2$), Mathematica will automatically "romanize" (or "un-italicize") ...
3
votes
1answer
138 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 ...
3
votes
1answer
88 views

Is it possible to store Meta Data in a Notebook?

I am creating multiple notebooks for a textbook that I would like to print with headers on every page. For example, Notebook 1: Chapter 1, Section 1, "Addition" Notebook 2: Chapter 1, Section 2, "...
3
votes
2answers
2k views

Long text inside a grid does not word wrap

If I create a simple grid with Ctrl+, and paste a long piece of text outside the boxes (I'm sure you can find some yourself), then that text does not break at the width of the window in Mathematica. ...
3
votes
1answer
49 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), ...
3
votes
1answer
56 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: ...
3
votes
1answer
571 views

Changing the style of In[]:= and Out[]= and font of input and output cells

Just upgraded from V9 to V11 and the style for the cell labels In[xx]:= and Out[xx]= has changed. In addition, the default font for inputs and outputs have also changed. For continuity reasons, I ...
3
votes
1answer
77 views

Retaining custom style when creating a palette

I created a style in a private stylesheet called "GreenStyle". Here it is ...
3
votes
1answer
281 views

Change cell frame color in stylesheet

I am trying to make a custom stylesheet, but I am not able to get rid of the cell frame color from the base stylesheet. In particular, I have: I have changed the background color of the cell to ...
3
votes
2answers
237 views

Can I change Legend text in a stylesheet?

I prefer a sans serif font in graphics, which I do by creating a style for "Graphics" in a stylesheet. However, this does not affect the style used by legend labels: ...
3
votes
2answers
210 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 "details" separate equations <...
3
votes
1answer
118 views

Magnification messing up styles

I have defined the following Input/Output styles in my stylesheet: ...
3
votes
2answers
68 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. ...
3
votes
1answer
66 views

Prevent Grid from overriding GridBoxItemSize from Stylesheet

I have problems getting the Stylesheet settings for GridBoxOptions/GridBoxItemSize to be applied to ...
3
votes
1answer
160 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 ...
3
votes
1answer
57 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", ...
3
votes
1answer
237 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
265 views

Why do I have to install my stylesheet each time I make changes to it?

I gather that it should be possible to preserve changes to a stylesheet by simply saving it, but this is not the behavior I'm getting with a stylesheet I've "installed" using the "Install Stylesheet......
3
votes
1answer
88 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 ...
3
votes
1answer
142 views

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

I have the following code that successfully adds a style: ...
3
votes
1answer
177 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 ...
3
votes
1answer
104 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....
3
votes
1answer
106 views

Questions about InlineCell vs InlineFormula vs DisplayFormula cells

I'm having trouble with typesetting, and can't get these questions straight in my head. What is the difference between "InlineCell" and ...
3
votes
1answer
110 views

How to make numbered dingbats left aligned in a stylesheet

I use cell dingbats and counters in my stylesheet to auto number certain cells. For example, in my private stylesheet I defined the "Outline1" cell style as: ...
3
votes
1answer
294 views

Author Tools layout for a table of contents

Can someone point me at the place, where the Layout of the Table of Contents is stored in the Author Tools. There should be some style sheet, but I can't find it. Author Tools is still a very useful ...
3
votes
1answer
307 views

How can I find the default PlotTheme, and default plotting colors, for the current StyleSheet?

I like the new Callout facility in Mathematica 11, but it's still quite clunky. One of the issues I have is that I often like to have my labels in the same color ...
3
votes
3answers
204 views

How can I Programmatically Delete Styles from a Notebook's Stylesheet?

I know, you can get rid of no longer used private styles by opening Format>Edit Stylesheet, mark the styles no longer needed and then delete them by Edit>Clear. This was already dealt at Delete a ...
3
votes
1answer
170 views

Generate tags for all types of headlines automatically

Is it possible to create for each headline a tag with the same content (i.e. for all Title, Chapter, Subchapter, Section, Subsection, Subsunsection) automatically? When using text processing tools ...
3
votes
0answers
38 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 ...
3
votes
0answers
26 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 ...
3
votes
0answers
68 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
0answers
71 views

Applying a stylesheet to a notebook using a setterbar - palette hiccup

I built a setterbar that allows me to quickly apply stylesheets to a notebook. Here is the code: ...
3
votes
0answers
158 views

How to center graphics via stylesheet?

I though this should be a simple one, but I have run into issues. I have a style for Graphics, which holds things like plots generated as outputs from commands, as well as images I may have inserted ...
3
votes
0answers
100 views

Reference a notebook's title cell contents in its stylesheet

In my stylesheet I have the following code: ...
3
votes
0answers
118 views

Is it possible to change the fontsize and simultaneously TabSpacing when printing a notebook in the working enviroment

It is a dilemma: In order to easily edit code on the screen, I have to set Magnification to 1.25 and also to set fontsize for Input (using Courier New bold for Input) to 12 pt. Of course, in this ...
3
votes
0answers
72 views

How to save the current configuration of preferences?

When I go Edit -> Preferences -> Appearance there are many colors to set. I want to set them all non-default, but I too want to save the configuration and be able to reload it, when needed. My only ...
3
votes
0answers
291 views

Notebook style which imitates Latex paper [closed]

I have not experimented with Notebook styles, but from what I understand they can be customized to a wide range of styles. Is there a style which looks like a typical paper written in TeX/LaTeX? My ...
3
votes
0answers
77 views

Display of ConfusionMatrixPlot depends on Stylesheet [duplicate]

I´m using Classify and do the testing via ClassifierMeasurements. Now I observed that ConfusionMatrixPlot is not shown correctly when using StyleSheet Report(default). Maybe you can reproduce (example ...
3
votes
0answers
83 views

How can I set up a cell style that is ascending dates? [closed]

Outline style notebooks have cell counters that are simply ascending numbers, but what if I want to apply a function to them and have descending dates like this: So that they auto format and the ...
3
votes
0answers
73 views

Define custom StyleData in webMathematica application

I need to set some options to customize the style of TraditionalForm expressions inside a webMathematica application. I asked to Wolfram's Techcnical Support if StyleSheet can be used from within ...
3
votes
0answers
123 views

Stylesheet modifications mimicking Stack Exchange styles

I find myself frequently highlighting and formatting portions of text cells in a Mathematica notebook. Bold and Italic typesetting is easy to handle but I would like to use ...

1 2 3
4
5
7