Page Layoutmultiple index's with memoir class

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
simonhill
Posts: 2
Joined: Sat Nov 20, 2010 11:18 am

multiple index's with memoir class

Post by simonhill »

Hi everyone,

I'm having a problem with the great memoir class. I want more than one index. This seems straight forward enough from the memoir manual...but it just will not work for me. Only one index (the one with the same name as the tex file) is printed, the second one is not. For this second one there is a .idx file, but no .ind file... I've worked that out. I thought the \makeindex[lines] would make it for me, but no.

I believe I've followed all of the memoir instructions....

Many thanks for any help
Simon

below is the code I've used...

Code: Select all

\batchmode

\documentclass[a4paper,11pt]{memoir}
\listfiles
\usepackage{comment}

\usepackage{memsty}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\usepackage{titlepages}  % code of the example titlepages
\usepackage{memlays}     % extra layout diagrams
\usepackage{dpfloat}     % floats on facing pages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%% extra index for first lines
\makeindex
\makeindex[lines]

%% end preamble
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

temp text

\index[lines]{Alpha}

\index{Isaiah40}

\clearpage
\renewcommand{\preindexhook}{%
The first page number is usually, but not always, the primary reference to
the indexed topic.\vskip\onelineskip}

%%%\raggedright  does nasty things to index entries
\printindex

\onecolindex
\renewcommand*{\preindexhook}{}
\renewcommand*{\indexname}{Index of first lines}
%%%\indexintoc
\printindex[lines]


\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

simonhill
Posts: 2
Joined: Sat Nov 20, 2010 11:18 am

Re: multiple index's with memoir class

Post by simonhill »

Hey I found the solution... not so neat but it works.

1. Run latex.
2. Run a command prompt in the directory of my tex file and type:
makeindex lines.
3. Run latex again.

After number three the second index appears. (because now the .ind files now exists)

Simon
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

multiple index's with memoir class

Post by localghost »

Now that the problem is obviously solved, please be so kind and mark the topic (not the last post) accordingly as clearly written in the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary.


Best regards and welcome to the board
Thorsten
Post Reply