texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[7229] fix blank page in index


From: gavinsmith0123
Subject: [7229] fix blank page in index
Date: Sat, 18 Jun 2016 21:01:41 +0000 (UTC)

Revision: 7229
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7229
Author:   gavin
Date:     2016-06-18 21:01:41 +0000 (Sat, 18 Jun 2016)
Log Message:
-----------
fix blank page in index

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/doc/texinfo.tex

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2016-06-16 19:59:28 UTC (rev 7228)
+++ trunk/ChangeLog     2016-06-18 21:01:41 UTC (rev 7229)
@@ -1,3 +1,11 @@
+2016-06-18  Gavin Smith  <address@hidden>
+
+       * doc/texinfo.tex (\balancecolumns): If the left column is 
+       longer than the page height, split the last double column 
+       material roughly in half.  Otherwise, a blank page could appear 
+       before the last page of an index.  Blank page in index reported 
+       by Robert Weiner.
+
 2016-06-14  Gavin Smith  <address@hidden>
 
        * tp/Texinfo/Parser.pm (_parse_texi) <@U>: Change the error 

Modified: trunk/doc/texinfo.tex
===================================================================
--- trunk/doc/texinfo.tex       2016-06-16 19:59:28 UTC (rev 7228)
+++ trunk/doc/texinfo.tex       2016-06-18 21:01:41 UTC (rev 7229)
@@ -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{2016-06-07.21}
+\def\texinfoversion{2016-06-18.21}
 %
 % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
 % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
@@ -5964,18 +5964,32 @@
         \global\advance\dimen@ by 1pt
       \repeat
     }%
-    address@hidden by 4
-    address@hidden by 5
-    \ifdim\ht3<address@hidden
-      % Column heights are too different, so don't make their bottoms
-      % flush with each other.  The glue at the end of the second column
-      % allows a second column to stretch, reducing the difference in
-      % height between the two.
-      \setbox0=\vbox address@hidden
-      \setbox2=\vbox address@hidden 0pt plus 0.3\ht0}%
+    \ifdim2\ht1>\vsize
+      % The left column has come out longer than the page itself.  (Note
+      % that we have doubled \vsize for the double columns, so
+      % the actual height of the page is 0.5\vsize).  Just split the last
+      % of the double column material roughly in half.
+      \setbox2=\box0
+      \setbox0 = \vsplit2 to address@hidden
+      \setbox0=\vbox address@hidden
+      \setbox2=\vbox address@hidden
     \else
-      \setbox0=\vbox address@hidden
-      \setbox2=\vbox address@hidden
+      address@hidden by 5
+      address@hidden by 4
+      \global\setbox3 = \copy0
+      \global\setbox1 = \vsplit3 to address@hidden
+      \global\setbox\balancedcolumns=\vbox{\pagesofar}%
+      \ifdim\ht3<address@hidden
+        % Column heights are too different, so don't make their bottoms
+        % flush with each other.  The glue at the end of the second column
+        % allows a second column to stretch, reducing the difference in
+        % height between the two.
+        \setbox0=\vbox address@hidden
+        \setbox2=\vbox address@hidden 0pt plus 0.3\ht0}%
+      \else
+        \setbox0=\vbox address@hidden
+        \setbox2=\vbox address@hidden
+      \fi
     \fi
   \fi
   %




reply via email to

[Prev in Thread] Current Thread [Next in Thread]