Path: utzoo!attcan!uunet!van-bc!jtc@van-bc.wimsey.bc.ca From: jtc@van-bc.wimsey.bc.ca (J.T. Conklin) Newsgroups: comp.text.tex Subject: LaTeX Indexing Message-ID: <486@van-bc.wimsey.bc.ca> Date: 8 Jun 90 18:47:25 GMT Sender: jtc@van-bc.wimsey.bc.ca Organization: UniFax Communications Inc., Vancouver, B.C., Canada Lines: 32 I have just finished the Administrator's Guide for our product, but need help with creating an index before I can send it off to the printers. I have set up macros like \code{}, and \file{}, which format the text in boldfacs and slant to give the reader visual cues about the nature (program or datafile) of what is being discussed in the text. \newcommand{\code}[1]{{\bf #1}} I then tried adding an \index{} in the \code{} definition, since we want the reader to be able to find the location of discussion about one of the programs in our package in the index. \newcommand{\code}[1]{{\bf #1}\index{#1}} This works fine, except that some of the \code{} macros start sentances, and that Capitalized entry is indexed. I tried using \lowercase{}, but it isn't evaluated until the index is printed. \newcommand{\code}[1]{{\bf #1}\index{\lowercase{#1}}} I looked all through the TeXbook and the LaTeXbook, and didn't find something like \eval{}, so I'm kind of stuck. I sent out our drafts by hand editing the *.idx file, but I don't want to have to do that all the time. Any help would be appreciated. Thank you, --jtc