(see ChangeLog for Oct 29.)

This commit is contained in:
Karl Berry 1996-11-05 19:52:23 +00:00
parent 23a01afea2
commit f5311448f8
1 changed files with 26 additions and 8 deletions

View File

@ -1,5 +1,5 @@
%% TeX macros to handle Texinfo files. %% TeX macros to handle Texinfo files.
%% $Id: texinfo.tex,v 2.186 1996/11/05 19:51:16 karl Exp $ %% $Id: texinfo.tex,v 2.187 1996/11/05 19:52:23 karl Exp $
% Copyright (C) 1985, 86, 88, 90, 91, 92, 93, % Copyright (C) 1985, 86, 88, 90, 91, 92, 93,
% 94, 95, 1996 Free Software Foundation, Inc. % 94, 95, 1996 Free Software Foundation, Inc.
@ -36,7 +36,7 @@
% This automatically updates the version number based on RCS. % This automatically updates the version number based on RCS.
\def\deftexinfoversion$#1: #2 ${\def\texinfoversion{#2}} \def\deftexinfoversion$#1: #2 ${\def\texinfoversion{#2}}
\deftexinfoversion$Revision: 2.186 $ \deftexinfoversion$Revision: 2.187 $
\message{Loading texinfo package [Version \texinfoversion]:} \message{Loading texinfo package [Version \texinfoversion]:}
% If in a .fmt file, print the version number % If in a .fmt file, print the version number
@ -137,22 +137,37 @@
% %
%---------------------End change----------------------- %---------------------End change-----------------------
% Main output routine.
\chardef\PAGE = 255
\output = {\onepageout{\pagecontents\PAGE}}
\newbox\headlinebox \newbox\footlinebox
% \onepageout takes a vbox as an argument. Note that \pagecontents % \onepageout takes a vbox as an argument. Note that \pagecontents
% does insertions, but you have to call it yourself. % does insertions, but you have to call it yourself.
\chardef\PAGE=255 \output={\onepageout{\pagecontents\PAGE}}
\def\onepageout#1{% \def\onepageout#1{%
\hoffset=\normaloffset \hoffset=\normaloffset
\ifodd\pageno \advance\hoffset by \bindingoffset \ifodd\pageno \advance\hoffset by \bindingoffset
\else \advance\hoffset by -\bindingoffset\fi \else \advance\hoffset by -\bindingoffset\fi
%
% Do this outside of the \shipout so @code etc. will be expanded in
% the headline as they should be, not taken literally (outputting ''code).
\setbox\headlinebox = \vbox{\let\hsize=\pagewidth \makeheadline}%
\setbox\footlinebox = \vbox{\let\hsize=\pagewidth \makefootline}%
%
{% {%
% Have to do this stuff outside the \shipout because we want it to
% take effect in \write's, yet the group defined by the \vbox ends
% before the \shipout runs.
%
\escapechar = `\\ % use backslash in output files. \escapechar = `\\ % use backslash in output files.
\indexdummies % don't expand commands in the output. \indexdummies % don't expand commands in the output.
\normalturnoffactive % \ in index entries must not stay \, e.g., if \normalturnoffactive % \ in index entries must not stay \, e.g., if
% the page break happens to be in the middle of an example. % the page break happens to be in the middle of an example.
\shipout\vbox{% \shipout\vbox{%
{\let\hsize=\pagewidth \makeheadline}% \unvbox\headlinebox
\pagebody{#1}% \pagebody{#1}%
{\let\hsize=\pagewidth \makefootline}% \unvbox\footlinebox
}% }%
}% }%
\advancepageno \advancepageno
@ -2045,7 +2060,10 @@ July\or August\or September\or October\or November\or December\fi
% The table preamble % The table preamble
% looks at the current \colcount to find the correct column width. % looks at the current \colcount to find the correct column width.
\global\everycr{\noalign{% \global\everycr{\noalign{%
\filbreak%% keeps underfull box messages off when table breaks over pages. % \filbreak%% keeps underfull box messages off when table breaks over pages.
% Maybe so, but it also creates really weird page breaks when the table
% breaks over pages Wouldn't \vfil be better? Wait until the problem
% manifests itself, so it can be fixed for real --karl.
\global\colcount=0\relax}} \global\colcount=0\relax}}
} }