At 11:23 AM +0200 15/6/98, Alain Nadeau wrote:
>Dear LaTeX2html users,
>
>The index file to the project I'm working on will be fairly large (+3MB)
>and includes several thousand cross-references. Would it be feasible to
>modify makeidx.pl (or any other file, for all I know) in a way that this
>index file will be segmented into 26 'smaller' files (for instance
>indexa.html, indexb.html etc.)? I'm not much of a perl pro, I'm afraid
>(the more heartfelt my gratefulness for any assistance!)

This sort of thing has been requested before.
Indeed multiple indexes, according to particular types of data being indexed,
is a fairly natural thing.
There are several LaTeX packages to do this.

One day I'll modify  makeidx.perl  to cope with these...

...unless someone else does it first.  ;-)


The next version  v98.2  already recognises an optional argument for \index
commands, but currently just discards it.
(see  index.sty  by  David Jones; pp.367--369 of The LaTeX Companion)

It wouldn't be too hard to combine the optional argument as a prefix to the
index key. Then it would be rather easy to code the sorting and extraction
of the appropriate index-entries for each prefix.

Else a separate hash for each prefix would be more efficient, I guess.


Presumably with your 3Mb+ of indexing there is a meaningful way to break it up
into separate Indexes. Even if just alphabetical, you must be using macros to
generate most of these entries --- so include an optional argument,
then point me at your document source. (I estimate roughly a day's work.)


Hope this helps,

        Ross Moore



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ross Moore                             email: [EMAIL PROTECTED]
Mathematics Department                 phone:      +612 9850 8955
Macquarie University                     fax:      +612 9850 8114
Sydney, NSW 2109                      office:             E7A-419
Australia              WWW: http://www-math.mpce.mq.edu.au/~ross/

                ***************************

for the best in (La)TeX-nical typesetting and Web page production
join the  TeX Users Group (TUG) --- browse at  http://www.tug.org

                 <[EMAIL PROTECTED]>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Reply via email to