Questions tagged [stylesheet]

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

Styles are option sets for notebooks, cells and expressions in Mathematica defining the way expressions are displayed, evaluated and interacted with. Styles are mostly stored in stylesheets. Questions on how to define, apply and modify built-in or custom styles should use this tag.

For more general aspects of formatting text, expressions, equations, or any 2D typesetting use the tag . Questions on how to format graphics might use tags , or .

Useful information on stylesheets:

Example questions:

345 questions
42
votes
2 answers

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 just copy the output. Is there such a style sheet?
Carl Woll
  • 130,679
  • 6
  • 243
  • 355
13
votes
4 answers

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 StyleData. What I'm looking for is something of the…
orome
  • 12,819
  • 3
  • 52
  • 100
11
votes
2 answers

Did Mathematica 9 remove some previously available stylesheets?

Did Mathematica 9 remove some previously available stylesheets? If so, how can I customize a currently available style sheet to be like a previous one or get previous version's stylesheet back? I frequently used the natural beige color stylesheet…
sebastian c.
  • 1,973
  • 2
  • 18
  • 27
8
votes
2 answers

How to input formula embedded in text

I'm creating a styled notebook showing a simple theorem. I can set cell style as text or theorem or code to satisfy my requirement. But when I explain the theorem, I need to embed formula (not necessary for a whole line) into text. How can I do…
zhangwfjh
  • 239
  • 1
  • 6
7
votes
1 answer

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 a way to separately style the pop-up box you get…
void life
  • 352
  • 2
  • 9
6
votes
1 answer

How do I make two styles in a stylesheet inherit the same style

Specifically I want different versions of 'Item1Numbered'. For example one with a frame and another with a background colour. How is that done?
Sofic
  • 673
  • 3
  • 8
6
votes
1 answer

How can I set ScriptLevel to be 0 for inline math mode?

I hate small integral signs and thus I like ScriptLevel to be 0. I have set ScriptLevel to be 0 for Text cells, DisplayFormula, and InlineFormula. When in a text cell I press ctrl+( to create an inline math mode cell (for lack of better term). …
user246
6
votes
1 answer

How can I remove a style from the list of available styles?

I have a stylesheet that has inherited some base definitions from another, but would like to "prune" the list of available styles, by removing or disabling1 some. Is there a way to do this? 1. This is not a question about how to delete I style I've…
orome
  • 12,819
  • 3
  • 52
  • 100
5
votes
1 answer

Can I install the Stylesheet from a Mathematica Journal article?

A discussion from 2012 suggested that it should be possible to download an article from the Mathematica Journal and install its stylesheet locally. I can download the .nb file but can not seem to install the stylesheet. Is there now some type of…
Paul
  • 51
  • 1
5
votes
1 answer

(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: Method 1: Use a CellDingbat to place the label in the…
MLD
  • 619
  • 4
  • 14
5
votes
1 answer

Change color of curently evaluating cell using stylesheets

How can I change the format of the cell, which is currently being evaluated?
Nils
  • 127
  • 3
5
votes
1 answer

Automatic recognition of a custom StyleSheet

For lectures I am giving now I developed a special StyleSheet entitled "LectureNote". I, myself, and my students installed it into the directory $BaseDirectory\SystemFiles\FrontEnd\StyleSheets. After that the LectureNote item appears under the…
Alexei Boulbitch
  • 39,397
  • 2
  • 47
  • 96
4
votes
1 answer

set "input" as default style for newline entry

I altered the notebook stylesheet ArticleJournal to my needs and I'm using it as a private stylesheet. However, every time a new line is encountered; it assumes as text by default since its a journal article and it makes sense. How can I change it…
Rene Duchamp
  • 1,419
  • 10
  • 20
4
votes
1 answer

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 same page. How can I do so by editing the…
user16345
  • 61
  • 4
4
votes
1 answer

How to programmatically open the Stylesheet of the current notebook

How do you programmatically open the stylesheet of the current notebook? I can choose the "Edit Stylesheet..." menu item with my mouse, but I can't find a way to do it programmatically. I was hoping for something…
B flat
  • 5,523
  • 2
  • 14
  • 36
1
2 3