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

learn more… | top users | synonyms

2
votes
0answers
29 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 ...
0
votes
0answers
20 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 ...
0
votes
1answer
24 views

Why can't I change the Magnification in Printout Style in Default.nb

This happens with Mathermatica 10.3.1.0: When working with a notebook, I can choose between different working environments. However, they inherit their settings from Default.nb situated at ...
1
vote
0answers
37 views

Shortcuts for Indentation in Text Cells?

Marking a cell's bracket and then using Alt-7 I can make it a Text cell using the formatting set forth in Default.nb or in a modification of it stored with the notebook itself (so called "private ...
3
votes
1answer
76 views

Author Tools layout for a table of contents

Can someone point me at the place, where the Layout of the Table of Contents is stored in the Author Tools. There should be some style sheet, but I can't find it. Author Tools is still a very useful ...
2
votes
1answer
101 views

programmatically styling notebook

A notebook's background can be changed simply by SetOptions[EvaluationNotebook[], Background -> GrayLevel[.9]]; What is the command to set, let's say, the ...
3
votes
1answer
86 views

How to have an Input cell that doubles as an Output

Motivation / examples: on a spreadsheet environment, each cell doubles as input and output. If we click on it, it shows the input; if we hit Enter, it shows the output; on this answer, I tried to ...
5
votes
0answers
61 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 ...
7
votes
1answer
103 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 ...
0
votes
0answers
21 views

Manually modifying stylesheet code without toggling out of expression form

When modifying underlying expressions I use Shift+Cmd+e to toggle out of display form and into expression form. I noticed that this functionality is lacking a little in a stylesheet notebook. Once ...
2
votes
1answer
43 views

Adding headers and/or footers to a stylesheet

I would like to push a common header(file name and page number) across multiple notebooks using one Stylesheet. I know I can use the header/footer dialog on each notebook individually but this is ...
0
votes
0answers
26 views

Serious Startup Error, “The file outline cache was ignored.”

I was trying to change my default fontsize. I was reading Changing the default font for StandardForm I/O from 'New Courier' to 'Consolas'? and the instructions for affecting all future notebooks ...
12
votes
2answers
238 views

What is the difference between Inherited and (Inherited + 0)

Let's create a stylesheet: ...
1
vote
0answers
79 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 ...
3
votes
0answers
40 views

How to inherit indentation in cell groups?

In my notebook the text cells "stick out" like this: Instead, I'd like the to be left aligned (plus some margin) with the cell they are grouped under... How can I achieve this from the stylesheet? ...
8
votes
0answers
68 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
1answer
110 views

How to add a caption below a cell?

How can I change my stylesheet definition for a cell to optionally add a caption below? For example, I would like to add a caption to my "Program" cells shown here: like this (but with the option ...
1
vote
1answer
45 views

basic `StyleDefinitions` question: setting cell `Backgroun` when printing

I am having trouble getting good StyleData guidance from the Mma docs. Am I overlooking the good stuff? Anyway, suppose I run the following in a notebook: ...
6
votes
2answers
145 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) ...
4
votes
1answer
146 views

Typesetting in Mathematica

Are there typesetting environments/boxes or something similar in Mathematica? I want to write some documentation for a notebook using text cells and I would like to have a brief description of my ...
3
votes
2answers
59 views

Syntax highlighting in text cells

I want to write some documentation for a notebook using text cells. Now, I can select parts of the text within such a text cell and set its style to "Input". This does change its font, but there is no ...
2
votes
1answer
36 views

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 ...
1
vote
0answers
30 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 ...
0
votes
0answers
22 views

Embedding Style Sheet in Mathematica Notebook [duplicate]

I have a custom stylesheet for mathematica, stored in User Base directory. However, if and when I send the notebook file to some one , it says that stylesheet is missing. How to embed the stylesheet ...
7
votes
1answer
125 views

Hidden parent stylesheet?

Please follow those steps: ...
8
votes
1answer
111 views

Reference to multiple stylesheets

I need to set StyleDefinitions for a notebook in such manner so I can provide references to multiple stylesheets: ...
2
votes
0answers
41 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 ...
1
vote
0answers
111 views

Notebook style which imitates Latex paper [closed]

I have not experimented with Notebook styles, but from what I understand they can be customized to a wide range of styles. Is there a style which looks like a typical paper written in TeX/LaTeX? My ...
2
votes
1answer
94 views

