acmart icon indicating copy to clipboard operation
acmart copied to clipboard

Line numbering and searching PDFs

Open henningpohl opened this issue 2 years ago • 2 comments

I'm opening this issue to start a discussion around whether the red line numbering in review versions should be searchable or not. Right now they are and that has been annoying me a few times. This is primarily an issue when trying to find places where a given reference has been used. If I search for paper 11, for example, my PDF viewer will also return all line numbers ending in 11. Not ideal. But on the other hand, I get that sometimes people might want to have the line numbers searchable as well when reviewing. So there likely isn't an ideal solution here.

If line numbers should be visible, but not searchable, an easy way to do that would be via the accsupp package. Instead of: \loop{\color{red}\scriptsize\the\ACM@linecount}\\ (L7445) this would then be: \loop{\BeginAccSupp{method=escape,ActualText=}\color{red}\scriptsize\the\ACM@linecount\EndAccSupp{}}\\

henningpohl avatar Oct 27 '22 10:10 henningpohl

hyperref's backref option is my favorite way to find references. I wish it was on by default. (For now, I always make a file hyperref.cfg with one line inside: \hypersetup{backref}.)

bennn avatar Nov 07 '22 18:11 bennn

@bennn cool workaround! Unfortunately, doesn't apply if I deal with someone else's PDF, which I do most of the time. Having this option on by default does sound reasonable but even then I'd expect making lines number non-searchable would improve quality of live (once in a while I do search for specific numbers).

ulysses4ever avatar Nov 07 '22 19:11 ulysses4ever