Fix TOC/bookmark hyperlink anchors for abstract and A1/A2/A4 pages#58
Draft
Copilot wants to merge 2 commits into
Draft
Fix TOC/bookmark hyperlink anchors for abstract and A1/A2/A4 pages#58Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
Open
Add \phantomsection after \clearpage in \zhaiyao and \abstract so the
TOC/bookmark links to the abstract pages land on the correct page.
Add \cleardoublepage\phantomsection before \printbibliography (A1),
\chapter*{致谢} (A2), and \chapter*{个人简历...} (A4) so the
auto-generated TOC entries for those unnumbered chapters point to the
right pages instead of the previous chapter.
Agent-Logs-Url: https://github.com/NewFuture/NKThesis/sessions/8e9be925-c4b2-4a16-9c43-53e559ac53ce
Co-authored-by: NewFuture <6290356+NewFuture@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix directory and bookmark hyperlink issue
Fix TOC/bookmark hyperlink anchors for abstract and A1/A2/A4 pages
Apr 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TOC entries and PDF bookmarks for the abstract (摘要/Abstract) and the unnumbered chapters in A1 (references), A2 (acknowledgements) and A4 (resume) jumped to the wrong page, because each
\addcontentsline/\chapter*was preceded by a\clearpagewith no\phantomsection, sohyperrefrecorded the anchor on the previous page.Changes
NKThesis.cfg— insert\phantomsectionafter\clearpageinside\zhaiyaoand\abstract.tex/A1_references.tex—\cleardoublepage\phantomsectionbefore\printbibliography.tex/A2_acknowledgements.tex—\cleardoublepage\phantomsectionbefore\chapter*{致谢}.tex/A4_resume.tex—\cleardoublepage\phantomsectionbefore\chapter*{个人简历…}.tex/A3_appendices.texleft untouched (empty template, no heading to anchor).hyperrefis already loaded byNKThesis.sty, so\phantomsectionis available.Example