TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. 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

I am used to typing in Tex (since am a member of math.stackexhange), I decided to use an editor to help my with the typing and based on recommendations I installed LyX (I am very new to this and a search in this forum didn't return a usefull results..).

My question is this : I have words that I constatly type (like \mathbb{R} etc'), can I create some kind of a shortcut so I would only type something like \fR (field R) or any other usefull tricks to not type the same thing over and over again ?

share|improve this question
up vote 9 down vote accepted

One way that might help is to define a math macro for often used symbol combinations. You can define a math macro using Insert > Math > Macro. After you type a name for your macro and the contents of the macro, you can use the new macro throughout your document (as long as it is in math mode). You can read more about math macros in LyX here.

share|improve this answer

Since I use various editors on different platforms I got used to work with shortcut managers

  • Autohotkey on Windows
  • Autokey on Linux
  • Textexpander on Mac OS X

All these tools allow you to define a shortcut like e.g. 's#' that expands to \section{} with the cursor between the curly braces. Since I started using them my TeXing speed greatly increased.

share|improve this answer

You can define a keyboard shortcut to insert the desired.

Go to Tools > Preferences > Editing > Keyboard Shortcuts, then Add New. In the command field, type math-insert \mathbb{R} and assign that a key combination.

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.