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 a heavy user of LyX 2.0 and I want to to add useful shortcuts to help me in my work. I tend to copy and paste a lot of text from PDFs or the web or even some old work written in MS Word. A shortcut for pasting unformatted text would be useful in this case. I tried to create a toolbar icon in a similar way to the example below in my custom toolbar.inc.

Item "Bold" "font-bold"

I wonder if there is something similar to the above command to that of the unformatted text.

share|improve this question
See also tex.stackexchange.com/a/22956/3751 for an approach to find out the LFUNs that need to be bound to a keyboard shortcut or toolbar icon. – Daniel Sep 4 '13 at 5:41

The following should work:


There are a number of ways for you to figure out what the command is:

  1. Search through Help > LyX Functions.
  2. Go to View > Messages. With that window open, do what you do graphically to reproduce the command you want (in this case Edit > Paste Special > Unformatted Text).
  3. If 2. doesn't work, go to "settings" in the Messages box and add "User commands". Alternatively, start LyX from the command line with -dbg action.
  4. go to your library folder (find this out in Help > About) and go to ui/stdmenus.inc and search for "Unformatted Text". There you will see the corresponding command.
share|improve this answer
Answer above Works perfectly.Many thanks. Katy. – katy smith Sep 30 '13 at 4:52

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.