Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [accsupp]

{accsupp} is for questions dealing with accessibility support in PDF files.

1
vote
1answer
48 views

Changing the position of the searchable word when using package accsupp

I used the answer of my question when using package accsupp so that the text can be found in Zathura pdf viewer when leaning over the "circle connection bar". And also I tried to save code using the ...
3
votes
1answer
84 views

Hide text from displaying but retain it selectable and searchable

Continuing https://tex.stackexchange.com/a/463516, is there a way to create an invisible PDF text associated with a drawn symbol? Assume that we have some command (say, \sqp) which draws some symbol ...
1
vote
1answer
66 views

Problems with accsupp and microtype

I was building on egreg's solution to this question to provide missing accented characters for my document. I also added accsupp to make sure that the text is searchable. Unfortunately, there seems ...
1
vote
1answer
65 views

Is it possible to provide alternative text to use when copying text from the PDF? Part 2

A follow up to this question. For this and quite a few other fonts, the small cap glyphs show as uppercase when copied, as in line 1 and 4 in the output below. I am trying to override each individual ...
1
vote
1answer
54 views

Problem with accsupp and bibliography when used to detokenize small caps in XeLaTeX

This is kind of a follow-up question to a question I asked some months ago. I use XeLaTeX with scrbook class and Cambria as a font. Since Cambria lacks small caps, text in small caps cannot be ...
1
vote
0answers
116 views

Copy pastable code in tex

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" ...
1
vote
0answers
21 views

listings' line numbers non selectable: okay with beamer but not with (e.g.) article class (if hyperref is used) [duplicate]

The following MCE points out that it is possible to make the listings' line numbers non selectable (thanks to the accsupp package) in case of the beamer class. But, in case of the standard classes (e....
1
vote
0answers
35 views

Redefine global math mode to give source on selection/copy

Currently, I have the following setup wich works to return the LaTeX source code on selection/copy in the PDF output. I am wondering if it is possible to redefine mathmode or $ to wrap its contents ...
7
votes
1answer
167 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{...
21
votes
2answers
1k views

Techniques to make tabular contents copyable

Take the following table: \documentclass{article} \begin{document} \begin{tabular}{|c|c|} 11 & 21 \\ 12 & 22 \\ \end{tabular} \end{document} What are the techniques to make this table text-...
13
votes
1answer
2k views

Can I make an “abbreviation expansion” in PDF visible?

(I hope this is at least marginally on topic) When I use the <abbr> tag in HTML, the abbreviation and its expansion are marked by the browser: But if I mark an abbreviation and its expansion ...
12
votes
1answer
697 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 ...
10
votes
1answer
147 views

Protect footnotemarks from selection in pdf

Inspired by this question i used accsupp to protect the headers of my pdf from being copied which works nicely so far. I tried to do the same thing for the footnotemarks which hasn't worked so far. ...
10
votes
1answer
318 views

/ActualText in small cap hyperlinks

I'm using the frenchlinks option for hyperref, which due to solicitous care of XeLaTeX + Linux Libertine, gives bona fide small-caps links on the page. The problem is, when I cut and paste out of the ...
8
votes
2answers
4k views

Copy-pasting leading whitespace and blank lines in listings package (pdf) [duplicate]

I'm trying to use the listings package to typeset some code in a PDF document, in a way that allows me to copy-paste the resulting code. This mostly works well, if basicstyle=\ttfamily,columns=...
5
votes
1answer
297 views

Make text in the margin selectable “columnwise” (marginpar, todonotes)

When including marginpar and/or todonotes marking text in a PDF viewer always selects the body of the text and the note together: Some of us unfortunately have collaborateurs not using LaTeX and ...
15
votes
2answers
437 views

How to produce character-by-character-pastable visual output that is a function of the (intended-to-paste-as-such) source code input?

Note: The original phrasing of my question was this: How to use accsupp to produce all-upercase in the visual output from input that should paste in its original, ordinary-case form? However I think a ...
5
votes
1answer
812 views

pasting small circled (\textcircled) letters leads to incorrect (reversed) Unicode codepoint sequence for combining circle

When I try to circle a small letter, compile (using glyphtounicode.tex), and then paste the resulting text, the combining circle (U+20DD) appears before the letter (here: "b") even though it, being a ...
1
vote
1answer
328 views

How do I paste codepoints outside of the basic multilingual plane with accsupp or \pdfglyphtounicode?

As described in the answers to this question, the accsupp package can be used to have symbols paste as arbitrary Unicode codepoints. For example you might want to write something like the following, ...
7
votes
1answer
531 views

Create alternative uppercase text automatically with accsupp

This is a follow-up question to Is it possible to provide alternative text to use when copying text from the PDF?. I am essentially trying to redefine textsc/scshape in order to use accsupp ...
29
votes
1answer
2k views

Is it possible to prevent some part of text (headers, footers) from selection?

I'm looking for a solution that will allow me to prevent some parts of the final pdf file (header, footer) from being selected and copied. It is to allow easier quoting of longer parts of texts from ...