- To: slug@xxxxxxxxxxx
- Subject: [SLUG] A LaTeX Question.
- From: Bill Bennett <wbennett@xxxxxxxxxxxxxxxxx>
- Date: Mon Sep 10 15:15:02 2001
- Reply-to: wbennett@xxxxxxxxxxxxxxxxx
- User-agent: Mutt/1.2.5i
I have a cd collection.
I've entered the disks with appropriate index commands.
I can therefore use makeindex. And do.
This is what I do:---
1) Command: LaTeX cdroot.tex, which includes
\include{cdcollection}
The collection (but not the index) is LaTeX'd.
Go through the hoops (=dvips, gv) to make sure all is well.
If so, print it.
2) Command: makeindex -s cdindex.ist -o cdindex.tex cdroot
cdindex = index stylefile
cdindex.tex = directed output for the index produced by
makeindex
3) LaTeX cdindex.tex
The index is LaTeX'd.
Go through the hoops etc.
------------------------------------------------------------
So, I have several runs through LaTeX (which are not onerous)
to produce two printings.
I can't include \include{cdindex} in cdroot, unless I "top
and tail" the newly produced cdindex.tex (ie., down to and
just past \begin{document} and delete \end{document})
The entire process is not a pain---it's just niggling. There
must be a more efficient way to incorporate the new index.
I understand that there *must* be two passings through LaTeX to
(a) assemble the collection and note the index commands for
subsequent makeindex and (b) run makeindex. Even so, I should
be able to make it more efficient than at present, shouldn't I?
Any suggestions would be gratefully received.
Regards,
Bill Bennett.