Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Here is the cell style data for my custom version of Section:

Cell[StyleData["Section"],
 MenuCommandKey->"1",
 MenuSortingValue->10000,
 CellFrame->{{0, 0}, {0, 0}},
 CellMargins->{{10, Inherited}, {8, Inherited}},
 CellFrameMargins->1]

But when I type command+1 I still get the old red Title cell.

enter image description here

share|improve this question
up vote 7 down vote accepted

You'll also need to make a version of the Title cell which has the MenuCommandKey option unset. I.e.,

Cell[StyleData["Title"], MenuCommandKey->None]

The FE doesn't have a standard way of resolving styles with overlapping MenuCommandKey options, so if you want it to work properly, it's important to make sure that you prevent overlaps.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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