X-VM-v5-Data: ([nil nil nil nil nil nil nil t nil] ["2399" "Mon" "12" "October" "92" "17:32:06" "BST" "David Carlisle" "carlisle@CS.MAN.AC.UK" nil "60" "Some thoughts on makeindex" nil nil nil "10"]) Return-Path: Received: from sc.ZIB-Berlin.DE (serv01) by dagobert.ZIB-Berlin.DE (4.1/SMI-4.0/1.9.92 ) id AA19697; Mon, 12 Oct 92 17:50:25 +0100 Received: from vm.urz.Uni-Heidelberg.de (vm.hd-net.uni-heidelberg.de) by sc.ZIB-Berlin.DE (4.0/SMI-4.0-sc/19.6.92) id AA25126; Mon, 12 Oct 92 17:48:50 +0100 Message-Id: <9210121648.AA25126@sc.zib-berlin.dbp.de> Received: from DHDURZ1 by vm.urz.Uni-Heidelberg.de (IBM VM SMTP V2R2) with BSMTP id 0688; Mon, 12 Oct 92 17:34:47 CET Received: from DHDURZ1 by DHDURZ1 (Mailer R2.08 R208004) with BSMTP id 0669; Mon, 12 Oct 92 17:34:39 CET Received: from DHDURZ1 by DHDURZ1 (Mailer R2.08 R208004) with BSMTP id 0666; Mon, 12 Oct 92 17:34:35 CET Reply-To: Mailing list for the LaTeX3 project In-Reply-To: "J%org Knappen"'s message of Mon, 12 Oct 92 17:10:33 CET <8756.9210121612@m1.cs.man.ac.uk> Date: Mon, 12 Oct 92 17:32:06 BST From: David Carlisle Sender: Mailing list for the LaTeX3 project To: Multiple Recipients of Subject: Some thoughts on makeindex Status: R X-Status: X-Keywords: X-UID: 861 >>>>> On Mon, 12 Oct 92 17:10:33 CET, "J%org Knappen" said: J%org> J%org> Many books contain several indices, formatted with different styles and J%org> having different headers. As do styles documented with doc.sty, (la)texinfo files etc.. J%org> J%org> We do not want to say makeindex -s person -o book.pes book.per, J%org> do we? Quite so. J%org> For the last step it is necessary, that the compiled index file must have J%org> an suffix which is algorithmically deducable. Here is a proposal which J%org> proceeds rather conservatively: J%org> J%org> If an index is created, the first three letters of the optional argument J%org> form the suffix of the file. The third letter must not be an `s' or a `g'. J%org> The sorted index will get the suffix .%%s, the loG-file the suffix .%%g J%org> (here %% stands for the first two letters). I do not like the idea of filling the directory up with lots of separate files, so I favour the `progressive proposal' J%org> Here is another, more progressive proposal: J%org> All index entries are written on one file (either the .aux or the .idx file) J%org> and marked with tags, saying to which index they belong. Running MakeIndex J%org> once will produce all index files (here it is good to have them in seperate J%org> files, because some text might occur in between the indices). The suffix J%org> could be the first three letters of the optional argument. J%org> Your argument for having the sorted indices in separate files sounds reasonable, but I would still like to consider the possibility of having them all in one file, with any text between the indices generated by style files options or commands. Currently makeindex allows three(?) levels of subitem. Text may be placed before the index, and between each letter group of the top-level items. The initial text, is usually something like 'index', and the text between each item, `A'. `B', Essentially all that seems to be required to do multiple indices in one file, is to allow these letter headings, to be printed between letter blocks of sub-items within an item. so the whole of a `person' index could be generated as sub-items of an entry `person' (this could be done now, with the current makeindex) what can not be done at present, is to specify a style that says that the `person' entry should be typeset as a separate index. David