Questions tagged [copy-paste]

{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.

Filter by
Sorted by
Tagged with
0
votes
0answers
31 views

pdflatex make text unselectable (uncopyable)

How would i go about making the pdf output of a document have unselectable sections? (So you can't directly copy and paste from them). Is there some way of converting all the text into vectors? This ...
0
votes
0answers
40 views

Making a copy of a project breaks the bibliography

I made a copy of my latex project for version control purposes and it broke the bibliography in my compiled document. All the citations are question marks and the bibliography is not listed. Nothing ...
0
votes
1answer
44 views

Can Latex copy external files around the computer's file system

I have a latex document like the below \documentclass{article} \usepackage{graphicx} \newcommand{\plott}[1]{ \begin{figure} \includegraphics{#1} \end{figure} } \begin{document} \plott{"c:...
0
votes
0answers
26 views

copy a section from another .tex file

I'll try my best to explain.. I need to make a LaTex document every week for a lab. In it, I have the safety sheet of chemicals. Often, I've already done a chemical in an earlier document. Now, I just ...
1
vote
0answers
29 views

When tried to copy from PDF generated with LaTeX, I got garbled code instead

So I was trying to copy text from PDF files generated from XeLaTeX, but for whatever reason, it results in garbled sign. But it does work when opened through the built in pdf viewer in TeXShop Also, ...
0
votes
1answer
34 views

Restate statements before declaration

TLDR How to throw all dirty but necessary "lemmas/proofs" in the appendix, and restate them in the main text? I had a few attempts, and it seemed that my requests are weird.. so I would ...
1
vote
1answer
54 views

Quoting from the same document?

How to quote from the same document? For example SECTION 3. Explanation Before discussing the main theorem, let's quote it's statement. Theorem 7.1. (Main lemma) 1 + 1 = 2 ... SECTION 7. Appendix ...
1
vote
2answers
72 views

Locally and one-slot-oriented font encoding definition change

Related to "Ð vs Đ": Wrong mappings when copying from PDF with \pdfgentounicode with newtx. I have even tried changing /Eth to /Dcroat in lm-ec.enc and tested new MWE using lmodern and ð Ð đ ...
0
votes
0answers
95 views

How to know if my file is inserted correctly `glyphtounicode`

In several suggestions for making pdflatex output copy-and-pasteable, is part of the suggestion to insert the code, \input glyphtounicode.tex \pdfgentounicode=1 \pdfcompresslevel=0 TeXstudio marks in ...
3
votes
0answers
179 views

LuaHBTeX: \copy contents behave differently from \box for copy-paste — by making contents tofu 􀈽 for reordered glyphs or by adding spurious space

Here's an example of a tex \vbox with some devanagari text in it. My code adds contents of \vbox to document twice, first its copy (using \copy), and later itself (using \box). Both copies look ...
2
votes
0answers
297 views

How make a LaTeX document that generates a PDF from which copy-paste works correctly for empty lines and leading space indentation?

We are writing a PDF document in LaTeX that contains various installation instructions and other technology text. Our idea is that the user reads various instructions in Serif font and then there's ...
1
vote
0answers
106 views

Using \EveryShipout corrupts the copyable text

This is a strange bug. I'm using the textpos package (which in turn uses the everyshi package) to place text at a certain position on the page. Consider this document: % !TEX TS-program = lualatex \...
1
vote
1answer
93 views

Getting correct searchable text for Devanagari text

Consider this fairly minimal document, which AFAIK is the recommended way of typesetting Devanagari-script Sanskrit-language text: \documentclass{article} \usepackage{fontspec} \usepackage{...
0
votes
0answers
35 views

Strings contain fi misparsed in resume parsers

I am having a consistent bug with resume parsers and was wondering if anybody has suggestions Any word that has the substring "fi" essentially removes the substring Do you guys have any ...
2
votes
1answer
17 views

IEEEtran: How to copy a snippet up without changing the cited number?

I want to prevent the changing of the reference number when I duplicate a portion of the content. The following code works when using the plain bibliography style, but I need to use the IEEEtran style....
0
votes
0answers
123 views

How to copy and paste text with formatting removed

I am using the clipboard package to copy and paste some text. When I paste the text, the formatting also gets pasted. This is a very basic minimal working skeleton of my code: \documentclass{report} \...
0
votes
0answers
37 views

Code environment that supports copy-paste

Is there a LaTeX package that can generate code in PDF file and allow users to copy-paste the generated code? I have tried the lstlisting environment. This is my test code: \documentclass{article} \...
0
votes
0answers
22 views

Give permission to copy

I'm asking what usually people do not want. How can I give permission to copy my document? I mean, I haven't add some kind of obstacle, I can copy the titles, and some text that is in underline, ...
0
votes
0answers
13 views

Cut Copy and Delete not working in Edit Menu (grey color) or by using CTRL+X

All of a sudden redo, cut copy and delete not working using TeXShop 4.44 I am using MacBook PRO with Mojave 10.14.6 Don't know if any update was made since I have automatic updates on many things. ...
2
votes
1answer
234 views

Copyable math formulas

I'm curious whether there is a package that allows to copy math formulas correctly. For example, this one should highlight like so but, not like so And if I copy one, I should get: ∫₃⁵ (x/(1-x²)) ...
0
votes
0answers
27 views

text editor to copy math symbols/notations and formulas

i'm trying to copy some notes from a pdf(opened in document viewer) which contain maths symbols and notations, like, epsilon. i've tried texmaker, LeX, gedit(of course), with different encodings, ...
0
votes
0answers
39 views

Copy-able math code via accsupp breaks in align environment at pagebreaks

I'm using align extensively as my display math environment and I'd like for the selectable text in the pdf for math equations to be the latex code used to generate it. Ideally, I'd redefine the align ...
0
votes
1answer
101 views

How to use mmap in XeLaTeX?

I want to map math characters in my PDF output to Unicode characters. XeLaTeX already does this somewhat, but with very unsatisfactory results. Just for comparison, consider the very simple example $\...
0
votes
0answers
182 views

Time New Roman - hyphens are not visible when copied from PDF (xelatex issue?)

A similar problem to this Why LuxiMono's dashes disappear when copying-pasting from Acrobat Reader? The solution from that post does not work for me: Undefined control sequence. <recently ...
4
votes
1answer
94 views

Text difficult to copy-paste in some reader only on a specific PDF generated with PDFLatex

So, it's a strange question: I know that LaTeX has some problems with the copy-paste from a PDF which, sometimes, need thing like the package cmap. But at this point I never needed such thing, as my ...
2
votes
2answers
71 views

PDF text search doesn't find first word in section title

When I run lualatex on the following MWE, open the resulting PDF in either Evince or Okular, and search for foo, I get zero matches. If I instead search for f oo (note the space between the f and oo) ...
5
votes
3answers
555 views

Disable copying text from minted listing

I want my minted listings not to have copyable text. I've found this: Is it possible to produce a PDF with un-copyable text? But after a few hours of trials I am not able to integrate it with my ...
0
votes
0answers
29 views

Proper copy-pasteable single quotes in listing

Yes, I know this is VERY similar to previous questions but my specific problem seems to be unaddressed. No matter what I do I always end up with code that copy-pastes as such: Notice the unwanted ...
0
votes
0answers
62 views

Speeding up repetitive typing

If I am writing a document say, \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} y = some long equation \end{equation \end{document} and some really long equation ...
2
votes
1answer
143 views

Quotation marks and hyphen in listings generate un-copyable PDF

I'm writing a document for general purpose so that anyone can follow it and the idea is to copy and paste this command in a Linux terminal. But when I do that in a terminal give me error because ...
4
votes
1answer
882 views

How to configure tcblisting with minted to allow copy/paste from listing with whitespace characters?

This answer from a similar question gets very close to a final copy/paste solution, but does not work for me as it does not select whitespace. I am asking a new question as the linked one is several ...
2
votes
1answer
984 views

Included PDF image has invisible, but selectable text

I am currently facing some problem when I tried to import a PDF as a graphic. The PDF with some original text beside was first cropped to remove the text and then imported using \includegraphics. ...
2
votes
0answers
238 views

How to keep formating when copy-paste code sections with minted?

I am using the minted package for syntax highlighting code in my slides, but I have some problem to make this code easily copyable directly from the PDF to the console. it seems that the whitespaces ...
8
votes
1answer
503 views

How to copy minus as hyphen?

There is a question about minuses in listings. Is it possible to make (document-wide) the minus sign (−) to look like the typographic minus, but be copied from the resulting PDF as the hyphen (-), ...
9
votes
0answers
941 views

Package cmap or `\input glyphtounicode`?

I'm sending PDFs to some folks who are supposed to copy some of the content elsewhere. It is important that my files are searchable and copyable (while I doubt these words to be proper English...) So ...
3
votes
3answers
824 views

How to reuse code

This might have been asked before, but I am not sure what to search for. I am often in the situation that I want to print identical portions of text (or images, tables, etc) on a single A4 page in ...
1
vote
0answers
53 views

Character Encoding pdf [duplicate]

I compile my latex with pdflatex in texniccenter. The produced pdf looks good. But when I select a word and copy it over to a texteditor, some of the characters are wrong. for instance all german ö,ü,...
0
votes
0answers
130 views

How to remove indent characters when copying from PDF document using listings package

I am pretty sure I read something about this before, but I can not find it. Mark it as a duplicate if so please. I am coding inside lstlisting environment using SPACEBAR for separate words and TAB ...
2
votes
1answer
60 views

Using stringstyle with quotation marks does not fit properly using listings package

Please consider this MWE with stringstyle=\bfseries\color{blue}: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{color} \usepackage{enumitem} \usepackage{...
5
votes
1answer
482 views

Is it possible to not copy numeration using lstlisting?

Please consider the following MWE: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{color} \usepackage{enumitem} \usepackage{listings} \definecolor{...
2
votes
0answers
136 views

Make automatically equation copyable in pdf

I would like to write a .pdf where all rendered equations can be copied and pasted correctly as TeX code. Someone had posted a similar question : https://tex.stackexchange.com/questions/119713/making-...
0
votes
0answers
429 views

Control the copy/paste output of latex text

Wondering if there is a way to control the copy/paste output of latex generated PDF text. For example, say I have this in the output PDF: g : b → a If I could control the copy/paste output I would ...
1
vote
0answers
223 views

Copy pastable code in tex [closed]

I have XML code which I need to copy paste. Here's is the code <joint name="joint1" type="continuous"> <parent link="link1"/> <child link="link2"/> <origin xyz="5 3 0" ...
2
votes
1answer
229 views

How do I copy WhatsApp chats and retain linebreaks

I am looking to copy many whatsapp chats into a document and retain the linebreaks. If I just copy them in, then there are no linebreaks. How do I do this? Thanks Verbatim (alone) doesn't work ...
7
votes
1answer
926 views

How to increase minimum space between words in XeLaTex output?

Update: The problem seems to be that the spacing between some words is too small, and the ATS thinks it's one word. So, the ideal solution would be to set a minimum spacing across the entire document,...
0
votes
1answer
360 views

Print any utf-8 character to copy-paste from pdf

I have this code: \documentclass[varwidth,border=10pt]{standalone} \usepackage{graphicx} \newcommand{\MyBrand}{% \includegraphics[width=3em]{myBrand}% } \begin{document} I always use \MyBrand , ...
2
votes
2answers
1k views

LaTeX - Copy and paste º

I have a LaTeX document. I can copy from PDF (º), but it pastes as (o). How can I handle it? Use: \documentclass[12pt,a4paper]{report} \usepackage[utf8]{inputenc} \usepackage[brazil]{babel} \...
2
votes
0answers
132 views

How does one make \textls text copy-and-pasteable in PDF?

Consider the following document: \documentclass{article} \usepackage{microtype} %\usepackage{adobecaslon} \begin{document} Some \textls[250]{letterspaced text}. \textls*[100]{SPEECH} \end{document} ...
1
vote
1answer
299 views

Integral in math messes up copy-and-paste of text [duplicate]

For a document like \documentclass{article} \usepackage[T1]{fontenc} \input glyphtounicode.tex \input glyphtounicode-cmr.tex \pdfgentounicode=1 \pagestyle{empty} % for quick CTRL+A \begin{document}...
3
votes
1answer
575 views

Search text in cyrillic alphabet [duplicate]

I have problem with documents generated in LaTeX with Cyrillic symbols. I created the following file: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T2A]{fontenc} \begin{document} ...