A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [stylesheet]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
58 views

Docked Cell Slider that controls magnification of Output Cells only

The following code (found here on stack exchange) creates a docked cell which contains a slider that can be used to change the magnification of the entire notebook. ...
1
vote
0answers
58 views

Cell style inheritance and specifying the same style twice [duplicate]

Bug introduced in V11.1 or earlier and persists through V11.3 [CASE:4061571], confirmed Consider the following three examples of a cell: ...
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 ...
4
votes
3answers
154 views

How can I set the style of one Output cell so it doesn't change after re-evaluating its Input cell?

I have created a notebook for my classes which is full of inputs that need to be evaluated by my students. All these inputs produce standard outputs, which are fine as they are. But there is one of ...
3
votes
2answers
115 views

Want a BlockQuote style in my notebooks

I would like to format a cell as a block quote. Similar to here on stackoverflow: This is a blockquote. I think there is no such default style in Mathematica version 11.2. Does anyone have or ...
6
votes
1answer
253 views

Notebook layout best practices [closed]

I realise this is a very broad and subjective topic, but I wanted to know if there are any good sources for best practices on organising the layout of a notebook. I often find my documents hard to ...
1
vote
1answer
81 views

How to export notebook in PDF with long formulas in traditional format?

I am trying to export notebook in PDF but these formulas below always automatically converts to raw input form such as $a/b$ instead of $\frac{a}{b}$. So it doesn't look nice. There are many other ...
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 ...
0
votes
1answer
63 views

Define parameters local to a notebook section

Is there a way to split a Mathematica worksheet, so that I can define parameters that are valid only for a section of the worksheet, like "local parameters" of a Matlab or C++ function? I need a ...
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
1answer
100 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 ...
2
votes
1answer
65 views

How can I find all of the current stylesheet notebooks?

I want to find all of the stylesheet notebooks currently open. Is there a modestly fast way to get at this?
2
votes
2answers
92 views

NumberedItem but with letters

Is there a way to change the headings on NumberedItem style? Instead of it going 1. 2. 3. I am looking for it to go A. B. C. with the auto increment. I can't find a style that has headings as ...
4
votes
1answer
76 views

change confidential stylesheet

I like the built-in ConfidentialReport Stylesheet under Reports but I would like to be able to change the word "CONFIDENTIAL" displayed at top border to something of my choosing. Does anyone know how ...
6
votes
1answer
159 views

Change the default font in all plots and legends, even when exporting to PDF

This is a followup to: How can I change the default font used in ALL plots and legends in Mathematica? Carl Woll gave a great answer there: change the "Graphics" ...
11
votes
2answers
848 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, ...
6
votes
1answer
113 views

Preserving changed Output style

Let's say I have a stylesheet with two slightly different "Output" and "Output2" styles. ...
1
vote
1answer
63 views

How to avoid those small variable-width spaces within Mathematica code?

When writing a Mathematica sentence (with default input style), you get your code written in a fixed-width font (Consolas, for instance, in Windows). However, small blank spaces are added to separate ...
3
votes
1answer
48 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", ...
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 ...
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 ...
16
votes
1answer
453 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 ...
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 ...
3
votes
1answer
121 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 "...
4
votes
1answer
90 views

How to style a cell depending on CellTags?

Is there a way to create a style definition that reformats its background based on it's own tags? The following doesn't work: ...
3
votes
1answer
95 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....
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 ...
2
votes
0answers
50 views

How to override the style definitions in Reference.nb? [duplicate]

Mathematica 11.1.0 introduces a new look to its documentation, which doesn't look good on my Windows machine. After some digging it turns out the styles are largely defined in ...
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, ...
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 ...
15
votes
1answer
293 views

Setting Stylesheet for Package files in Version 11.1

Since many versions the frontend does a pretty good job as an editor for package files (.m or .wl). In versions up to 11.1 code as the following could be used to additionally tweak the appearance and ...
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 ...
2
votes
1answer
86 views

Create notebook with a section extracted from Documentation

I would like to copy a part of a help section into a notebook. The objective is to add comment and save them. My issue is that, when I copy a part of a help section into a notebook, all the links ...
5
votes
1answer
105 views

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 ...
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 ...
7
votes
3answers
138 views

Change style of cell if group collapses?

Other than the GroupOpener triangle, are there anyways to change how a cell (that is the parent cell of a group) looks when its group is collapsed or expanded? Specifically, using the stylesheet ...
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 ...
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?
5
votes
1answer
161 views

Get stylesheet's path

Is there a more idiomatic way to get stylesheet's path from its name? (assuming it is accessible for the FrontEnd) ...
8
votes
1answer
117 views

Increasing notebook magnification pushes output onto a new line

When I increase the notebook magnification beyond a certain level, it pushes the output of a command onto a newline. It does this normally when you enter something like ...
3
votes
1answer
240 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 ...
6
votes
0answers
63 views

Keep stylesheet open after a notebook is closed

I find this behavior annoying: ...
2
votes
1answer
102 views

How to change “Private Style Definitions for <myNotebook>.nb” in a saved private stylesheet?

Now that I found our how to save the private stylesheet opened by "Format->Edit Stylesheet...", by using "File->Save" from that window, I would like to know how to change the "heading" that still says ...
1
vote
0answers
120 views

How to create a custom stylesheet notebook? [duplicate]

I want to be able to define and change all my notebook's styles globally. I therefore want to create a new stylesheet notebook. It seems like something that should be easy to do for simple ...
1
vote
1answer
107 views

TemplateBox based controllers. Not editable InputFieldBox

The goal is to have controllers fully customizable from a stylesheet level. At the moment one can't add MouseAppearace to a ...
41
votes
2answers
925 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 ...
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
1answer
84 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
401 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 ...