Questions tagged [stylesheet]

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

Filter by
Sorted by
Tagged with
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 ...
0
votes
1answer
67 views

Stylesheet code for limitspositioning option of InlineCell inside a “Text” vs “DisplayFormula” cell

I am attempting to build a stylesheet to emulate the underoverscripts in a textbook. First some background... When I come to place in a "Text" cell where I need to write some math notation I use an "...
3
votes
1answer
64 views

Retaining custom style when creating a palette

I created a style in a private stylesheet called "GreenStyle". Here it is ...
7
votes
0answers
93 views

More documentation on stylesheets?

I am finding the "help" for manipulating stylesheets in Mathematica is limited. I have a found a number of helpful tips in the documentation center and StackExchange, including help with ...
3
votes
1answer
91 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: ...
5
votes
4answers
613 views

Automatically use blue color for comments in input cell

Currently, when I type comments into input cell the comment has the same color or style as the function color/style as shown in figure number 1. I would like to automatically use blue color for my ...
3
votes
3answers
173 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
74 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, "...
0
votes
0answers
25 views

Is it possible to Include predefined text in a custom stylesheet? [duplicate]

I added the following code to my private stylesheet for a notebook. Now when I create a new cell in that notebook with the style "Theorem", all of the options below are pre-populated for that cell. ...
1
vote
0answers
39 views

Include level number in style format definitions?

I would like to prepend a heading style (from Title down to subsubsection) with the level number corresponding to the Alt key shortcut: I lose track of what level I am at. How might this be achieved? ...
2
votes
0answers
91 views

Command to localize stylesheet [duplicate]

Background: I'd like to put together a little utility to automate publishing my notebooks to CDF. Right now this involves three steps: Copy the current stylesheet definitions (by selecting Format->...
8
votes
1answer
83 views

Acessing style information of TimeObject and DateObject DisplayForm

The two functions TimeObject and DateObject (both introduced in version 10) feature neat ...
6
votes
1answer
114 views

Automatic shading of all InitializationCell->True cells in older versions

Mma Version 11 already has this feature: Initalization cells are automatically shaded light grey. This is a very useful feature and I would like to retrofit it to my older version 10.1. On a Mma-11 ...
3
votes
0answers
149 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 ...
4
votes
0answers
75 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 ...
10
votes
1answer
321 views

Automatic generation of cell tags

A similar question has been asked before, with no answers. I would love to have a way to easily reference objects associated with counters. To provide such a capability for things like figures, tables,...
5
votes
1answer
202 views

CDF deployment issues

For a class I am teaching I would like to deploy CDFs on a website (BlackBoard-driven, if it matters), and I am running into two issues at this point: A) I would like to have the CDFs styled ...
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 ...
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 ...
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 ...
4
votes
0answers
351 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: ...
2
votes
2answers
178 views

Output as numbered display formula

I would like to be able to have Mathematica output appear in my "DisplayFormulaNumbered" style, which puts an automatically incremented equation number at the right ...
2
votes
1answer
81 views

Modifying a spacing of cells and background of a notebook

A simple question: How do I reduce this spacing and how to change the background? I think it is in the Options Inspector, but I cannot find the exact location to make the modification. As for the ...
1
vote
0answers
75 views

Questions on applying a private Stylesheet to another Notebook

I have a notebook, let's call it Ideal.nb for short, with some styles defined in it and some were altered from what it inherits from Default.nb. If I want to reuse this stylesheet in my notebook ...
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 ...
5
votes
0answers
63 views

Collapse cell groups when you close parent group?

I have a particularly long notebook. Here's what I'd like to do: to say in my stylesheet that upon closing certain types of cell-groups that all the cell-groups inside should close as well. That way ...
4
votes
1answer
134 views

Image background for cell?

I'd like to make code Cells have a specific background image. I know you can do this for Notebooks, but what about Cells? This simple test fails: ...
0
votes
1answer
102 views

An error comes up while exchanging stylesheets

A notebook contains ...
5
votes
2answers
457 views

Where is the file Default.nb?

I've found a couple of files called Default.nb under my Mathematica installation, but they don't seem to have any effect. At any rate, neither of them was changed when I edited 1 the so-called ...
8
votes
0answers
88 views

How to trace the stylesheet directives responsible for the selected text's appearance?

By way of example, in a typical Mathematica interactive session, one sees text content as shown below: Three different text styles can be seen in this figure: input, output, and the style for 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. ...
6
votes
1answer
194 views

Graphs' options vs JournalArticle stylesheet

Bug introduced in 10.4 and fixed in 11.01 As noticed by Alexei Boulbitch, below one of my answers, there appears to be an unexpected issue with VertexLabels in <...
-1
votes
1answer
115 views

How to graph the max and min values of a sheet?

Hi I just start working in Mathematica version 10.3.1 and I want to graph a sheet of data that I created in Excel (yeah i use Windows). The problem is i have so many data; 200 columns and 50 row of ...
3
votes
0answers
91 views

Reference a notebook's title cell contents in its stylesheet

In my stylesheet I have the following code: ...
1
vote
1answer
64 views

How do I apply Styles from my notebook's Style Sheet, in particular Hyphenation->False?

In my notebook's private style sheet, I set the style for Text to ...
4
votes
2answers
128 views

How to find the background color in Placeholder

I would like to know how to find the background color used in Placeholder[abc]. It is some kind of Yellowish-Pinkish, I think. There is also a ...
3
votes
1answer
119 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 ...
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 ...
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 ...
23
votes
1answer
699 views

What options and settings can be used to create print quality typeset documents with Mathematica?

If I am proficient on dedicated typesetting software (e.g. LaTeX) it makes sense to use that for typesetting but if I am not how can I use Mathematica to create good quality documents. The question ...
1
vote
2answers
113 views

How to set dynamically stylesheet definitions?

To produce good color schemes for styling notebook I was used to generate a grid of controls ...
0
votes
0answers
60 views

Change the default package toolbar? [duplicate]

Everytime a package file (.m or .wl), it opens with the standard package toolbar (a docked cell) ...
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 ...
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": ...
4
votes
1answer
81 views

Current values of the options for StyleData cell

In a style sheet there is this definition: ...
0
votes
0answers
81 views

installing solarised stylesheet! [duplicate]

I have recently stumbled upon your solarised stylesheet for mathematica! I've been having some trouble installing the dark themed version of it! This is my first time using stylesheets and it is all ...
0
votes
0answers
80 views

How can I edit the built-in Stylesheets in Mathematica? [duplicate]

It seems that the default stylesheets used by Mathematica's Front End cannot be edited like other user-created stylesheets. The following, for example, is the stylesheet for the Help documents of ...
1
vote
0answers
110 views

How to create an active menu for Ebook to call cell tag

I have some physics exercises done and I´d like to make an ebook in CDF with the explanations with simulations as well. For these I look for some tips, and wolfram videos has a lot of it with Prof ...
3
votes
0answers
109 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 ...
1
vote
0answers
50 views

Private Style in a StyleSheet with preformatted text

I want to create a new Style in my private StyleSheet. I duplicated the Style "Text" and made some alterations. Now I want that a Cell with this style has an expression already filled in, for example "...