Quantcast
Channel: Active questions tagged copy-paste - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 70

Making LaTeX tabular environment behave 'well' under copy/paste [closed]

$
0
0

Whenever I copy a table created with LaTeX's tabular environment from the output .pdf file and paste it into another application, all the entries go to different lines. Worse, the first column is copied, then the second, and so on.

Is there a way to make the table behave as expected by Joe User? That is, the 'flow' of the table as generated by LaTeX should be line-wise, not column-wise: If I select a line, the line should be subject to copy and paste. Right now, however, selecting a line marks almost the whole table...

Here is some sample code; the image shows what happens if I try to select the line by clicking on the left side of 'd' and releasing the mouse right of 'f'. The expected behaviour is that the line 'def' gets marked and nothing else.

Note that the current (unwanted) marking behaviour is rather universal for all PDF viewers; it is thus really an issue with TeX.

\documentclass{article}\begin{document}\begin{tabular}{rrr}a & b & c\\d & e & f\\g & h & i\end{tabular}\end{document}

marking the middle line

I'm quite sure this is a deep issue, since the building of tables vertically is probably at the very heart of the TeX engine.


Viewing all articles
Browse latest Browse all 70

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>