On Monday 05 March 2007 20:47, curtis osterhoudt wrote: > Hi, Steve, > > I haven't tried it yet for single-column mode (I use it for *forcing* a > 3-columned index), but the package "multicol" > http://www.ctan.org/tex-archive/help/Catalogue/entries/multicol.html might > work for you. In my preamble, I have the following: > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > % Index is 3 columns, with bold letter headers > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > \usepackage{multicol} > \newcommand\NrCol{3} > \renewenvironment{theindex}{% > \columnseprule \z@ > \columnsep 35\p@ > \section*{\indexname}% > [EMAIL PROTECTED] > \begin{multicols}{\NrCol}% > \thispagestyle{plain}\parindent\z@ > \parskip\z@ [EMAIL PROTECTED] [EMAIL PROTECTED] > [EMAIL PROTECTED] > }{\clearpage\end{multicols}} > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > I suspect this could be adapted to your case, though I'm not entirely > sure how.
Thanks Curtis,
After tons of experimentation and hair loss, I finally found how to make a 1
column index. Multicol didn't work, nor did your code above. But your code
gave me the idea to search for the LaTeX code for \theindex, and modify it.
After doing that, I created the following \theindex, which gives me a nice 1
column index:
% ### ONE COLUMN INDEX ###
\renewenvironment{theindex}{%
[EMAIL PROTECTED]
[EMAIL PROTECTED]
{\MakeUppercase\indexname}%
\thispagestyle{plain}%
\parindent\z@
\parskip\z@ [EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED]
\addcontentsline{toc}{chapter}{\indexname}
}{%
\clearpage
}
Notice the \addcontentsline{toc}{chapter}{\indexname}. That's Rich Shepard's
suggestion for getting the index to appear in the table of contents. It
appears, and it appears with the right page number printed, but when you
click on it in the .pdf, you go to the last \mainmatter chapter instead of
the index. So I'm very close, but no cigar.
Anyway, I'm attaching the index so you all can see it...
Thanks for the suggestions and encouragement.
SteveT
index.pdf
Description: Adobe PDF document
