{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

9
votes
0answers
78 views

Text copied from pdf is missing spaces, or has extra ones

When I create a pdf with pdflatexand copy text from that pdf (using Adobe Reader DC on Windows 10), some of the spaces are missing. Here's an MWE: \documentclass{article} \usepackage{newtxtext} \...
1
vote
1answer
48 views

Okular doesn't recognize text [duplicate]

I am writing articles using Kile on Windows 7. I have a problem with search in the output file. For some reason, Okular doesn't recognize the text. Trying to copy something with the option text ...
2
votes
0answers
73 views

Text in pdf output not recognized

I am writing my first document with Latex, so please be patient ;-) I've searched through forums again and again but was unable to find a solution. I am working with Texmaker and when compiling my ...
0
votes
0answers
20 views

Is there a simple way to prevent copy paste with LaTeX [duplicate]

I'm looking for a simple way to prevent copy paste from the PDF that LaTeX outputs. I'm not looking for a complicated and complet way, that makes copy paste completely impossible (I know it is ...
2
votes
0answers
46 views

Copy and paste unicode math

Consider the following example compiled with luatex. \documentclass{standalone} \usepackage{unicode-math} \setmathfont{Latin Modern Math} \begin{document} $A_1$ \end{document} Since Latin Modern ...
1
vote
1answer
37 views

Mathtype Latex Output - Removing $$ or \[

Is there a way to remove the $$ or \[ \] from the latex copy and paste settings on mathtype. The reason that I need this is I use a series of uncover lines in my beamer presentation within an align ...
1
vote
0answers
69 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] [features=...
3
votes
0answers
85 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
155 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} % \...
6
votes
1answer
95 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 ...
3
votes
0answers
140 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 ...
1
vote
0answers
69 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
78 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
1answer
76 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 ...
1
vote
2answers
163 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
170 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 = ...
6
votes
1answer
66 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. \documentclass{...
6
votes
0answers
187 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
189 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 ...
1
vote
0answers
107 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 !!
2
votes
2answers
160 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 ...
1
vote
0answers
331 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
280 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 editing....
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 ...
3
votes
2answers
389 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
2answers
406 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 built-...
5
votes
1answer
394 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 ...
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 didn'...
3
votes
1answer
215 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
54 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.
1
vote
1answer
92 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 \end{...
2
votes
1answer
100 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 ...
2
votes
2answers
150 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. ...
5
votes
3answers
628 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
294 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
375 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 ...
0
votes
0answers
290 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 ...
0
votes
0answers
346 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 ...
6
votes
2answers
353 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 ...
2
votes
0answers
344 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
91 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 ...
1
vote
0answers
81 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} \begin{document}...
0
votes
1answer
399 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
1answer
543 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 ...
12
votes
0answers
681 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 ...
4
votes
2answers
175 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 ...
12
votes
1answer
454 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
119 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 ...
1
vote
0answers
42 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 ...