7
$\begingroup$

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?

asked Nov 6, 2012 at 1:08
$\endgroup$

2 Answers 2

6
$\begingroup$

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

answered Nov 6, 2012 at 3:38
$\endgroup$
1
  • $\begingroup$ Seems to be undocumented, but it works. $\endgroup$ Commented Nov 15, 2012 at 22:05
8
$\begingroup$

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.

answered Nov 6, 2012 at 2:58
$\endgroup$
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.