I need to format the items and subitems for three different types of index in different ways with .ist files. How do I add italics to specific terms and introduce empty lines between different item levels for each index using separate .ist files?
MWE:
\documentclass[openany]{book}
\usepackage{imakeidx}
\makeindex[name=one,title=Index One, intoc, options= -s onetwothree.ist]
\makeindex[name=four,title=Index Four, intoc, options= -s four.ist]
\makeindex[name=six,title=Index Six, intoc, options= -s fivesix.ist]
\begin{document}
Some text.
\index[one]{Acts of the Avocados!2:2}
\index[one]{Romaines!3:3}
\index[one]{Romaines!4:4}
\index[four]{Aristotle!Metaphysallis!205c}
\index[four]{Aristotle!Metaphysallis!306d}
\index[four]{Plato!Tomatoes!407e}
\index[four]{Cicero!Lettuce!115}
\index[six]{Bananerges}
\index[six]{Appleadorus}
\index[six]{Plato}
\printindex[one]
\printindex[four]
\printindex[six]
\end{document}
.ist contents (all three files):
delim_0 " \\hfill "
delim_1 " \\hfill "
delim_2 " \\hfill "
Long version of question: I’ve messed around with this for a while and read everything I could find online but frankly I just don’t know enough about working outside the TeX file itself to make this work. I've learned LaTeX through cribbing other people's code and tweaking it and some trial and error, and I don't have any books or coding background, so please make answers detailed and don't necessarily assume specific knowledge on my part. I intend to read the LaTeX companion in the future and I do understand plenty, but not jargon, if that makes sense.
My publisher has asked for three separate formats for different indices. I have six indices in total: three indices of (extra)biblical sources, one of ancient classical sources, one of places, and one of subjects. Indices 1-3 share a format, as do 5 and 6, but 4 has its own requirements. They're always completely flush left with no indents of any kind except for subitems in the place and subject indices. I thought using .ist files was the best way to get the three formats I need but so far I've only succeeded in getting the last style close to the way I want it.
These index formats break down like this:
Indices 1-3: empty line before items, item names are italicized (e.g. “Genesis”), followed by the citation as a subitem on the next line (with no skip), and \hfill to the page numbers.
Index 4: empty line before items in normal font, empty line before subitems, which are italicized, and no empty line before subsubitems. Everything should be flush left.
Indices 5 and 6: no empty lines between items with same starting letter, and no italicization, small indent for subitems.
As I see it, I need 3 .ist files for the three separate formats for these indices. So far, I have \hfill working in these .ist files but nothing else:
delim_0 " \\hfill "
delim_1 " \\hfill "
delim_2 " \\hfill "
Here's an image of the desired results:
A note for other indexing/LaTeX newbs, I've found I don't need to use Terminal to run this, it works just in texmaker running XeLaTex.
I've also seen this page with .ist commands, but I don't know enough to use these to achieve what I want. I don't know how to put the rest of the formatting into the .ist files to get what I need for the three index styles.
headings_flag 1 heading_prefix "\\adjustbox{minipage=\\linewidth, cfbox=black, bgcolor=gray!20, vspace= 0ex .5em}{\\textbf\{\\large " heading_suffix "\}}\\par\\nopagebreak\n" item_0 "\n \\item \\small " delim_0 " \\dotfill " delim_1 " \\dotfill " delim_2 " \\dotfill "
And, this package might be useful: ctan.org/pkg/idxlayout