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've seen some very nicely formatted Mathematica notebooks with sections, explanatory text, etc., but I can't figure out how to do something similar. The documentation is not especially helpful here so I'm asking here.

I see you can group cells together, and then I've tried putting a line at the top to be a section header - say, "Preliminaries." In this cell I've done a few different things to try to make it text - Cell/Convert To/Text Display, Cell/Cell Properties/Uncheck Editable, Format/Style/Section - but still the cell saying Preliminaries is evaluatable. Doing practically anything - even right-clicking the text in that cell - will change its format/style back form Section to Input.

How do I make a true section header, a cell that really contains text and not something that Mathematica can evaluate?

share|improve this question

closed as off-topic by Mike Honeychurch, m_goldberg, bobthechemist, rasher, rm -rf Mar 6 at 0:39

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Mike Honeychurch, m_goldberg, bobthechemist, rasher, rm -rf
If this question can be reworded to fit the rules in the help center, please edit the question.

    
Format > Style > Section or Cmd/Alt + 4. This is described in the documentation here: reference.wolfram.com/mathematica/tutorial/… and also in the linked "Notebook Basics" article. –  rm -rf Mar 5 at 17:46
add comment

2 Answers 2

up vote 0 down vote accepted

Try the following:

  1. Mark the cell that contains your header.
  2. Press "ALT"+"4".

That should do the trick.

(ALT+4 is the short cut for "Format">"Style">"Section".)

share|improve this answer
    
AH. I wasn't marking the whole cell, I had the cursor on the text inside the cell. Thanks! –  Adam Mar 5 at 17:58
add comment

This may be overkill, but you can do a lot with two or three levels of headings, group openers, and a style sheet to create different levels of indentation. See, for example, this answer.

share|improve this answer
add comment

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