I am trying to modify an index with a style .ist file. I create the .ist file, I place it in the same directory as the main file, and pass the option. However, the index remains the same.

Here there is a MWE of my .tex file:

\usepackage{amsmath, mathtools, amsthm}
\declaretheoremstyle[headfont=\normalfont\bfseries, notefont=\bfseries, bodyfont=\normalfont, shaded={rulecolor=black,rulewidth=0.5pt,bgcolor={rgb}{1,1,1},margin=5pt,textwidth=11.8cm}, notebraces={}{:}, headpunct={}, postheadspace=1em]{mystyle}
\declaretheoremstyle[headfont=\normalfont\bfseries, numbered=no, notefont=\bfseries, bodyfont=\footnotesize, shaded={rulecolor=gray,rulewidth=0.5pt,bgcolor={rgb}{1,1,1},margin=5pt,textwidth=11.8cm}, qed=\qedsymbol, notebraces={--- }{:}, headpunct={}, postheadspace=1em]{mystyle5}
\declaretheoremstyle[headfont=\normalfont\bfseries, shaded={rulecolor=black,rulewidth=0.5pt,margin=5pt,textwidth=11.8cm}, notebraces={}{:}, headpunct={}, postheadspace=1em]{mystyle3}


\makeindex[name=proposition,title=Index of Propositions, options={-s index.ist}]
\makeindex[name=definition,title=Index of Definitions, options={-s index.ist}]
\makeindex[name=figure,title=Index of Figures, options={-s index.ist}]















Here goes my .ist file:

headings_flag 1

heading_prefix "\n\\centering\\large\\sffamily\\bfseries%
\\noindent\\textbf{"heading_suffix "}\\par\\nopagebreak\n"

item_0 "\n \\item \\small "

delim_0 " \\hfill "
delim_1 " \\hfill "
delim_2 " \\hfill "

See here how the output is the default one, which means that my .ist file is not having any effect:

enter image description here

Why is NOT the .ist file affecting the output? What am I doing wrong?

Thank you all!


The options key can only be honored without the splitindex option, because the production of the indices is handed over to that program and there's no way to pass options to it automatically.

You can do

splitindex -m "makeindex -s index" <filename>

when you do the call. The obvious limitation is that just one style can be passed to each index.

Just remove the splitindex option and imakeidx will honor the chosen style.

  • 1
    @Héctor Leave out also the nonewpage option: it makes little sense with report.
    – egreg
    Dec 16 '16 at 18:30
  • Thanks @egreg, I will! However, going back to the original question, if I remove that option and I keep the rest of the code as it is, it produces no index. I am afraid my limited LaTex knowledge does not allow me to fully understand your (quick) reply. How do I get multiple indices with a custom style? That is, what other changes do I need to apply to my code? Please, could you elaborate further on that?
    – Héctor
    Dec 16 '16 at 18:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.