Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
add comment

1 Answer 1

The following should work:

clipboard-paste-simple

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
add comment

Your Answer

 
discard

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.