Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I'm new to Mathematica 9, and I assume there must be an easy fix for my problem, but I have not been able to find any yet. Essentially, I want the default color for the text of all of my titles, subtitles, sections, etc., to be colored in black and not have alternate colors (red, gray, etc.). I figured out a short fix (is it really a fix?) by trying to edit a stylesheet, but now when I make an item underneath a title or section the bullet is a different color than black. I can make the text black, but the symbols that indicate an item of some sort is always a color different than black, and the colors for the symbols changed based on how nested the itemizing list is. Basically, I want everything (titles and so forth) to be in black. Text. Bullets. Titles. Etc. How can I fix this and make the changes effective for any new notebooks I create?

UPDATE: The following link seems to address what I wanted:

How to use version 8 default.nb style sheet in place of version 9 default.nb

Of course, this just uses the Mathematica 8 nb as the default (which I think looks much better and professional). For those very new to Mathematica 9, I found the above length to be extremely helpful.

share|improve this question

marked as duplicate by m_goldberg, rm -rf Jan 1 at 3:25

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Possible dupes: (11766), (9942). –  Silvia Dec 27 '13 at 1:45
add comment

2 Answers 2

I have the same problem. I can't suggest you any straightforward solution, personally I prepared a empty draft Mathematica notebook with my favorite stylish (e.g. choosing light yellow color as background color and so on) and for every new program I will use a copy of that notebook.

share|improve this answer
add comment

Style sheets are a large topic. WRI has a bunch of them but each one I've examined seems to have some quirky and objectionable feature. So many of us are left with rolling our own style sheets. I want to discuss how to do various things and also some of the issues that I think are important in style sheet design. (Most of the features I discuss here are in the Presentations Application (which I sell) style sheets but you can fairly easily incorporate most of them yourself.)

The first question to address is: where are you going to put your custom style sheets? The answer is to create a YourNameStuff folder in your $UserBaseDirectore/Applications folder. (You might also put packages containing useful custom routines in the YourNameStuff folder.) Then add the following folder structure:

YourNameStuff/FrontEnd/StyleSheets

and put your style sheets in the StyleSheets folder. They will then automatically appear in the Mathematica/Menu/Format/Stylesheet menu. However, if you have a number of style sheets with disparate names they will end up scattered all over the menu. It is better to have all your style sheets grouped together. Also you might want to zip your entire folder and send it to a colleague and then it will be scattered all over their menu. So a better way is to create the folder structure:

YourNameStuff/FrontEnd/StyleSheets/YourNameStyles

and put the style sheets there. They will then all be grouped together and take up only one slot on the main Format menu.

Next task is then to create a starting point style sheet.

  1. Go to the Wolfram Research/Mathematica/9.0/SystemFiles/FrontEnd/StyleSheets and copy the Default.nb.
  2. Paste it into your stylesheet folder.
  3. Rename it to YourNameStyle.nb
  4. Close and reopen Mathematica. The style sheet should now appear on your Menu/Format/Stylesheet menu.

Bring up your new style sheet. Bring up the OptionInspector, set the Selection to your style notebook, and in Notebook Options/FileOptions set Editable to True and Apply. To save your stylesheet use SaveAs (Save won't work and won't tell you it doesn't work!) Save it under its present name.

You may want to bring up a notebook with various cell types in it so you can observe any changes in the notebook.

There are several methods to edit a style. One method is to select a cell type in the style sheet and use the Mathematica Format menu. However, I generally make changes by editing the underlying expression for the cell type.

For example: Go to "Styles for Title and Section Cells", "Section" and expand and select the first Section group. Then open up the underlying expression by using Shift+Ctrl+E. (And later close it the same way.) Look toward the end of the expression and you will see FontFamily, FontSize and FontColor. You can change these options as you desire. You can't use Black for FontColor. Use RGBColor[0,0,0].

Go to "Styles for Body Text", "Bulleted" and open the Item style in the same way. There you will see a CellDingbat option. Change the RGBColor. Etc. Looking at the WRI underlying expressions will give a good idea of the mechanics.

As for some issues of style:

  1. There should not be too great a gradation of font sizes between Title and Text. WRI usually overdoes it.
  2. All default text should be Black.
  3. To make a notebook that looks something like a paper or book, Text and Output cells should look alike, have the same font size and be unadorned. Input cells might have a slight background color. If an Input cell is closed then the text and output blend smoothly together.
  4. Generally resist the urge to add adornment. It's not very value added and just detracts from the content.
  5. All the Section and the various sub-Sections should have group openers. Then you can collapse the notebook to outline form. Some readers may not know to double click the cell brackets, especially if they don't see them. Other groupings shouldn't have openers. You can add the group openers to a cell style by adding the option ShowGroupOpener->True.

A couple of things I've added in Presentations:

  1. I don't like the little "Choose Input Type" doo-dad at the main new cell entry point. It's easy enough to bring up Wolfram|Alpha anyway and I only very occasionally use it. If you don't want it you can get rid of it by adding CellInsertionPointCell->None to the Notebook Options Settings, Notebook style.
  2. In Presentations itself I've added a command to paste in an "Eval" button into a Text cell. It will evaluate a permanently closed cell just below it, and has a Tooltip explaining its purpose. This way you can include a long boilerplate specification directly in a running discussion, hide it, but make certain it's not overlooked by a reader.
  3. I've added section reset styles at various levels. They allow you to include subsections at any point, close them, and continue on at the previous level.

I hope this will be of some help for creating your own style sheets.

share|improve this answer
    
You are right -- style sheets are a very large topic, and I did not realize just how large until now. I did eventually find a link though (don't know how I missed it) that largely addresses all of my complaints. I'll leave it as an "update" in my original post. –  induktio Dec 29 '13 at 22:03
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.