{copy-paste} is about copying text and other elements from one place (often a PDF file) and allowing it to be pasted. Searching for text (in a PDF file) is a process closely related to copying because both use the OCR (optical character recognition) layer in the PDF file.

learn more… | top users | synonyms

0
votes
0answers
42 views

How to protect a PDF generated via LaTeX [duplicate]

I've seen several questions similar to this one, but mine is how I can protect my PDF: Extract contents. Print. And, eventually, customize all the meta tag.
2
votes
1answer
28 views

How can I maintain TeX code layout when pasting into a LyX ERT inset?

When I paste TeX code from a text editor in an ERT inset in a LyX document, the text layout from the text editor is lost, I have to enter the newlines and the tabulations manually in order to regain ...
1
vote
1answer
34 views

mmap/cmap problem: text in equations is not properly copy-pastable

\documentclass[12pt,a4paper]{article} \usepackage[noTeX]{mmap} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \begin{document} $(A\to B)\vdash B$ sample text ...
14
votes
2answers
1k views

Copy from PDF without line breaks at end of each line

When I produce the PDF, open it and copy the paragraph into notepad, there is a forced line break at the end of every line in the PDF. Is there a way to get over this, so that I can copy the paragraph ...
0
votes
0answers
26 views

pasting at the end of a line

This may be a stupid question and may not even be a TeX question. I have started using TeXShop on a Mac, and as I am typing my TeX file if I paste text at the end of a line it automatically ...
2
votes
2answers
37 views

TeXnicCenter: Copying compilation errors [to google]

When a compilation error occurs in TeXnicCenter 2.02, I would like to copy it from the "Build Output" window [to google] So far I'm failing to do so, having to type manually the error description. ...
42
votes
7answers
17k views

Is it possible to produce a PDF with un-copyable text?

Is it possible to produce a PDF with un-copyable text? I mean, when you want to copy text from the PDF, you can't copy it or what you copy is nonsense characters.
4
votes
3answers
195 views

Cut and Paste Non-Math Text from MS Word to a .tex file

I am helping a friend use LaTeX to generate a book of short stories. The stories are received from the authors in MS Word -- unfortunately that is only text editor most of the world knows. There is no ...
1
vote
0answers
138 views

How to use cmap to create an un-copyable pdf with pdftex?

For some reason I want to create a pdf with an un-copyable text. There is a solution which manipulates the font. It's from an older post(see Is it possible to produce a PDF with un-copyable text?): % ...
3
votes
1answer
120 views

How to copy/paste multiple spaces from lstlistings?

This is a continuation of a question that I asked already: How to copy/paste from lstlistings?. The solution presented there does not work if the text within the lstlistings environment contains ...
5
votes
1answer
169 views

How can I preclude copying & pasting of listings?

When I include code snippets in my documents, my lazier readers, i.e. students :), are often tempted to just copy and paste those snippets instead of typing them themselves. However, there are risks ...
35
votes
2answers
679 views

Viewer-independent copyable spaces at the beginning of a line?

I need to include a couple of Python code listings, where the indentation of the lines (using some number of spaces) is significant. I would like for the code listings to be copyable, so the spaces at ...
0
votes
0answers
127 views

Copy/Pastable output in Friggeri's CV

I'm rather new to TeX, but I find the editor a great tool and I'm starting to use it as much as I can - love the clean output you can achieve with it! Speaking about outputs, I have a problem when ...
2
votes
1answer
286 views

Copy to clipboard using Javascript macro

I'm pretty inexperienced with Javascript, especially within LaTeX, so I'd like some pointers, guidance or even an MWE of my proposed "button": I want to create a button to copy data to the system ...
6
votes
2answers
112 views

copy and reuse the content of an environment

is there a way to embed an text in several environments (or structures, \chapter, \section etc.) in one file and "copy"/insert the content of single environment items in other files? i've noticed the ...
0
votes
0answers
98 views

Script to extract and copy from LaTeX files

I have a large LaTeX document, one main and a lot of \input{file} for each chapter. For each of these files I would like to copy them and only keep the Theorems, in other words I'd like to extract and ...
66
votes
6answers
5k views

What are good ways to make pdflatex output copy-and-pasteable?

