(\indexfonts): Make leading be 12pt. Otherwise, it's too crammed. (\smalllispx): Remove \setleading{10pt}. That was too small. (\doprintindex): Do not call \tex ... \Etex. Index files are Texinfo source, not TeX source, except for using \ instead of @ as the escape character (for now).

This commit is contained in:
Karl Berry 1996-07-29 19:08:10 +00:00
parent 6b3a222416
commit ea6631a23d

View File

@ -35,7 +35,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: 1.2 $ \deftexinfoversion$Revision: 1.3 $
\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
@ -1148,7 +1148,7 @@ where each line of input produces a line of output.}
\let\tenrm=\indrm \let\tenit=\indit \let\tensl=\indsl \let\tenrm=\indrm \let\tenit=\indit \let\tensl=\indsl
\let\tenbf=\indbf \let\tentt=\indtt \let\smallcaps=\indsc \let\tenbf=\indbf \let\tentt=\indtt \let\smallcaps=\indsc
\let\tensf=\indsf \let\teni=\indi \let\tensy=\indsy \let\tenttsl=\indttsl \let\tensf=\indsf \let\teni=\indi \let\tensy=\indsy \let\tenttsl=\indttsl
\resetmathfonts \setleading{10pt}} \resetmathfonts \setleading{12pt}}
% Set up the default fonts, so we can use them for creating boxes. % Set up the default fonts, so we can use them for creating boxes.
% %
@ -2288,26 +2288,17 @@ width0pt\relax} \fi
\def\printindex{\parsearg\doprintindex} \def\printindex{\parsearg\doprintindex}
\def\doprintindex#1{% \def\doprintindex#1{\begingroup
\tex \dobreak \chapheadingskip{10000}%
\dobreak \chapheadingskip {10000}
\catcode`\%=\other\catcode`\&=\other\catcode`\#=\other
\catcode`\$=\other
\catcode`\~=\other
\indexbreaks
% %
% The following don't help, since the chars were translated \indexfonts \rm
% when the raw index was written, and their fonts were discarded \tolerance = 9500
% due to \indexnofonts. \indexbreaks
%\catcode`\"=\active \def\indexbackslash{\rawbackslashxx}%
%\catcode`\^=\active % Index files are almost Texinfo source, but we use \ as the escape
%\catcode`\_=\active % character. It would be better to use @, but that's too big a change
%\catcode`\|=\active % to make right now.
%\catcode`\<=\active \catcode`\\ = 0
%\catcode`\>=\active
% %
\def\indexbackslash{\rawbackslashxx}
\indexfonts\rm \tolerance=9500 \advance\baselineskip -1pt
\begindoublecolumns \begindoublecolumns
% %
% See if the index file exists and is nonempty. % See if the index file exists and is nonempty.
@ -2318,7 +2309,7 @@ width0pt\relax} \fi
% index. The easiest way to prevent this problem is to make sure % index. The easiest way to prevent this problem is to make sure
% there is some text. % there is some text.
(Index is nonexistent) (Index is nonexistent)
\else \else
% %
% If the index file exists but is empty, then \openin leaves \ifeof % If the index file exists but is empty, then \openin leaves \ifeof
% false. We have to make TeX try to read something from the file, so % false. We have to make TeX try to read something from the file, so
@ -2332,8 +2323,7 @@ width0pt\relax} \fi
\fi \fi
\closein 1 \closein 1
\enddoublecolumns \enddoublecolumns
\Etex \endgroup}
}
% These macros are used by the sorted index file itself. % These macros are used by the sorted index file itself.
% Change them to control the appearance of the index. % Change them to control the appearance of the index.
@ -3433,8 +3423,7 @@ width0pt\relax} \fi
\let\Esmalllisp = \nonfillfinish \let\Esmalllisp = \nonfillfinish
\let\Esmallexample = \nonfillfinish \let\Esmallexample = \nonfillfinish
% %
% Smaller interline space and fonts for small examples. % Smaller fonts for small examples.
\setleading{10pt}%
\indexfonts \tt \indexfonts \tt
\rawbackslash % make \ output the \ character from the current font (tt) \rawbackslash % make \ output the \ character from the current font (tt)
\gobble \gobble