Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!usc!buddha.usc.edu!rkumar From: rkumar@buddha.usc.edu (C.P. Ravikumar (Ravikumar Chennagiri)) Newsgroups: comp.unix.questions Subject: Creating an Index in LaTeX Message-ID: <18674@usc.edu> Date: 21 Jul 89 21:57:06 GMT Sender: news@usc.edu Reply-To: rkumar@buddha.usc.edu (C.P. Ravikumar) Distribution: usa Organization: University of Southern California, Los Angeles, CA Lines: 31 Generation of Index in latex documents. The .idx file generated by latex has entries of the form. \indexentry{Annealing}{14} \indexentry{Annealing}{24} \indexentry{Annealing}{25} \indexentry{Approximation}{16} \indexentry{Approximation}{18} \indexentry{Approximation}{19} \indexentry{Approximation}{31} \indexentry{Approximation}{33} \indexentry{Approximation}{3} Can we write an awk macro which converts this to : \item {Annealing }{14,24,25 } \item {Approximation }{3,16,18,19,31,33} I am suggesting awk because it is the only program which I know to solve such problems. There are probably other (better) ways. Ravi --------------------------------------------------- > C.P. Ravikumar > What are the implications of P = NP ? SAL 337, EE-Sys USC, LA, CA > That N = 1. 90089-0781