Change cell frame color in stylesheet

I am trying to make a custom stylesheet, but I am not able to get rid of the cell frame color from the base stylesheet. In particular, I have: I have changed the background color of the cell to ...
2
votes
0answers
48 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 ...
0
votes
1answer
79 views

create subsubsubsection in Standard Report Style

I am working with Standard Report Style. When I press for instance Alt+5 a Subsection is generated. When I press Alt+6 Subsubsection is generated. What I want is a creation of something like Alt+foo, ...
4
votes
1answer
82 views

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 ...
1
vote
1answer
51 views

How to change size of whole input?

I would like to change size of font of input/output. I see that I can just click on options of single input and set size, but I don't want to do this separately for every line. Could someone help me ...
0
votes
0answers
52 views

Some unexpected behaviour with StyleKeyMapping

Start with a fresh front end & kernel. The expected behaviour with an Input cell should be like this: Input 1and delete ...
5
votes
1answer
62 views

How to set different default cell per section?

In various sections in my notebook I'd like the default cell type to be different, if possible, how can I specify this?
2
votes
1answer
99 views

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 ...
4
votes
1answer
81 views

How to make a style for paragraphs with hanging indents

I am making slides with text. I created a style template, but I cannot see how to make a style for a hanging paragraph. Is there a way to do this?
2
votes
0answers
45 views

Display of ConfusionMatrixPlot depends on Stylesheet

I´m using Classify and do the testing via ClassifierMeasurements. Now I observed that ConfusionMatrixPlot is not shown correctly when using StyleSheet Report(default). Maybe you can reproduce (example ...
0
votes
0answers
21 views

How to edit shortcut of setting the style of a cell? [duplicate]

By default, we can use "Alt" + "1-9" to set the style of a cell to be "Title", "Chapter", etc. How can I edit those shortcuts so that "Alt+1" is mapped to "DisplayFormulaNumbered"?
0
votes
1answer
89 views

Create new style where elements are arranged in a grid

I'd like to create a new style where elements are arranged in a grid. I'm taking notes and I have some definitions. I'd like to have every definition formatted like this: ...
0
votes
0answers
30 views

Update Type 1 fonts with Open Type fonts

Hi I have very old notebook files which was composed 2009, where few fonts was used with Type 1 but now I want to replace with open type format. Also I have stylesheet, do I need to do any changes in ...
2
votes
2answers
536 views

How to change the font color and size of tick labels by default

I've read Mike Honeychurch's answer here, and while it tells me how to change the font size on all of my plots, that size change affects (I think) all text on the plot. I would like to be able to make ...
5
votes
2answers
249 views

How to use FontWeight options in Mathematica 10.x

Bug introduced in OSX v10.0.0 and persisting through v10.3.0 I‘m using stylesheets to create customized styles for course materials. That includes using fonts like Gill Sans, and Helvetica (Neue). ...
3
votes
0answers
69 views

How can I set up a cell style that is ascending dates? [closed]

Outline style notebooks have cell counters that are simply ascending numbers, but what if I want to apply a function to them and have descending dates like this: So that they auto format and the ...
11
votes
1answer
135 views

How can I make a stylesheet that counts subcells?

The example cells in the documentation each have count of the cells inside their section: ...
0
votes
1answer
64 views

How make first automatic numbering cell for a style number 1 not 0?

I have a cell style "Figure" for a notebook, defined as: Cell[StyleData["Figure", StyleDefinitions -> StyleData["Text"]], MenuSortingValue->10000] In ...
2
votes
2answers
108 views

Why MMA cannot apply the correct style of unit?

When I select Style-> Style-> DisplayFormulaNumbered Then I type some formula show as below: I found that the font of formula is not Times New Roman,so I select the unit ,then select ...
2
votes
1answer
68 views

When is are these additional docked cell styles used?

The the style "DockedCell" is automatically used for Docked Cells even when no Cell style is specified. In the section of ...
5
votes
4answers
120 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 "Output". The reason is that I'm producing some documents with many images and, for ...
3
votes
1answer
140 views

ConversionRules and style inheritance

Take the LaTeX-Article stylesheet stylesheet = FileNameJoin[{"Article","LaTeX-Article.nb"}]; Compare these outputs ...