[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: Link toc page numbers to exact location on page
From: |
Gavin D. Smith |
Subject: |
branch master updated: Link toc page numbers to exact location on page |
Date: |
Sat, 02 Nov 2024 07:46:21 -0400 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 5661fc4c01 Link toc page numbers to exact location on page
5661fc4c01 is described below
commit 5661fc4c01b6445a8b558e85316bdec61ee63d9d
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sat Nov 2 11:46:11 2024 +0000
Link toc page numbers to exact location on page
* doc/texinfo.tex: (\finishentry) [pdf or xetex]:
If \tocnodetarget is set, use it for the target of the page number,
rather than calling \pdfgettoks.
---
ChangeLog | 8 ++++++++
doc/texinfo.tex | 15 +++++++++++----
2 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 243832b604..d9cbfa517e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-11-02 Gavin Smith <gavinsmith0123@gmail.com>
+
+ Link toc page numbers to exact location on page
+
+ * doc/texinfo.tex: (\finishentry) [pdf or xetex]:
+ If \tocnodetarget is set, use it for the target of the page number,
+ rather than calling \pdfgettoks.
+
2024-11-01 Gavin Smith <gavinsmith0123@gmail.com>
LuaTeX ligature suppression
diff --git a/doc/texinfo.tex b/doc/texinfo.tex
index 7b41a62ab3..154c9966c1 100644
--- a/doc/texinfo.tex
+++ b/doc/texinfo.tex
@@ -3,7 +3,7 @@
% Load plain if necessary, i.e., if running under initex.
\expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
%
-\def\texinfoversion{2024-11-01.22}
+\def\texinfoversion{2024-11-02.10}
%
% Copyright 1985, 1986, 1988, 1990-2024 Free Software Foundation, Inc.
%
@@ -5632,11 +5632,18 @@ might help (with 'rm \jobname.?? \jobname.??s')%
%
\null\nobreak\indexdotfill % Have leaders before the page number.
%
+ \hskip\skip\thinshrinkable
\ifpdforxetex
- \pdfgettoks#1.%
- \hskip\skip\thinshrinkable\the\toksA
+ \ifx\tocnodetarget\empty
+ \pdfgettoks#1.%
+ \the\toksA
+ \else
+ % Should just be a single page number in toc
+ \startxreflink{\tocnodetarget}{}%
+ #1\endlink
+ \fi
\else
- \hskip\skip\thinshrinkable #1%
+ #1%
\fi
\fi
\egroup % end \boxA
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: Link toc page numbers to exact location on page,
Gavin D. Smith <=