{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

7
votes
1answer
4k views

Problem copying text from pdf - spaces being stripped

I have the following minimal working example: \documentclass{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \begin{document} é canção \end{document} I need to use the utf8 argument ...
0
votes
1answer
54 views

Displaying theorems from external document

I created another thread asking two questions. I can't edit that thread, accept the answer, or respond to thank the person. Sorry about this. I want to be able to display theorems from another .tex ...
1
vote
0answers
41 views

Copying Arabic text from ConTeXt PDF

When copying and pasting an Arabic text from a PDF file generated by context, the characters are not correctly joint. Consider the following MWE: \definefontfamily [font] [serif] [Amiri] ...
54
votes
8answers
32k 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.
3
votes
0answers
65 views

Using Microsoft word fonts in latex

I have a document written in Microsoft Word with Greek, Coptic and Hebrew in addition to Arabic and Hieroglyph languages. For Greek I used the font Greek, for Coptic I used the fonts CS Avva Shenouda ...
5
votes
2answers
110 views

Greek text copy & paste fails

I am trying to copy and paste some text from a greek pdf file that I created in latex using texstudio, but the pasted text appears messed up. Here is an example \documentclass[]{article} % ...
2
votes
2answers
130 views

Unwanted space around punctuation in copied & pasted listing

When I compile the .tex file below into .pdf using rubber -d mwe.tex and try to copy & paste the contents of the listing, I get spaces around . characters that were not present in the original ...
6
votes
1answer
94 views

No matches when searching for “latex” in a PDF when \LaTeX was used

If I use pdflatex to produce a PDF from the following: \documentclass{article} \begin{document} \LaTeX \end{document} then searching for the string latex in Okular yields zero matches. Evince does ...
7
votes
3answers
6k 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 ...
2
votes
0answers
87 views

Copying ligatures from XeLaTeX PDF

For quite a while I am having the problem that copying and searching from my PDFs is a bit difficult as ligatures are not properly translated. I am using XeLaTeX with Libertine/Biolinum. I am a ...
14
votes
2answers
786 views

Encoding to be able to search pdf

I am writing a document in Czech. I want To be able to fully search the pdf (at the moment I can search only for words with non-Czech characters, but I want to be able to search with Czech ...
1
vote
0answers
68 views

TeX - make copy/paste difficult? [duplicate]

I have a christmas question for you. I have now tried to copy paste some elements from a document compiled in TeX. Sometimes it looks like this: ❆t ❧❛st✱ ❛♥❞ t❛❦✐♥❣ t❤❡ r✐s❦ ❛ ❜❡✐♥❣ t♦♦ ❛❜str❛❝t✱ ...
4
votes
0answers
50 views

Copyable tabs in minted

I'm preparing tutorial for students with code fragments that they will copy to a text editor. Is there a way to make syntax-highlighted code copyable to text editor so that indentation is preserved, ...
1
vote
0answers
56 views

Paste command no longer working in lyx

I have been using lyx for a while and everything was working smoothly. Recently, however, I tried deleting a float figure and inserting it at a different point in the document. Following this question ...
31
votes
1answer
1k views

Make hyphenated words in PDF searchable

Is there a way to make hyphenated words in a PDF generated by LuaTeX searchable? If the MWE below is converted to a PDF, searching for "lexicon" (in Acrobat X for example) will not find the word since ...
1
vote
2answers
123 views

Can I copy text with syntax highlighting

Is there a way to copy LaTeX text out of TeXstudio with syntax highlighting? Will include some macros and small portions of LaTeX in a presentation (Powerpoint) and want to get it as readable as ...
3
votes
1answer
147 views

Copy-and-paste small-caps with ConTeXt and simplefonts

I am trying to typeset some text with small caps in ConTeXt (mkiv — version 2015.05.18 12:26), and have that text available for copy–and–paste. Here's a minimum problematic setup: % !TEX encoding = ...
0
votes
1answer
356 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 ...
2
votes
2answers
136 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. ...
6
votes
1answer
55 views

XeLaTeX misplaces ActualText box

The following MWE uses accessibility features of PDF provided by the package accsupp to replace the content of the selection corresponding to BBB with ZZZ in the string AAABBBCCC. ...
6
votes
0answers
158 views

PDF Resume In Latex: text is extracted wrong [closed]

I have typed up my resume in Latex and have used pdflatex to generate the pdf of it. I have submitted this to job sites and resume critique sites. Most of them have shown me the plain text ...
3
votes
1answer
157 views

'fj' ligatures are not correctly mapped with 'glyphtounicode' using Alegreya font

Inputting glyphtounicode when compiling with pdflatex makes sure that various ligatures in the output are copy- and searchable. With the Alegreya package, however, the ligatures for fj and ffj aren't ...
19
votes
2answers
3k views

Cannot copy text from the simplest PDF file?

Consider the following code: \documentclass{article} \begin{document} We define multiplication by $$v_1x = 0,\quad v_2x = v_1,\quad v_1y = -v_1,\quad v_2y = v_1$$ \end{document} which looks ...
1
vote
0answers
101 views

Copy Paste on Latex [closed]

I can not copy and paste text from Latex itself, nor from nowhere else. I have shecked the hotkeys and they do not inclue CRTL + C nor CRTL + V. Could you please help ? thank you !!
1
vote
0answers
285 views

Symbols do not copy correctly from latex pdf to ms word

I have text containing 3 symbols in pdflatex and produce pdf. It is OK. Then i copy these symbols and paste in MS word 2013 and have another symbols or from one symbols two are produced: Before ...
1
vote
0answers
48 views

Not possible to search for umlaute in LaTeX [duplicate]

I am using \usepackage[utf8]{inputenc} so I am able write umlaute inside the tex file, but I can't search for a word that contains umlaute inside the compiled pdf. Is this a "bug" inside LaTeX or do ...
2
votes
1answer
230 views

Green cursor in ShareLaTeX - Lost functionalities

After some weeks working with ShareLaTeX, the cursor has turned green. This wouldn't be a great concern but since then I am unable to Ctrl+C and Ctrl+V chunks of text in my text file when I am ...
1
vote
0answers
47 views

How to make Æ Ø Å copyable from the PDF output [duplicate]

When building a PDF file with LaTeX the character å gets uncopyable. It only results in ̊a when copied. \documentclass{article} \usepackage[norsk]{babel} \begin{document} Try copying ...
5
votes
2answers
343 views

Make pdflatex output UTF-8 copy-pasteable when using Times font

I would like to use Adobe Times Roman font or its equivalent (like URW Nimbus Roman and fonts based on it), compiling with pdflatex to PDF -- the original intent was to have PDF smaller by using ...
3
votes
2answers
317 views

Copy-Paste error in LaTeX

When I try to copy some text from a Word page or pdf an paste it to LaTeX, I get the error below. Any idea how to fix this? PS: I am using LaTeX on a Mac While the text which I typed my self works ...
5
votes
1answer
337 views

When I convert a PDF to plain text, the text is scrambled [duplicate]

When I convert a PDF created in MiKTeX to plain text, all diacritics are at the wrong place. I need to send my thesis to online antiplagiator checking page. Example: pr´ce a diskusia mˆˇu tvorit ...
9
votes
4answers
2k views

Problems with copy and paste from PDF using lstlisting

I'm using lstlisting to create course notes from which I am hoping that code can be copy&paste'd I've already implemented the suggestions in Phantom spaces in listings (pdf) to make sure that ...
3
votes
1answer
212 views

Can or will pdf with MinionPro produced by ps2pdf allow to search for words with ligatures, such as “final”?

This is either a question or an encouragement, depending on the situation. If a pdf typeset with latex and made into a pdf with ps2pdf contains the word "final", searching for that word in the pdf ...
0
votes
0answers
37 views

Copying from PDF gives crypted string [duplicate]

I got a book for "Lebensmittelanalytik" as a PDF. When I copy anything in the PDF I get strings like this: bflyflNSMàTTflLxNxLYTàü. I tried to compile it with LaTeX and the pdfpages package, but it ...
0
votes
0answers
52 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
90 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
87 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 ...
17
votes
2answers
2k 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 ...
5
votes
3answers
564 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
274 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?): % ...
4
votes
1answer
339 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 ...
6
votes
1answer
256 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 ...
41
votes
2answers
957 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
282 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
510 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
302 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
301 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 ...
75
votes
6answers
8k 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 ...
13
votes
2answers
2k 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
320 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 ...