Rich Shepard wrote:
I want to copy a table -- as a table -- from one document to
another, but
my attempts so far have failed.
I've opened the table in the source document, highlighted the entire
table,
used ctrl-c to copy it to the clipboard, switched focus to the
destination
document, and used the Edit->External paste feature. I get a solid
paragraph,
not a table, with this approach. I've also tried to copy the grey "table"
from the source to the destination, but get the same non-table results
with
this.
I've also searched on the TeXnik.de and wiki pages without seeing an
answer.
Is there a way to copy the table from one document to another?
Copying tables, and anything else, is trivial as long as we're talking
about copying from one lyx document to another. The recipe is simple:
Open both lyx documents - in the _same_ lyx session. No, it won't work
if you start up several instances of lyx. So open one document, and
then open the other one using the file->open menu. You won't be able
to see both documents at the same time, but you can switch from one
to the other using the "document" menu in lyx 1.3.x, or the "view" menu
in lyx-1.4cvs.
To copy a table float, mark the entire float using the mouse (or
keyboard) and press ctrl+c for copy. Then, switch to the other document,
position the cursor where you want the table float to go, and press
ctrl+v for paste. (You may also use the edit->copy and edit->paste
menus if you prefer, but that's slower.)
Absolutely anything in lyx can be copied this way, tables, math,
graphichs, lists, whole chapters or the entire document if need be.
Lyx-1.3 has one little quirk that is fixed in lyx-1.4cvs:
If your selection start in some environment that isn't
"standard" (i.e. a heading or a list) then you really have to
start the selection on the end of the preceding line, or lyx will
revert the textstyle to standard when you paste it. No big deal,
but it sometimes leads to a section heading being pasted as
standard text. Easy enough to fix, but also easy enough to
avoid.
Helge Hafting