4
$\begingroup$

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

$\endgroup$
8
$\begingroup$

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.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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