sumatrapdf icon indicating copy to clipboard operation
sumatrapdf copied to clipboard

Suggestion: Highlight the jumping destination within PDF

Open kaiwu-astro opened this issue 7 years ago • 8 comments

Hi :)

I use SumatraPDF a lot to read research literature. The papers usually have quantities of citations with hyperlink jumping within the PDF. I'm always confused when I click a bibliography citation (hyperlink) and it jumps to the end of the document, but there is too much bibliography there and I cannot find which one I want. Then I have to go back to see the name of the citation and jump again then I can locate it.

I would appreciate it if you can add a function to highlight the jumping destination when jumping within PDF. The highlight can be just like this --- when I use Sublime Text (with LatexTools) to compile a latex file, there will be a highlight on the PDF line in SumatraPDF corresponding to the position in the code.

Thanks!

kaiwu-astro avatar Oct 22 '18 20:10 kaiwu-astro

The Highlight function to given line(s) via embedded Synctex parser library is separate to the internal hyper jumps to named-destination (a designated anchor rather than a specific line), Having said that it may be possible to redirect the internal jump to recall the file with a line number but would involve some significant recoding for the math to nominally select which line is to be highlighted. Unless someone can dedicate a considerable amount of time to link the two features reliably it is probably not an easy patch to achieve.

GitHubRulesOK avatar Oct 23 '18 12:10 GitHubRulesOK

You know the location: When I zoom in, it jumps to the right place.

How about just placing a marker (e.g., a red dot) at that spot.

zoharl3 avatar Aug 17 '25 20:08 zoharl3

Not SYNCTEX.

Consider this pdf:

https://arxiv.org/pdf/2304.11605

Zoom in sumatra, say 400%. Click on a citation, e.g., [Pomerleau et al. 2015]. It will jump to it bib ref.

So, these jumps are linked to a specific position.

Now, go to a fit single page view. Click the citation. It will jump to the page, but you don't know where. Put a dot on the location.

Keep in mind this issue with v3.6:

https://github.com/sumatrapdfreader/sumatrapdf/issues/5064

zoharl3 avatar Aug 18 '25 03:08 zoharl3

I believe you misunderstood me. I'll try again.

Zoom the document by 800%. Click a citation. Do you see that the view jumps to where it starts? This means that the viewer (sumatra, chrome...) has the location. I didn't get into the technicalities, but it must be an (x, y) point at the document. Just draw a red dot (a small circle) at this location. Don't mark any text or try to surmise anything smarter than that.

zoharl3 avatar Aug 18 '25 22:08 zoharl3

We are definitely not talking about the same thing. I mean, you click (beforehand, the cursor changes to a hand--not double clicking a word) a citation on page 2:

Image

And it jumps to its bibliography on page 18:

Image

(Similar to clicking on an equation reference, and it jumps to the equation.)

If page 18 is viewed in a single page fit, then it's not immediate to find the reference, especially if you didn't memorize the name.

Put a red dot before "François Pomerleau" on page 18 after the jump.

zoharl3 avatar Aug 19 '25 03:08 zoharl3

@zoharl3
Sorry for some unknown reason the copy I downloaded did not behave as if linked ! so have downloaded again and now see those links.

Image and the goto NAMED AREA LOCATION is as seen here in an editor.

Image

The named destination area is to be found on page18 where that area is located and move view to the left so the right column is seen. Image

and although SumatraPDF moves down to that area Y wise does not move the page in X which for some time has been an observed problem (in respecting X "scroll to".)

Image

Certainly it would help to have that area shown (like in the editor) but is not normal for a Reader. as for placing a temporary dot in the top left corner it would only be a work around to the problem as it would based on current bug be in left hand margin.

GitHubRulesOK avatar Aug 19 '25 12:08 GitHubRulesOK

This is the bug that I reported

https://github.com/sumatrapdfreader/sumatrapdf/issues/5064

but it's not related to this feature request. With the bug present, you may not even see the area which to place the dot on.

This thread is about a feature request. Please let me rehash. Assume the bug is fixed. Change view to "Fit a Single Page." Go back to pg. 2, and press the citation link. It will jump to pg. 18. It's not immediate to find the author, especially if you didn't memorize the citation details. It would be helpful to put a red dot to mark the location that the link jumped to.

zoharl3 avatar Aug 19 '25 20:08 zoharl3

related https://github.com/sumatrapdfreader/sumatrapdf/issues/3426

@kjk This Rect[148.584 location works in 3.5.2 but not 3.6 pre-release

158 0 obj
<</Type/Annot/Subtype/Link/A<</D(cite.pomerleau2015review)/S/GoTo>>/Border[0 0 0]/C[0 1 0]/H/I/Rect[148.584 502.96 210.754 513.394]>>
endobj

GitHubRulesOK avatar Aug 20 '25 00:08 GitHubRulesOK