post-CRC corrections
authorlcp
Tue, 03 May 1994 18:27:30 +0200
changeset 357 a2c5cd25906e
parent 356 2e6545875982
child 358 df8f0fbf7dbd
post-CRC corrections
doc-src/sedindex
--- a/doc-src/sedindex	Tue May 03 18:12:54 1994 +0200
+++ b/doc-src/sedindex	Tue May 03 18:27:30 1994 +0200
@@ -5,15 +5,18 @@
 #  puts strings prefixed by * into \tt font
 #    terminator characters for strings are |!@{}
 #
-# change *"X"Y"Z"W  to  "X"Y"Z"W@{\tt "X"Y"Z"W}
-# change *"X"Y"Z    to  "X"Y"Z@{\tt "X"Y"Z}
-# change *"X"Y      to  "X"Y@{\tt "X"Y}
-# change *"X        to  "X@{\tt "X}
-# change *IDENT  to  IDENT@{\tt IDENT}  
+# uses \ptt instead of \tt since that happens to explicit \tt's 
+# a space terminates the \tt part to allow \index{*NE theorem}, etc.
+#
+# change *"X"Y"Z"W  to  "X"Y"Z"W@{\ptt "X"Y"Z"W}
+# change *"X"Y"Z    to  "X"Y"Z@{\ptt "X"Y"Z}
+# change *"X"Y      to  "X"Y@{\ptt "X"Y}
+# change *"X        to  "X@{\ptt "X}
+# change *IDENT  to  IDENT@{\ptt IDENT}  
 #    where IDENT is any string not containing | ! or @
 # FOUR backslashes: to escape the shell AND sed
-sed -e "s~\*\(\".\".\".\".\)~\1@{\\\\tt \1}~g
-s~\*\(\".\".\".\)~\1@{\\\\tt \1}~g
-s~\*\(\".\".\)~\1@{\\\\tt \1}~g
-s~\*\(\".\)~\1@{\\\\tt \1}~g
-s~\*\([^|!@{}][^|!@{}]*\)~\1@{\\\\tt \1}~g" $1.idx | makeindex -q -o $1.ind
+sed -e "s~\*\(\".\".\".\".\)~\1@{\\\\ptt \1}~g
+s~\*\(\".\".\".\)~\1@{\\\\ptt \1}~g
+s~\*\(\".\".\)~\1@{\\\\ptt \1}~g
+s~\*\(\".\)~\1@{\\\\ptt \1}~g
+s~\*\([^ |!@{}][^ |!@{}]*\)~\1@{\\\\ptt \1}~g" $1.idx | makeindex -c -q -o $1.ind