Questions tagged [stylesheet]

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

49 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
0answers
408 views

How was this beautiful textbook created? Where's the stylesheet?

UPDATE: The video presentation on how this was carried out by the author is given at the following link: http://www.wolfram.com/broadcast/video.php?c=88&v=185 I am really impressed by the way ...
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 <...
8
votes
0answers
154 views

What is a full list of cell styling options and sub-options?

I'm trying to customize a style sheet and have hit a few speed bumps and walls. Firstly, I can't see how to do a few specific things, like to set the color of the cell's left side label: Or how to ...
7
votes
0answers
68 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 ...
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 ...
7
votes
1answer
218 views

How to change default font for all existing notebooks at once?

By default, Mathematica 9 and 10 use Gill Sans MT fonts for headings of title/subtitle/section/subsection/subsubsection. Unfortunately, Gill Sans MT fonts have no Cyrillic letters, so that all ...
6
votes
0answers
106 views

Quick way to preview and tweak styles?

I find the old stylesheet UI clunky and hard to use: FrontEndExecute @ FrontEndToken @ "EditStyleDefinitions" There's also the clunky style previewer as well: ...
6
votes
0answers
63 views

Keep stylesheet open after a notebook is closed

I find this behavior annoying: ...
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. ...
5
votes
0answers
75 views

Nested explicit StyleDefinitions not working

Bug introduced in 10.0.2 or earlier and persists through 11.3 [CASE:4061425], confirmed TL;DR; How can I add a style definition to a notebook with existing, arbitrary ...
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
0answers
157 views

Use conda env for ExternalLanguage cell?

I really like the new 'ExternalLanguage' cell in v11.3. Is there a way to tell the cell to use a specific conda environment, either as default or for a specific input cell? Mathematica can find ...
4
votes
0answers
60 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
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 ...
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: ...
4
votes
0answers
95 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
97 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
0answers
18 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
56 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
63 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
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 ...
3
votes
0answers
92 views

Reference a notebook's title cell contents in its stylesheet

In my stylesheet I have the following code: ...
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 ...
3
votes
0answers
65 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
68 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
120 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 ...
2
votes
0answers
37 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 ...
2
votes
0answers
54 views

How to create a banner cell in a custom StyleSheet?

I would like to make a custom StyleSheet based on the JournalArticle for making internal documents for a company I am working at. In this template I would like to have a banner cell containing an ...
2
votes
0answers
69 views

Will custom fonts in my notebook be carried over?

In my notebook, I have Open Sans (a free font) as a text font and Consolas (a paid font) as a code font. Those fonts are coded into the stylesheet of my notebook. My question is: if I send someone a ...
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 ...
1
vote
0answers
49 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 ...
1
vote
0answers
57 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 ...
1
vote
0answers
49 views

How to add stylesheets to the style chooser?

I'd like thumbnails of my own stylesheets to show up in the menu option File > New > Styled Notebook: Is this possible?
1
vote
0answers
80 views

Oxford journal referencing style

I've been scanning through Mathematica documentation for a while but has been unable to find anything related to compiling a journal/ report based on Oxford style. Does Mathematica have this option ...
1
vote
0answers
42 views

Modify slide show printout settings

I am using the "Water" stylesheet for a slide show that has some problems when printing the slides as PDF, etc. When using e.g. ItemNumbered cells the item numbers get cropped at the left edge. Does ...
1
vote
0answers
71 views

Gallery of different style cells?

I'm looking for some nice new cell styles for my stylesheets, are there any galleries of cells from which I can mix and match?
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? ...
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 ...
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 ...
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 "...
1
vote
0answers
184 views

a question about Stylesheet (pastelSolarized)

I am working with the Stylesheet pastelSolarized.nb found here (see also here). I like it a lot. However, compare the ...
1
vote
0answers
55 views

How to disable OperatorSubstitution in a style sheet without losing syntax highlighting for local variables

I'm trying to define a custom style sheet that has "OperatorSubstitution" set to false in order to keep fonts consistent. However, whenever I disable this, I lose ...
1
vote
0answers
116 views

How to preserve “itemize” format when converting mathematica notebook to a latex file?

When I convert a Mathematica notebook containing following cells with "itemize" format to a latex file these cells become raw text format like this: ...
1
vote
0answers
37 views

Is there a way to convert InlineCell to InputForm once and for all?

After asking a question about making InlineCell similar to Input, I realized that by typing Shift+Ctrl+I I really can manually convert every InlineCell to InputForm. So my new question is: Is there a ...
1
vote
0answers
77 views

CDF to give away with a custom StyleSheet

Related to this. I would like to be able to give away CDF documents created with a custom StyleSheet. The important peculiarity is that this document is assumed to be viewed on a machine with no ...
0
votes
0answers
39 views

Formatting of exporting

I am writing notes via Mathematica, but when I want to share it with others, there exists two problems. First, if I export it as pdf, there is no word wrapping of math expression: and input code: ...
0
votes
0answers
19 views

How to make a StyleSheet with a custom-defined Cell type that will be open by default?

I am making a StyleSheet to conveniently use them for homeworks and class works in Mathematics classes. I base it on the JournalArticle StyleSheet. I would like to make it such that by Default opens ...
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 ...
0
votes
0answers
35 views

Abnormal height of fractions after installation of the latest OS Windows

After installation of new Windows 10 Enterprise rel 1703, fractions in notebook have become extra high. For years, I use own external Stylesheet. Before release 1703, all Windows' ans Mathematica ...