[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[6729] zero \topskip for double column layout
From: |
Gavin D. Smith |
Subject: |
[6729] zero \topskip for double column layout |
Date: |
Wed, 28 Oct 2015 11:14:47 +0000 |
Revision: 6729
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6729
Author: gavin
Date: 2015-10-28 11:14:43 +0000 (Wed, 28 Oct 2015)
Log Message:
-----------
zero \topskip for double column layout
Modified Paths:
--------------
trunk/ChangeLog
trunk/doc/texinfo.tex
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2015-10-27 10:17:14 UTC (rev 6728)
+++ trunk/ChangeLog 2015-10-28 11:14:43 UTC (rev 6729)
@@ -1,3 +1,14 @@
+2015-10-28 Gavin Smith <address@hidden>
+
+ * doc/texinfo.tex (\begindoublecolumns): Set \topskip to 0pt.
+ This avoids a smaller gap appearing at the top of a column due
+ to a long index entry in a vbox with a large height.
+ (\pagesofar): Add a gap above the columns close to what \topskip
+ did before.
+ (\entry): Increase threshold for a long line.
+ (\insertindexentrybox): Reduce \lineskip.
+
+
2015-10-27 Gavin Smith <address@hidden>
* doc/texinfo.tex (\entry): When deciding whether an entry will
Modified: trunk/doc/texinfo.tex
===================================================================
--- trunk/doc/texinfo.tex 2015-10-27 10:17:14 UTC (rev 6728)
+++ trunk/doc/texinfo.tex 2015-10-28 11:14:43 UTC (rev 6729)
@@ -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{2015-10-27.10}
+\def\texinfoversion{2015-10-28.11}
%
% Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
% 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
@@ -5294,7 +5294,7 @@
address@hidden by -1\entryrightmargin
address@hidden by address@hidden
\ifdim\wd\boxA > address@hidden % If the entry doesn't fit in one line
- \ifdim\dimen@ > address@hidden % due to long index text
+ \ifdim\dimen@ > address@hidden % due to long index text
\dimen@ = 0.7\dimen@ % Try to split the text roughly evenly
address@hidden = \hsize
\advance address@hidden by -1em
@@ -5333,7 +5333,7 @@
\newbox\entryindexbox
\def\insertindexentrybox{%
-\lineskip=.8ex plus .6ex % This comes into effect when the \vbox has a large
+\lineskip=.4ex plus .3ex % This comes into effect when the \vbox has a large
% height due to the paragraph in it having several
% lines.
\box\entryindexbox}
@@ -5391,6 +5391,8 @@
\newbox\partialpage
\newdimen\doublecolumnhsize
+\newdimen\doublecolumntopgap
+\doublecolumntopgap = 0pt
\newtoks\savedtopmark % Used in \begindoublecolumns
\newtoks\savedfirstmark
@@ -5458,7 +5460,11 @@
%
% Double the \vsize as well. (We don't need a separate register here,
% since nobody clobbers \vsize.)
+ \global\doublecolumntopgap = \topskip
+ \global\advance\doublecolumntopgap by -1\baselineskip
+ \global\advance\vsize by -1\doublecolumntopgap
\vsize = 2\vsize
+ \topskip=0pt
}
% The double-column output routine for all double-column pages except
@@ -5487,10 +5493,13 @@
%
\hsize = \doublecolumnhsize
\wd0=\hsize \wd2=\hsize
- \hbox to\pagewidth{\box0\hfil\box2}%
+ \vbox{%
+ \vskip\doublecolumntopgap
+ \hbox to\pagewidth{\box0\hfil\box2}}%
}
-%
-% All done with double columns.
+
+
+% Finished with with double columns.
\def\enddoublecolumns{%
% The following penalty ensures that the page builder is exercised
% _before_ we change the output routine. This is necessary in the
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [6729] zero \topskip for double column layout,
Gavin D. Smith <=