Paul Rubin wrote:
Jannick Asmus <jannick.news <at> gmail.com> writes:
I am extensively using the math mode in LyX and 1000 times I have
already typed "\mathbb" or "\mathcal" for changing the font. Is
there a short cut for that?
Not that I know of.
If not yet how can it be configured?
You can bind an unused key combination to 'math-insert \mathbb' or
'math-insert \mathcal'. (See Help > Shortcuts if you do not know how
to create your own bindings. Do not include the quotes.) If you use
the shortcut inside a mathed insert with nothing selected, it will
create an inset for the font but put the cursor just to the right of
the inset (so you'll need to move back one position to type in the
symbols). If you have something selected, the selected content will
be switched to the font and the cursor will be positioned just to the
right of the last selected character but still inside the font inset.
Usually, when I'm using either of those fonts, it is for a small
number of repeatedly written symbols. Rather than creating a
shortcut for the font (and then forgetting what it was), I create
macros for the specific symbols at the front of the document (so
that, for instance, \sX expands to \mathcal{X}).
Thx for the tips. I will try that out although macros are pretty new to
me.
/Paul
Best wishes,
J.