play with index as well
authorJohn Kohl <jtkohl@mit.edu>
Wed, 30 May 1990 11:55:27 +0000 (11:55 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Wed, 30 May 1990 11:55:27 +0000 (11:55 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@961 dc483132-0cff-0310-8789-dd5450dbe970

doc/api/fixunder.sty
doc/implement/fixunder.sty

index fae8a59f9635a67ba1d93e70deae1e0a68a06066..30c006d7ef3e5d578ec7c12aa63ed6acfa595838 100644 (file)
@@ -1,6 +1,20 @@
 %
 % re-define _ to be normal, and to provide a reasonable underscore.
 %
+\catcode`\_=12
+\def\cctwlunder{_}
+
 \catcode`\_=\active
 \def\_{_}
 \def_{\leavevmode {\tt \char95}}
+%
+% fix up index commands to deal with active _
+% from LATEX.TEX:
+% LATEX VERSION 2.09 <4 Aug 1988>, Copyright (C) 1988 by Leslie Lamport
+
+\def\makeindex{\if@filesw \newwrite\@indexfile
+  \immediate\openout\@indexfile=\jobname.idx
+  \def\index{\let_=\cctwlunder\@bsphack\begingroup
+             \def\protect####1{\string####1\space}\@sanitize
+             \@wrindex\@indexfile}\typeout
+  {Writing index file \jobname.idx }\fi}
index fae8a59f9635a67ba1d93e70deae1e0a68a06066..30c006d7ef3e5d578ec7c12aa63ed6acfa595838 100644 (file)
@@ -1,6 +1,20 @@
 %
 % re-define _ to be normal, and to provide a reasonable underscore.
 %
+\catcode`\_=12
+\def\cctwlunder{_}
+
 \catcode`\_=\active
 \def\_{_}
 \def_{\leavevmode {\tt \char95}}
+%
+% fix up index commands to deal with active _
+% from LATEX.TEX:
+% LATEX VERSION 2.09 <4 Aug 1988>, Copyright (C) 1988 by Leslie Lamport
+
+\def\makeindex{\if@filesw \newwrite\@indexfile
+  \immediate\openout\@indexfile=\jobname.idx
+  \def\index{\let_=\cctwlunder\@bsphack\begingroup
+             \def\protect####1{\string####1\space}\@sanitize
+             \@wrindex\@indexfile}\typeout
+  {Writing index file \jobname.idx }\fi}