One frequent aspect of pdflatex output that could be improved is to what extent one can select text output from the generated pdf-file and copy-and-paste it. This is essentially an issue of having the ...
11
votes
2answers
1k views

What can cause generated PDF document whose text are not correctly copyable?

I was wondering why some PDF documents compiled from some LaTeX code does not make its text correctly copyable, i.e. what you can get is nonsense text? For example, this pdf document (I don't have the ...
2
votes
0answers
162 views

Embed all fonts by “exporting as PDF”, but cannot copy text any more?

I am using Fontin as the font style and XeLaTeX my document. In order to ensure every computer can display the font style correctly, I decided to re-export the document as PDF with Mac Preview so that ...
2
votes
1answer
56 views

How to mantain verse indendation and numbering when copy from PDF

I am trying to adapt this answer to produce the same result with a verse environment: I want to be able to copy a poem out of a PDF maintaining its indentation (numbering included) as typeset in the ...
5
votes
0answers
303 views

Copy to clipboard feature in PDF output

I want a clickable copy to clipboard feature in my PDF document. Ideally the macro also allows for graphical elements to be embedded inside them (say, a button that will automatically copy paste ...
1
vote
0answers
50 views

Copy verse out of pdf mantaining margin structure [closed]

I use LaTeX to nicely typeset poems with the package verse. Here a MWE \documentclass{article} \usepackage{verse} \verselinenumbersleft \poemlines{2} \setlength{\vrightskip}{-3em} ...
0
votes
0answers
143 views

How can I make the copied-pasted text from an pdflatex output still readable/compilable by pdflatex?

The issue I compile a latex document which contains accents ("é" for instance), then I copy the text from the pdf generated by pdflatex. Then, I paste this text to my latex file. The resulting file ...
6
votes
1answer
334 views

Create alternative uppercase text automatically with accsupp

This is a follow-up question to Is it possible to provide alternative text to use when copying text from the PDF?. I am essentially trying to redefine textsc/scshape in order to use accsupp ...
4
votes
2answers
122 views

How can I repeat some commands before each paragraph?

I have to use EasyBib to make my bibliography, and I've put it into my LaTeX document by copying/pasting. But I need to have a hanging indent for each item. I've been able to get the effect I want ...
9
votes
2answers
170 views

How to insert searchable value for PDF reader?

In a dictionary a headword can consist of special characters like in this example : Eyja·fjalla··jök|ull. I would like to achieve that the user in PDF reader in PDF file can search for ...
11
votes
1answer
297 views

How to produce unicode copyable alternative text? (with accsupp)

In the following example, I can't manage to make accsupp store the unicode alternative text. The resulting PDF looks as expected but the copyable text is not the correct one. I tried this with ...
4
votes
1answer
88 views

MinionPro and Searchability/Encoding

I'm using pdflatex with the MinionPro package. The PDF looks fine, but apparently some characters (specifically "W" and the "Th" ligature) are put in the PDF in a way that breaks searchability. For ...
11
votes
1answer
248 views

Make a command to mark a text and class them for text analyze

Sorry for my English, I'm French and it's my first post on this forum, but I'm a frequent visitor of this forum, thanks for all ;) My problem is this : I'm working with transcriptions of 35 ...
1
vote
0answers
35 views

obfuscate latex->pdf document [duplicate]

Is there any package that can easily allow you to obfuscate a Latex->PDF generated document such that copy-paste is not longer possible and produces random letters for instance. And if yes, is it ...
9
votes
1answer
55 views

Protect footnotemarks from selection in pdf

Inspired by this question i used accsupp to protect the headers of my pdf from being copied which works nicely so far. I tried to do the same thing for the footnotemarks which hasn't worked so far. ...
62
votes
3answers
2k views

Is there a LaTeX trick to prevent a PDF viewer from copying the line number?

A PDF output is obtained by compiling the following code. \documentclass{article} \usepackage{xcolor} \usepackage{listings} \lstset { language={[LaTeX]TeX}, numbers=left, ...
22
votes
1answer
1k views

How to make text copy in PDF previewers ignore lineno line numbers?

I'm using lineno for a document. I have it configured to put line numbers in the margins of the document. I generate PDF using pdflatex. Here's the problem: when people copy a region of text in a ...
7
votes
2answers
216 views

How to make ligatures searchable and copiable in LuaTeX? [closed]

I have a problem with ligatures in LuaLaTeX when using the font Adobe Minion Pro. The fi ligature displays fine but is neither searchable nor copiable. If I copy it, I get some Asian character. ...
3
votes
3answers
2k views

How to copy/paste from Word to LaTeX avoiding error?

With a few school mates, we have written a report in Word/Google Drive. I would like to format it in LaTeX. However, when I copy paste I see that certain characters are not as usual and trigger ...
7
votes
2answers
663 views

How do I encode foreign characters so that they are searchable in the resultant PDF file?

This may be a PDF problem rather than a LaTeX problem, but as it involves pdfLaTeX output I'm hoping I won't get my wrist slapped too hard. I'm creating a bibliography, and inevitably some of the ...
0
votes
1answer
140 views

Copy/paste an existing (Word *.doc) 'pretty looking' bibliography into LaTeX

How can I add the list of references into LaTeX? I have a formatted references list in Word and would like to use it in LaTeX. I do not need the connections/the reference in the text itself (cite). ...
2
votes
2answers
247 views

Automated copy and paste?

I have found a program that can convert PDF to LaTeX, and so I have .tex files of various math textbooks. I want to make a list of theorems from the book, and so I have been manually copying and ...
9
votes
1answer
279 views

Searching for Euro symbol

I found egreg's answer to the question "eurosym seems to not be working" some time ago and it works perfect if I compile using pdflatex, but if I compile using latex dvips ps2pdf the Euro symbol is ...
3
votes
0answers
89 views

It is possible to lock up pdf? [duplicate]

I'm searching if it is possible to set permissions in LaTeX code to prevent copy/print/make changes of pdf? And if it is possible to encrypt pdf in LaTeX code?
2
votes
0answers
61 views

PDFLaTeX encoding problem [duplicate]

I am generating a pdf file with PDFLaTeX. The content of the pdf looks well at a first glance. However if I try to copy and paste the text to somewhere else the text look like this: ❉✐❡ ▼❡♥❣❡ ❛♥ ...
11
votes
4answers
2k views

Copy-and-paste of mathematical formulas pastes the unformatted, raw TeX

For instance: Copy Paste in a new location Result: x^{2} LyX 2.0.4 (new)/MiKTeX/Windows 7 Ultimate 64 bit
1
vote
0answers
73 views

tilde and scalable fonts

I regularly use a combination of pslatex.sty and pdflatex to produce pdf documents. Some of this are for student use and I have come across a problem with the tilde character. Using default LaTeX ...
5
votes
0answers
178 views

The pdf generated by xetex cannot be “copy-and-paste”

I just began to use xelatex generating my resume. As a matter of fact, I want the generated pdf file to be searchable, and the contents can be "copy-and-paste". But some parts of the pdf can be well ...
6
votes
1answer
268 views

Weird text when copying from PDF

\documentclass[12pt, a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[swedish]{babel} \usepackage{fullpage} \begin{document} åäö \end{document} Making a PDF from this creates a ...
6
votes
2answers
2k views

Copy-pasting leading whitespace and blank lines in listings package (pdf) [duplicate]

I'm trying to use the listings package to typeset some code in a PDF document, in a way that allows me to copy-paste the resulting code. This mostly works well, if ...
3
votes
1answer
4k views

Copy and paste disabled in LyX 2.0

I try to copy and paste in a LyX document I am editing and it says that the command (paste) is disabled. This happens with anything, be it normal text, figures or formulae. I am working on a 64 bit PC ...
37
votes
2answers
1k views

Making “C♯” on my resume searchable

As discussed on How to make the correct hash-symbol in C Sharp, I chose to render the name of the C# language on my resume as C$^\sharp$ I'd like to keep that typographical touch. But I'm afraid ...
0
votes
0answers
77 views

Deny copy in pdf [duplicate]

I want to create a pdf file with non-copyable properties for text. It can encrypt text to some code (such as ASCII), deny copy paragraph. I found some examples on web about this. I must use font 13pt ...
5
votes
2answers
296 views

Creating PDF (resume) suitable for automated text extraction

I have created a nice LaTeX resume. However, having uploaded it to an online job search I am worried the automated extraction does not perform well. Are there any specific packages or other tips to ...