Talk:LaTeX/Indexing

= makeidx is obsolete =

`makeidx` is woefully obsolete. It's one of the few pieces of software left that can't handle Unicode, and this has been unacceptable for ages now. It should not be recommended or even explained here. A modern alternative, like `texindy` should be provided and explained instead.

= Texindy, hyperref and textbf, textit modifiers = To allow texindy to process  files and to have hyperlinks in index you have to pre- and post-process files used by texindy.

First, the pre-processor, :
 * 1) !/usr/bin/perl

unless ($ARGV[0] =~ /\.idx$/){ print "\nUsage:\n"; print "texindy-post.pl file.idx\n\n"; print "This script will work only for unprocessed LaTeX .idx files.\n"; print "It is the first script in series, to pre process files so they can\n"; print "be processed by TeXindy.\n"; print "\nTogether with texindy-post.pl it works around the \"\\hyperindexformat{}\"\n"; print "deficiency in TeXindy, making it possible to use \"textbf\" and \"texit\"\n"; print "modifiers in \"\\index{}\" command together with \'hyperref\' package\n"; }

open(DATA, "< $ARGV[0]") or die "\nCan't open file for reading: $!\n";
 * 1) All lines must be read by Perl so that no scratch files need to be used

@lines = :
 * 1) !/usr/bin/perl

unless ($ARGV[0] =~ /\.ind$/){ print "\nUsage:\n"; print "texindy-post.pl file.ind\n\n"; print "This script will work only for processed LaTeX .ind files.\n"; print "It is the second script in series, to post process files after they have\n"; print "been processed by TeXindy.\n"; print "\nTogether with texindy-pre.pl it works around the \"\\hyperindexformat{}\"\n"; print "deficiency in TeXindy, making it possible to use \"textbf\" and \"texit\"\n"; print "modifiers in \"\\index{}\" command together with \'hyperref\' package\n"; }

open(DATA, "< $ARGV[0]") or die "\nCan't open file for reading: $!\n";
 * 1) All lines must be read by Perl so that no scratch files need to be used

@lines =  and the project is written in polish, use this commands to generate dvi file with correct index: latex main ./texindy-pre.pl main.idx texindy -M lang/polish/utf8 -I latex 'main.idx' ./texindy-post.pl main.ind latex main

---

It would be very helpful if the lines about multiple indices would add that makeindex filename has to be run twice (or even more often) as well.

= Index in TOC =

I don't know why, but the section http://en.wikibooks.org/wiki/LaTeX/Indexing#Adding_index_to_table_of_contents is not necessary, at least I don't know when that lines are needed. I've tried 'standard' index as well as `multind' and I get indices in my TOC automatically. --79.154.142.115 (discuss) 17:19, 8 January 2014 (UTC)

= Multiple indices with: imakeidx =

An alternative to multind is imakeidx. See http://mirrors.ctan.org/macros/latex/contrib/imakeidx/imakeidx.pdf
 * An entry was added to describe . See the "Latest Draft" tab. --Hops Splurt (discuss • contribs) 05:11, 5 May 2019 (UTC)

= multind vs. something newer =

Note to self: Replace the  stuff with a more recent package.--Johannes Bo (discuss • contribs) 15:20, 27 September 2017 (UTC)

= makeidx: Package or option to \documentstyle? =

On this page (in the section "Using makeidx")  is described as a package, and must be invoked with the command. But the manual for makeindex, which describes the same commands as the page text states that to use it you must add   to the list of options of the   command. On the other hand, that manual is from 1987, and speaks of the "\documentstyle" command, which has presumably been superseeded by the  command. There is a package called, but this is a LaTeX2e package which only provides the  and   commands.

Can anyone find out if the way to invoke  is correctly described on the page? --Hops Splurt (discuss • contribs) 06:48, 5 May 2019 (UTC)


 * As you know, LaTeX2e is the current LaTeX for over 25 years. Using  is obsolete just as long. Use   by loading it with , it just provides few extra commands. The rest is provided by basic LaTeX. Be sure to run the proper external tool to get the index sorted out. --Johannes Bo (discuss • contribs) 05:32, 12 May 2019 (UTC)