diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-08-21 21:13:29 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-08-21 21:13:29 +0300 |
commit | e4ab458bf2f3e15e9f826daebd5996f32286558d (patch) | |
tree | b459014a7777f8734097fc188312bfe3a9e75a1a | |
parent | 41731583cbc39252b9666539810e0bf231086fea (diff) | |
download | egawk-e4ab458bf2f3e15e9f826daebd5996f32286558d.tar.gz egawk-e4ab458bf2f3e15e9f826daebd5996f32286558d.tar.bz2 egawk-e4ab458bf2f3e15e9f826daebd5996f32286558d.zip |
Update texinfo.tex for TOC fix.
-rw-r--r-- | doc/ChangeLog | 5 | ||||
-rw-r--r-- | doc/texinfo.tex | 12 |
2 files changed, 15 insertions, 2 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog index 37706ff7..516e0667 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,8 @@ +2017-08-21 Arnold D. Robbins <arnold@skeeve.com> + + * texinfo.tex: Updated. Fixes table of contents issue + with Part header. + 2017-08-17 Arnold D. Robbins <arnold@skeeve.com> * gawktexi.in: Document Marco Curreli's contribution of diff --git a/doc/texinfo.tex b/doc/texinfo.tex index 3844333f..587f7a39 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{2017-07-04.16} +\def\texinfoversion{2017-08-20.20} % % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, @@ -6943,7 +6943,15 @@ end % exist, with an empty box. Let's hope all the numbers have the same width. % Also ignore the page number, which is conventionally not printed. \def\numeralbox{\setbox0=\hbox{8}\hbox to \wd0{\hfil}} -\def\partentry#1#2#3#4{\dochapentry{\numeralbox\labelspace#1}{}} +\def\partentry#1#2#3#4{% + % Add stretch and a bonus for breaking the page before the part heading. + % This reduces the chance of the page being broken immediately after the + % part heading, before a following chapter heading. + \vskip 0pt plus 5\baselineskip + \penalty-300 + \vskip 0pt plus -5\baselineskip + \dochapentry{\numeralbox\labelspace#1}{}% +} % % Parts, in the short toc. \def\shortpartentry#1#2#3#4{% |