Does anyone have an example of using makeindex with both a page number and a 'seealso', or with both a 'see' and a 'seealso'? I seem to be doing s.t. wrong, because makeindex complains at me when I try to do this, and it doesn't output what I expect.
Some details on what I'm trying to do: I am trying to use makeindex (v2.5) to create an index, and for the most part it works fine. I do have a couple glitches, however, with index entries like the ff.:
Demonstratives, see Pronouns, demonstrative; see also Determiners
But what I get instead is a warning:
## Warning (input = pashtoGrammar.idx, line = 292; output = pashtoGrammar.ind, line = 469):
-- Conflicting entries: multiple encaps for the same page under same key.
and the output
Demonstratives, , see Pronouns, demonstrative
That is, the 'seealso' command is ignored (except that it apparently outputs a comma), and only the 'see' command results in useful output. (Also, if that stray comma is indeed coming from the 'seealso', then why is it before the output of 'see' instead of after?)
namely the same warning msg, and only one of the two entries gets output, whereas I wanted something like
Verbs, subjunctive, 199; see also Irrealis
What do I need to do to get two index "entries" under one heading? Isn't this what 'seealso' is for?
In summary: what (I think)I need is a good example of the use of 'seealso' together with a 'see' or a page number; the documentation for makeindex seems not to have that, just examples of 'see' or 'seealso' by themselves.
## Warning (input = indexBug.idx, line = 4; output = indexBug.ind, line = 3):
-- Conflicting entries: multiple encaps for the same page under same key.
## Warning (input = indexBug.idx, line = 7; output = indexBug.ind, line = 16):
-- Conflicting entries: multiple encaps for the same page under same key.
done (18 lines written, 2 warnings).
Again, my question is how I get an output looking something like:
Demonstratives, see Pronouns, see also Determiners
Verbs, 1, see also Irrealis
Hmmm, so if I'm understanding correctly (...), if I want both a 'see' and a 'see also', or both a page # and a 'see also', then the correct syntax is to preceded the 'seealso{}' with a '\' instead of a '|'. Like this:
In other words, since I always use 'seealso' in combination with a 'see' or a page number, I should really treat it as a \ command, not as a | command that goes inside the arg of a \index{} command. That was not obvious from the documentation and examples I found on the web, which seems to assume that an index item may contain just a 'see also' (which seems odd: "also" besides what?).
The vertical bar | within \index tells makeindex to construct a command from the following word and append the page number as the final argument, so if \index{foo|textbf} appears on page 2, makeindex sets the relevant location to \textbf{2}. Both \see and \seealso have two arguments. The first is the argument you use in \index and the second is the page number, which is ignored by default. So, if you have the following on page 1: