Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

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

You can define shortcuts for notebook cell styles in the stylesheet editor, by adding MenuCommandKey->"7", etc. to the style definition. That is, you can define Alt-1 to set/create a cell with one style, Alt-2 a different style, ..., through Alt-9.

From the documentation in Mathematica 8 for MenuCommandKey for styles:

Acceptable values include None and "1" through "9".

So it appears that there are only 9 possible shortcuts. But there are more than 9 styles I commonly use. Is it possible to define additional such shortcuts?

share|improve this question
up vote 5 down vote accepted

You can choose most letters I believe. I have alt+M for MathCaption for example.

If you have v8, what I found most useful was to group all the title-subtitle-..., section-subsection-..., item-subitem-..., itemNumbered..., sectionNumbered..., Input-code-whatever, in a single style and tab or backspace to move to the next-previous style in the hierarchy with the cell option StyleKeyMapping

share|improve this answer
Seems to be undocumented, but it works. – Mechanical snail Nov 15 '12 at 22:05

Yes, you can use the shift key, too. So, in one stylesheet I have, I have defined MenuCommandKey -> "5" for Item and MenuCommandKey -> "%" for SubItem.

share|improve this answer

Your Answer


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.