I am using the gsm-l class file to write a small text. I want to have two indices at the end, one for names, and one for subjects. So, as instructed in the AMS instructions, I include then line
\usepackage{amsmidx}
and then I have the following two lines in the preamble:
\makeindex{name}
\makeindex{subj}
At the end, I put the two commands
\Printindex{name}{Name Index}
\Printindex{subj}{Subject Index}
But things are not going as expected. First, if I include the hyperref package, I get about two errors for every \index command. But even if I don't include the hyperref package, my document doesn't contain an index. According to the log, the processor can't find name.idx or subj.idx, even though I can see both files in the directory, and they contain all the entries just fine. I will include a small sample to show what is going wrong:
\documentclass[makeidx]{gsm-l}
\usepackage[latin1]{inputenc}
\usepackage{amsmidx}
%\usepackage{hyperref}
\makeindex{name}
\makeindex{subj}
\def\thechapter{\Roman{chapter}}
\begin{document}
\frontmatter
\title{TeX}
\maketitle
\tableofcontents
\mainmatter
\chapter{Test}
Here are some things\index{subj}{things} I\index{name}{This Guy} have been working on.
\appendix
\include{}
\backmatter
\Printindex{name}{Name Index}
\Printindex{subj}{Subject Index}
\end{document}
I would appreciate any help on this.