For instance:
- Copy
- Paste in a new location
- Result: x^{2}
LyX 2.0.4 (new)/MiKTeX/Windows 7 Ultimate 64 bit
For instance:
LyX 2.0.4 (new)/MiKTeX/Windows 7 Ultimate 64 bit
Since you are copying within LyX math-mode, you are in fact copying the raw TeX. Simply create a new equation using Ctrl-M (or whatever you've bound it to be) and then paste.
Unfortunately, there is no good way around this problem internally without significant changes to the program logic.
Go to Tools > Preferences > Editing > Shortcuts > Cursor, Mouse and Editing...
Now remove the shortcut for paste
which is set as Ctrl+V.
Now go to selection-paste
in the same list, click Modify and set as Ctrl+V.
Your problem will be solved.
paste
to another key, thus I can easily copy plain-TeX.
If you mark inside the math block, you have to paste into another math block. Otherwise you would resolve the math TeX-Code into your normal text.
You may also mark the block and surronding normal text and paste it somewhere else. As of LyX 2.0.4 on my old windows machine in the office, this does not always work. After restarting LyX, it usually works. On linux, I have not encountered this problem.
I am using LyX 2.0.6/MiKTeX on Windows, and have experienced the same problem - a copy and paste of an equation pastes the literal equation text instead of the equation. Even worse, it strips out any labels in the process. For figure floats, I don't get anything at all when I paste. This can make editing and re-arranging text problematic.
However, this appears to be a matter of some bad internal program state (I don't know how to reproduce it yet). Most of the time, copy and paste work as intuitively expected. The best work around is to close and re-open LyX with the same document. This restores the appropriate behavior for me.