Questions tagged [stylesheet]

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

Filter by
Sorted by
Tagged with
42
votes
2answers
4k views

Is it possible to change the colors of the highlighted code in the Mathematica frontend?

With Format -> Edit Stylesheet... it is possible to adjust text-properties, text-colors, formatting of equations, etc of a notebook and to use this style-definitions again by installing it as ...
6
votes
1answer
465 views

How to customize the package editor interface?

Is there a way to get rid of the unused space on the left of the package editor? What is it's purpose if I configured Mathematica to not show In and ...
13
votes
1answer
442 views

Order/Dependency of Styles in a Stylesheet

How exactly is a custom stylesheet processed? Which style depends on (inherits from) which other style. Consider e.g. setting a font. I would expect that setting the font for ...
127
votes
5answers
14k views

Resources for beautiful Mathematica Stylesheets

When the Wolfram Demonstrations were introduced and the Documentation-Center was redesigned, I remember it was the first time I thought someone had put some effort into creating a beautiful stylesheet....
23
votes
1answer
680 views

How can I easily eliminate the dependency of a stylesheet on a non-built-in stylesheet?

As per discussion here: User A has a notebook that uses custom definitions from styles.nb. Now user A passes the notebook to user B. The styles do not show up for B because B does not have styles.nb. ...
11
votes
1answer
304 views

Programming scripts to create and modify stylesheets: problems with contexts

I am trying to emulate the shift and shift+tab feature in the Outline.nb stylesheet that comes with Mathematica. I added the following code to a private ...
9
votes
2answers
3k views

How do I set the fonts for Input and Output in my stylesheet?

I'd like to change the font that Mathematica uses for output by setting the font of the corresponding style in my stylesheet, but simply overriding the default ...
17
votes
3answers
4k views

How to change the style definitions for Default.nb?

I have looked over other questions related to style definitions, and looked through the Mathematica 8 documentation, but I do not know why I am having so much difficulty setting the default font in my ...
21
votes
2answers
3k views

Some tutorials on formatting notebook for exporting to pdf

I love the way that Mathematica allows me to type in of formulas. It is really easy to type complicated expressions with shortcuts on the keyboard. It would be great if I could use Mathematica ...
16
votes
2answers
1k views

How to replace the style of the inline cell in a StyleSheet

I would like to change a StyleSheet in such a way that any text that is typed into the inline cell (the one created by Ctrl+9) is shown in a different font (e.g. the font of my choice). At present I ...
12
votes
3answers
2k views

Quickly editing the stylesheet and saving it

I have a private stylesheet I'm using. I edit it by going to the menu Edit->Edit Stylesheet and then clicking on the private stylesheet cell. I can modify whatever I want but it never gets saved. The ...
20
votes
2answers
4k views

Any way to make my equations look better, more Latex like?

I find that the equations I write in Mathematica are not always publication quality. Here is a typical example: If I copy as Latex, then I get the following code: ...
7
votes
2answers
1k views

How to change the default Notebook stylesheet

For everyday work I use a custom notebook template. Its name DefaultModified.nb However, in order to open it I need to first open a built-in default notebook, go to the Menu/Format/StyleSheet and ...
23
votes
4answers
973 views

Defining functions in stylesheets

Is there a way to define functions in a stylesheet? So far I have managed to write my stylesheets without the need to use my own custom functions or definitions. For instance, maybe I have some color ...
23
votes
3answers
7k views

Where can I find a dark stylesheet for mathematica?

The default white is very tiring for the eye after some hours.
9
votes
1answer
592 views

Changing mouse appearance at notebook level

Ideally, I'd like to change the mouse pointer appearance(s) at notebook level, from a styleseet. However, I'd be satisfied only by changing its color. This is the main issue keepeing me away from ...
6
votes
2answers
293 views

Default styles for Exporting to PDF, EPS and SVG

By default for on-screen display, Rasterize and Exporting to raster formats FrontEnd uses styles defined on the Notebook level ...
10
votes
3answers
594 views

Inconsistent display of TraditionalForm in version 9

After installing version 9, the default style sheet uses Arial font in text and formula cells. So far, so bad. At least one would hope this is done consistently. But now I see this: You can see ...
11
votes
2answers
472 views

What is the simplest way to set the toolbar of a notebook to an image?

For custom stylesheets, it's nice to have a graphic banner in the Docked Cell. According to the doc page tutorial/IntroductionToToolbars, this is how you do it, but it seem a bit overkill: ...
18
votes
1answer
323 views

Any manual on cell grouping management?

Recently I come back to the problem of cell grouping and performed extensive search on this site and on MathGroup archive for information on how to use the possible values of the ...
10
votes
1answer
317 views

