> I should have pointed out that I was using this to view dvi files. I
> just wanted to be able to paste from something spat out by LaTeX.

It's probably easier to do this from a dvi viewer (or use dvi2tty o.e.),
but that doesn't have much to do with pdf.
 
> Well, like I said, *I* can copy from xpdf, using the middle mouse
> button paste,

Reallyy?? I want to do that too. When I posted my reply, I had a simple
latex text with newcent font, and used pdflatex to create the pdf. I
couldn't get anything to show up.

There are 2 useful programs to debug cut buffers, xcb (x cut buffers)
and xcutsel. The bottom of the trouble is (again) that X11 has tons of
cut buffers (namely CLIPBOARD, PRIMARY, and CUT_BUFFER0 to CUT_BUFFER9,
maybe more, maybe PRIMARY is an alias for something else), and no
standard on how apps should use them. There's also talk about a
"selection" in the xcutsel man page, this may however be one of the
buffers.

Highlighting any text in xpdf allows to middle-click-paste it into any
of xcbs buffers. It can also pasted straight into nedit (a motif app,
so is netscape 4), and any of the old X11 apps like xterm. No way can
it be copied into konsole (which should stand for any KDE app), neither
by middle-click nor by edit->paste. Middle-click and edit->paste are
pasting different buffers, simple test: highlight a word in nedit and
^C it into some buffer, double-click a word in konsole (thus copying it
into some buffer), then middle-click and edit->paste paste different
words into the shell. Obviously, xpdf copies into a third buffer, which
at least konsole can't paste (probably no KDE/gnome app can, KDE and
gnome agreed on using the same buffers).

I can find only these ways to make copy/paste from xpdf to konsole work:

1) Paste straight into nedit, from there into konsole
2) middle-click it into the first field of xcb, click "copy 0 to
PRIMARY" in xcutsel, the middle-click into konsole.
3) click on "copy PRIMARY to 0" in xcutsel, click on "copy 0 to
PRIMARY", then middle-click into konsole. Obviously these 2 operations
in xcutsel are not symmetric.

The detective work on finding out which app uses which buffer(s) and
how is left for the reader. Be aware that the choice of which buffer(s)
are used by an app probably also depend on whether some buffer XYZ is
currently empty or not. Copy/paste in X11 has always been a mess,
nothing much has changed in 10+ years.

Thansk for pointing out that copy/paste from xpdf is indeed possible.

Volker

-- 
Volker Kuhlmann                 is possibly list0570 with the domain in header
http://volker.dnsalias.net/             Please do not CC list postings to me.

Reply via email to