29 votes

Is there a style sheet that can be used to generate Stack Exchange input?

I've come up with a stylesheet to do this, given below. Some of the issues that I needed to address were: Prevent cell labels from showing up. Indent both input and output cells so that they are code....
Carl Woll's user avatar
  • 130k
28 votes
Accepted

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

If you are skilled in particular code or packages then the switching costs (in time, possibly also money) to adopt a new software/package are usually prohibitive. In the context of typesetting, if you ...
Mike Honeychurch's user avatar
19 votes
Accepted

How to get rid of new default Version 11 and 12 Input/Output fonts -> and keep the traditional Courier font

No need to modify a stylesheet, it is sufficient to evaluate SetOptions[$FrontEnd, StyleHints -> {"CodeFont" -> "Courier"}] or equivalently ...
Alexey Popkov's user avatar
18 votes

Where can I find a dark stylesheet for mathematica?

Wolfram Repository Function (WFR) entries: DraculaTheme DarkMode (DarkMode is hard to ...
Anton Antonov's user avatar
16 votes

How can I change the default font used in ALL plots and legends in Mathematica?

You can control the fonts that are used through a stylesheet. First, note the style definition used by the DefaultBaseStyle ...
Carl Woll's user avatar
  • 130k
13 votes
Accepted

Programming scripts to create and modify stylesheets: problems with contexts

One has to be extremely careful with Cell options that are not released in System` context. It seems that your problem is caused ...
Kuba's user avatar
  • 137k
13 votes

Need a gentle introduction to stylesheet writing

Here are step-by-step instructions for making such a stylesheet. Make a notebook containing placeholder cells for each cell style that will be defined or modfied in new stylesheet. The exact contents ...
m_goldberg's user avatar
  • 108k
13 votes
Accepted

Stylesheets & Wolfram Cloud

They work, but you need to a) write stylesheet notebook expression or b) edit in desktop > upload and then set StyleDefinitions programmatically. Additionally <...
Kuba's user avatar
  • 137k
13 votes

How to decorate cells with widgets like jupyter and collab?

Here's a first attempt: ...
Lukas Lang's user avatar
  • 33.6k
13 votes
Accepted

Turn off keyboard shortcut

Surprisingly, this behavior is not actually a keyboard shortcut as such. It's a style property for Input cells. To disable it, go to the menu ...
Sjoerd Smit's user avatar
  • 22.8k
12 votes

How to share stylesheets (with a preview)?

Preview Notebooks / Extra Paclet Features I decided it was worth it to add some extra features to this thing as it's a good example of what paclets can do for you. First off, I added a little ...
b3m2a1's user avatar
  • 46.8k
11 votes

How to get rid of new default Version 11 and 12 Input/Output fonts -> and keep the traditional Courier font

Following the lead from J.M., and then some comments therein from User18 and QuantumDot, the following is working: In the common StyleSheet, under Notebook options,...
10 votes
Accepted

Acessing style information of TimeObject and DateObject DisplayForm

One can get these information using CurrentValue[{StyleDefinitions, "TimeObject", "TemplateBoxOptionsDisplayFunction"}] and ...
Karsten7's user avatar
  • 27.4k
10 votes

How to change the default Notebook stylesheet

Wolfram has an article discussing precisely this: http://support.wolfram.com/kb/29974
ktm's user avatar
  • 4,232
10 votes
Accepted

Increasing notebook magnification pushes output onto a new line

You can increase the CellMargins for the styles "Input" and "Output" in your style sheet to accommodate the increased size of the cell labels. For example, the ...
Carl Woll's user avatar
  • 130k
10 votes
Accepted

How to modify default options of Dataset

...
kglr's user avatar
  • 392k
10 votes

Writing a technical note in Mathematica

I found many posts here that address different aspects of my question. Some of them go far beyond my needs and understanding. They convince me that even complicated documents can be nicely typeset in ...
yarchik's user avatar
  • 18k
9 votes

Any way to make my equations look better, more Latex like?

You can use MaTeX to get $\LaTeX$ formatting directly: MaTeX["\\frac{1}{N}{\\sum _{i=1}^N \\frac{\\tilde{x}_j^i(k|k)}{\\sqrt{P_{\\text{jj}} (k|k)}}}"] ...
Szabolcs's user avatar
  • 234k
9 votes
Accepted

FormatType with respect to Cell's content

Cell[TextData["string"]] is completely equivalent to Cell["string"]. There's no reason to expect the two to behave differently. ...
John Fultz's user avatar
  • 12.6k
9 votes
Accepted

Automatic generation of cell tags

Here's a solution. The inspiration for much of the code came from Eric Schulz's lecture on "Wisdom Gained from Publishing a CDF ebook" as well as as some code from this post. Below are the ...
B flat's user avatar
  • 5,513
9 votes
Accepted

How do I view the built-in definition of TemplateBox styles in terms of low level boxes?

They live in stylesheets: CurrentValue[{StyleDefinitions, "Binomial"}] ...
Kuba's user avatar
  • 137k
8 votes
Accepted

Setting Stylesheet for Package files in Version 11.1

Simple Answer So I mentioned in a comment that your method will work. The only issue is that there is a style specification with higher precedence that gets applied after your styles. If you look at <...
b3m2a1's user avatar
  • 46.8k
8 votes
Accepted

Printing a notebook without background color to save ink

Printing uses the "Printout" screen environment. So, you can control this behavior automatically with a stylesheet. Something like: ...
Carl Woll's user avatar
  • 130k
7 votes
Accepted

Magnifying the Help documents without magnifying the images therein

If you look at the BoxForm of the rasterized output in the Documentation Center by selecting it and pressing Ctrl+Shift+E, you'll see that GraphicsBox containing ...
Alexey Popkov's user avatar
7 votes

Any manual on cell grouping management?

You've got a voluminous question, so maybe this is contained in it (I did check, but I'm also dumb), but here's what I've found: "TitleGrouping" ...
b3m2a1's user avatar
  • 46.8k
7 votes

Automatically use blue color for comments in input cell

You can do this by modifying AutoStyleOptions programmatically: ...
Alexey Popkov's user avatar
7 votes
Accepted

How to change the default Notebook stylesheet

According to the Documentation, DefaultStyleDefinitions is a global option that specifies the default stylesheet for all new notebooks. The stylesheet must be ...
Alexey Popkov's user avatar
7 votes
Accepted

Creating version specific notebook styles: decide based on whether version is at least 11.1

Update Investigation with LinkSnooper shows that the FrontEnd knows the $VersionNumber: ...
Kuba's user avatar
  • 137k
7 votes
Accepted

Use conda env for ExternalLanguage cell?

You can do this with SetLanguageCellSession. I've just answered a similar question here, see that answer for an explanation of how what you want can be done in version 12.1+:
M.R.'s user avatar
  • 31.4k
7 votes
Accepted

All the group formatting available in Mathematica

The option StyleKeyMapping controls "Tab" and "Backspace" does to the style (AFAIK, it is ...
kglr's user avatar
  • 392k

Only top scored, non community-wiki answers of a minimum length are eligible