[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[7934] \partentry encourage breaking before heading
From: |
gavinsmith0123 |
Subject: |
[7934] \partentry encourage breaking before heading |
Date: |
Sun, 20 Aug 2017 16:06:31 -0400 (EDT) |
Revision: 7934
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7934
Author: gavin
Date: 2017-08-20 16:06:30 -0400 (Sun, 20 Aug 2017)
Log Message:
-----------
\partentry encourage breaking before heading
Modified Paths:
--------------
trunk/ChangeLog
trunk/doc/texinfo.tex
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2017-08-19 20:00:57 UTC (rev 7933)
+++ trunk/ChangeLog 2017-08-20 20:06:30 UTC (rev 7934)
@@ -1,3 +1,12 @@
+2017-08-20 Gavin Smith <address@hidden>
+
+ * doc/texinfo.tex (\partentry): Add stretch and a bonus for
+ breaking the page before the part heading in the table of
+ contents. Arnold Robbins reported that the page could be broken
+ immediately after the part heading, which separated it from the
+ entry for the first chapter in that part, which didn't look
+ good.
+
2017-08-18 Gavin Smith <address@hidden>
* po_document: Run fix-translations.sh.
Modified: trunk/doc/texinfo.tex
===================================================================
--- trunk/doc/texinfo.tex 2017-08-19 20:00:57 UTC (rev 7933)
+++ trunk/doc/texinfo.tex 2017-08-20 20:06:30 UTC (rev 7934)
@@ -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 @@
% 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{%
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [7934] \partentry encourage breaking before heading,
gavinsmith0123 <=