Inheriting Stylesheets when using CreateDocument

I build a lot of presentations and custom notebooks with very different stylesheets, and use Button and CreateDocument quite ...
7
votes
1answer
989 views

How to modify font for all text fields?

I know that one can modify the StandardForm style so that all input and output codes (and maybe other things too) follow that style. This makes it tricky to make input code different from output code (...
11
votes
1answer
278 views

Is there a way to base one style on another?

I'm setting up a stylesheet and and finding the process of defining related styles tedious and error prone. In particular, I have several related styles that need to have synchronized settings (e.g., ...
41
votes
2answers
923 views

Is there a style sheet that can be used to generate Stack Exchange input?

It would be convenient if there were a style sheet that automatically indented input cells, and automatically commented output cells, so that one could generate a stack exchange response in WL, and ...
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 ...
13
votes
2answers
252 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: ...
15
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 ...
11
votes
1answer
241 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 ...
4
votes
1answer
134 views

Styles that prepend text to cell contents

This question is about creating a style for things like figure/table captions, or perhaps special boxes labeled with titles like "Note:", "Proof:", etc. The idea is that when I create a new cell in ...
11
votes
2answers
471 views

Show StyleSheets and Palettes from custom directory in Mathematica's Menu

I'm working on a package that needs to be installed into an arbitrary, "non standard" path (i.e., not $BaseDirectory or ...
8
votes
4answers
372 views

How to set the output be generated in a cell different from “Output”

I would have some functions, for instance Plot, to generate their output using a different Cell's style rather than ...
7
votes
1answer
216 views

Hidden parent stylesheet?

Please follow those steps: ...
5
votes
1answer
915 views

(Centered) Automatic Numbering of Figures

I want to create a figure caption cell style that prefixes a centred figure caption with Figure X, where X is an incremental number I have seen two methods for automatically numbering figures: ...
7
votes
2answers
349 views

Automatically use InputOnly style

Some of the built-in Stylesheets (e.g. PastelColor) connect together input and output cells by setting the CellFrame and ...
5
votes
1answer
884 views

How to use version 8 default.nb style sheet in place of version 9 default.nb

I do not like the new default.nb style sheet in version 9, and would like to use the older one that was used in version 8 for any new notebook and for any notebook created since I started using V9. I ...
5
votes
1answer
136 views

Updating styles which are based on styles changed in private stylesheet

Intro Styles can inherit from other styles: base one style on another? And for example WolframAlphaLong is inheriting from ...
5
votes
1answer
185 views

How to set Initialization Cell style to conform with custom stylesheet?

In version 11, initialization cells got a dedicated style which has a light gray background. How can I ensure that the background of this type of cell conforms to the actual stylesheet? Compare ...
16
votes
1answer
452 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 ...
16
votes
1answer
959 views

How do I remove Wolfram Branding in a CDF?

I have a Mathematica Enterprise License, which lets me export Pro-feature CDFs. One of the benefits is supposed to be removal of branding and full customization of UI. Does anyone know how to get that ...
12
votes
3answers
343 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 ...
12
votes
2answers
362 views

How do I inherit a specific cell option from another style (without copy paste)?

How can I define a style with FontSize from Section and CellFrame from Program?
9
votes
1answer
265 views

How to unlock a stylesheet which is not needed anymore by the FrontEnd

Bug introduced in 10.3.0 or earlier and fixed in 11.1 Bug reproduced on Win but not on Mac Reply from WRI Support: [...] This indeed seems to be an issue with the Frontend on Windows and I have ...
4
votes
3answers
181 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 ...
11
votes
2answers
843 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, ...
7
votes
2answers
353 views

How to group cell type A under cell type B?

My notebook's groupings for "Subsection" and "SubitemNumbered" are broken: And by broken, I mean I wanted it to automatically group like this which I did manually (with lots of control+shift+g) Here'...
5
votes
2answers
897 views

DisplayFormula not working as expected

How do I use the styles "DisplayFormula" and "DisplayFormulaNumbered"? Why is there no margin (or empty space) around the ...
2
votes
3answers
222 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, ...
11
votes
1answer
458 views

How can I change the style of every newly opened notebook?

I'd like to make Mathematica open a new notebook using the Natural Color template (under the Creative category) by default. Is that possible? If so, how?
11
votes
2answers
243 views

Magnifying the Help documents without magnifying the images therein

In Mathematica's Option Inspector I set the notebook magnification factor to be larger than 1, for example 1.12 ("Notebook Options"->"Display Options"). Accordingly contents of the Documentation ...
7
votes
1answer
155 views

FormatType with respect to Cell's content

Minimal example: Let's establish a notebook's stylesheet with additional TestStyle which has a FormatType->"CellExpression": ...