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
0 answers
24 views

Customize copy-text for box

Motivation My end goal is to include more Mathematica expressions in LaTeX-pdfs that are copy-paste-able back into Mathematica notebooks. For instance, the code \usepackage{mmacells} ... \begin{...
user avatar
  • 101
2 votes
1 answer
74 views

Writing in Greek, but can't copy Greek?

So, I have a file in Gree, with some English letters. Everything works fine, no syntactic errors or anything. When I go into the PDF to copy from it or search for something, it never returns my query. ...
user avatar
0 votes
0 answers
31 views

Whitespace rendering + selectable indentation spaces for python/yaml/etc code snippets

I have three related issues here and I wonder, which approaches/libraries/built-in utilities may help me achieve the following: First There are many programming languages and file formats which depend ...
user avatar
  • 11
0 votes
0 answers
37 views

Convert PDF to PDF of images? [duplicate]

I have recently written a PDF with LaTeX. That means that you are able to copy and parse the PDF text. Out of pure interest: How is it possible to convert all pages to images (collected in a big PDF), ...
user avatar
1 vote
1 answer
44 views

Copy a text file and display it as it is

I have a log file from an analysis software which is in ".txt" form. Data is arranged in some useful order with symbols, matrices etc. in the file. I want to make the contents of it an ...
user avatar
  • 25
0 votes
1 answer
51 views

How to make symbols (written by using $$), look like something in the pdf and different if you copy-paste it? [duplicate]

Is there a way to make symbols, written by using the function $$, in LaTeX look like something in the pdf document, but different if you copy-paste it? Here is an example of what I would like: ...
user avatar
  • 73
3 votes
1 answer
63 views

How to make text look different in PDF compared to copy-paste [duplicate]

Is there a way to make text written in LateX look like something in the pdf document, but different if you copy-paste it? Here is an example of what I would like: In the pdf document: there is 10 km ...
user avatar
  • 73
0 votes
1 answer
62 views

prevent text selection on pdf in \ruby context

I was wondering if there is an "easy" way to prevent selection on furigana produced by \ruby command so it's easier to select>copy>paste on translator or other place. %!TEX TS-program =...
user avatar
  • 103
2 votes
0 answers
114 views

Produce copy-paste friendly code blocks in PDFs

I have used lslisting for inserting the code blocks. Requirement is to make the code blocks displayed correctly in the compiled PDF and make them as easy as possible to copy as plain text. Please take ...
user avatar
1 vote
0 answers
62 views

Copy linked text to clipboard in PDF output

How can I realize the following: Click on a linked text in my PDF file. This copies the linked text to my clipboard and I can then copy the text into an email etc.
user avatar
0 votes
1 answer
52 views

unable to extract devanagari from XeLaTeX generated PDF using ebook-convert

I'm using TeXLive 2020 in Debian Bullseye. I generated a PDF document using XeLaTeX containing Devanagari characters. By using the option \XeTeXgenerateactualtext=1, I'm able to copy the Devanagari ...
user avatar
0 votes
0 answers
95 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 ...
user avatar
  • 173
0 votes
1 answer
104 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 ...
user avatar
0 votes
1 answer
56 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:...
user avatar
  • 103
0 votes
0 answers
86 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 ...
user avatar
  • 1
1 vote
0 answers
35 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, ...
user avatar
  • 1,023
0 votes
1 answer
78 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 ...
user avatar
  • 155
1 vote
1 answer
100 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 ...
user avatar
  • 155
1 vote
2 answers
96 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 ð Ð đ ...
user avatar
  • 977
0 votes
0 answers
152 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 ...
user avatar
  • 225
3 votes
0 answers
191 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 ...
user avatar
  • 1,228
2 votes
0 answers
609 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 ...
user avatar
  • 21
1 vote
0 answers
125 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 \...
user avatar
  • 42.3k
1 vote
1 answer
149 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{...
user avatar
  • 42.3k
0 votes
0 answers
37 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 ...
user avatar
  • 1
2 votes
1 answer
19 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....
user avatar
0 votes
0 answers
260 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} \...
user avatar
  • 325
0 votes
0 answers
42 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} \...
user avatar
  • 597
3 votes
1 answer
721 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²)) ...
user avatar
  • 1,814
0 votes
0 answers
98 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, ...
user avatar
1 vote
0 answers
56 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 ...
user avatar
0 votes
1 answer
158 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 $\...
user avatar
  • 153
0 votes
0 answers
288 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 ...
user avatar
  • 23
4 votes
1 answer
103 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 ...
user avatar
2 votes
2 answers
90 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) ...
user avatar
5 votes
3 answers
912 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 ...
user avatar
  • 53
0 votes
0 answers
31 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 ...
user avatar
0 votes
0 answers
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 ...
user avatar
  • 155
2 votes
1 answer
248 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 ...
user avatar
  • 23
5 votes
1 answer
1k 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 ...
user avatar
3 votes
2 answers
1k 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. ...
user avatar
3 votes
0 answers
365 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 ...
user avatar
  • 738
8 votes
1 answer
534 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 (-), ...
user avatar
9 votes
0 answers
1k 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 ...
user avatar
  • 28.7k
4 votes
3 answers
1k 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 ...
user avatar
1 vote
0 answers
59 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 ö,ü,...
user avatar
  • 203
0 votes
0 answers
198 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 ...
user avatar
  • 3,039
2 votes
1 answer
94 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{...
user avatar
  • 3,039
5 votes
1 answer
691 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{...
user avatar
  • 3,039
2 votes
0 answers
155 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-...
user avatar

1
2 3 4 5