Skip to content

Preview numbered citations in PDFs without links - #38

Merged
Gram21 merged 2 commits into
Gram21:mainfrom
koppor:text-citation-preview
Sep 21, 2026
Merged

Gram21 merged 2 commits into
Gram21:mainfrom
koppor:text-citation-preview

Conversation

@koppor

@koppor koppor commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

🤖 PDFs downloaded from publisher portals such as IEEE Xplore have their citation links stripped, so hovering a citation like [3] showed no preview. Numbered citations in plain text now preview their reference entry, and reference previews on narrow two-column layouts no longer include the neighbouring column. Author-year citations are not covered yet.

Test: open an IEEE Xplore PDF whose citations are not clickable and hover a [N] citation.
Test: hover citation links in samples/pdfs/KeimKaplan_FromScatteredToStructured.pdf; previews still appear.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Vzuf44Kh6QFFJtEKoMgug7

Publisher-processed PDFs such as IEEE Xplore downloads drop their citation links, so hovering [3] showed nothing. Plain-text numbered citations now preview their reference entry, and reference previews no longer spill into the neighbouring column on narrow two-column layouts.
In tightly set reference lists the preview's top padding showed the last line of the entry above.
@koppor
koppor marked this pull request as ready for review September 14, 2026 07:42
@koppor
koppor requested a review from Gram21 as a code owner September 14, 2026 07:42
@Gram21 Gram21 self-assigned this Sep 21, 2026
@Gram21

Gram21 commented Sep 21, 2026

Copy link
Copy Markdown
Owner

Thanks for your contribution. The changes look good to me :-)

@Gram21
Gram21 merged commit 4c267ec into Gram21:main Sep 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants