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
57 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
150 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 ...
1
vote
0answers
120 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
58 views

Using \EveryShipout corrupts the copyable text

This is a strange bug. I'm using the everyshi package to place text at a certain position on the page. (Actually I'm using the textpos package, but I isolated the problem to its usage of everyshi.) ...
1
vote
1answer
47 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
33 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
30 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
35 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
10 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
94 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
24 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
36 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
66 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
114 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 ...
3
votes
1answer
75 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
1answer
54 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
376 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
61 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
110 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
668 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
650 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
178 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
481 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 (-), ...
6
votes
0answers
596 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
650 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
52 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
117 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
52 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
369 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
110 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
374 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
213 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
212 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
707 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
347 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
913 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
123 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
269 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
499 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} ...
0
votes
1answer
274 views

importing equation images

I'm currently writing a summary of a paper, and to make things easier for me, I decided to just use the windows snipping tool, to copy the equations from the paper, and insert them in my latex summary ...
3
votes
1answer
398 views

Why is there no spacing between words in the table of contents?

When I make a table of contents in LaTeX and execute the TeX File with pdflatex, some spaces (the most of them) in it are deleted for search function (and for me in braille). My question is: why ...
1
vote
0answers
523 views

Can't compile a PDF with UTF-8 in Sweave [duplicate]

I try to compile in Sweave (R Studio) a PDF which contains cyrillic characters. The PDF-file looks nice, and the cyrillic characters display correctly. But when I try to copy some text from the PDF to ...
3
votes
1answer
185 views

Why LuxiMono's dashes disappear when copying-pasting from Acrobat Reader?

Consider the following MCE: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{luximono} \begin{document} \texttt{foo-bar} \end{document} When copying-pasting "foo-bar" from Acrobat Reader,...
3
votes
0answers
100 views

Displaying a copy-pastable and well structured BibTeX key in my document

Context: I want to insert the BibTeX entry of my document at the beginning thereof. I thus want this code snippet meet two criteria: Be easily copy-paste-able (code seen = code copy-pasted) Looks ...
1
vote
0answers
382 views

Find apostrophe symbol ' in PDF file

I'm writing in french, with AZERTY keyboard and I don't know why I not can find the apostrophe symbol ' in my PDF file ? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \...
3
votes
0answers
366 views

XeLaTeX/LuaLaTeX copy and paste broken and document not searchable?

I am on Windows using TeX Live 2016 and both xelatex and lualatex produce broken encodings when building the following \documentclass{scrartcl} \usepackage{fontspec,unicode-math} \...
1
vote
1answer
550 views

Type: Badbox , Overfull \hbox for text

i get from external file ... xtras/intro.tex a badbox warning with the following line 1 Overfull/hbox (54,60191 pt too wide) in paragraph at lines 1---1 i copied and pasted text from word. I also ...