summaryrefslogtreecommitdiff
path: root/texinfo.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@gnu.org>1998-02-25 22:54:34 +0000
committerKarl Berry <karl@gnu.org>1998-02-25 22:54:34 +0000
commit1290679bc372f82f0c9892fed2c85a9c3e390265 (patch)
tree13e4d8cc3ed8ed09792eaf5c0b8da5756af5c022 /texinfo.tex
parentdc70a3bc0ba57e8cd1e38bb7b89fc7a892f72987 (diff)
downloadgunmake-1290679bc372f82f0c9892fed2c85a9c3e390265.tar.gz
(\doprintindex): Change catcode of @ before \read, in case of
\initial{@} being the line that is read. Reported by: Drew Csillag <drew_csillag@geocities.com>
Diffstat (limited to 'texinfo.tex')
-rw-r--r--texinfo.tex6
1 files changed, 5 insertions, 1 deletions
diff --git a/texinfo.tex b/texinfo.tex
index 3dafe9c..1701ae1 100644
--- a/texinfo.tex
+++ b/texinfo.tex
@@ -2539,6 +2539,11 @@ width0pt\relax} \fi
\indexbreaks
%
% See if the index file exists and is nonempty.
+ % Change catcode of @ here so that if the index file contains
+ % \initial {@}
+ % as its first line, TeX doesn't complain about mismatched braces
+ % (because it thinks @} is a control sequence).
+ \catcode`\@ = 11
\openin 1 \jobname.#1s
\ifeof 1
% \enddoublecolumns gets confused if there is no text in the index,
@@ -2560,7 +2565,6 @@ width0pt\relax} \fi
% to make right now.
\def\indexbackslash{\rawbackslashxx}%
\catcode`\\ = 0
- \catcode`\@ = 11
\escapechar = `\\
\begindoublecolumns
\input \jobname.#1s