summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@gnu.org>1998-07-17 12:00:43 +0000
committerKarl Berry <karl@gnu.org>1998-07-17 12:00:43 +0000
commit99454e6a1eb49fa9718d5b7a1717607645ad4da1 (patch)
treede3f1cf163079ba6b21f4ce0d6a02fd43e4594ba
parent411a01acce76d1824806fe7465048ca452c9b3c5 (diff)
downloadgunmake-99454e6a1eb49fa9718d5b7a1717607645ad4da1.tar.gz
* texinfo.tex: Keep track of how negative the page numbers have
gotten: (\lastnegativepageno): New \count register. (\startcontents): Use it. (\contents, \summarycontents): set it.
-rw-r--r--texinfo.tex11
1 files changed, 8 insertions, 3 deletions
diff --git a/texinfo.tex b/texinfo.tex
index fef899b..6d59772 100644
--- a/texinfo.tex
+++ b/texinfo.tex
@@ -3403,10 +3403,13 @@ width0pt\relax} \fi
\iflinks \write\tocfile{#1{\folio}}\fi
}
-% Finish up the main text and prepare to read what we've written
-% to \tocfile.
\newskip\contentsrightmargin \contentsrightmargin=1in
\newcount\savepageno
+\newcount\lastnegativepageno \lastnegativepageno = -1
+
+% Finish up the main text and prepare to read what we've written
+% to \tocfile.
+%
\def\startcontents#1{%
% If @setchapternewpage on, and @headings double, the contents should
% start on an odd page, unlike chapters. Thus, we maintain
@@ -3428,7 +3431,7 @@ width0pt\relax} \fi
\advance\hsize by -\contentsrightmargin % Don't use the full line length.
%
% Roman numerals for page numbers.
- \ifnum \pageno>0 \pageno = -1 \fi
+ \ifnum \pageno>0 \pageno = \lastnegativepageno \fi
}
@@ -3442,6 +3445,7 @@ width0pt\relax} \fi
\fi
\vfill \eject
\endgroup
+ \lastnegativepageno = \pageno
\pageno = \savepageno
}
@@ -3470,6 +3474,7 @@ width0pt\relax} \fi
\fi
\vfill \eject
\endgroup
+ \lastnegativepageno = \pageno
\pageno = \savepageno
}
\let\shortcontents = \summarycontents