I'm trying to make index at the end of the book after all chapters, but I couldn't get it.

I'm using the following code in main .tex

    %...........(call for chapters )

and inside the chapter

\item \hspace{0.3 cm} \textbf{[optional]\index{optional}[story]\index{optional}[adapt]\index{adapt}[t-shaped skills]\index{t-shaped skills}[flowcharts]\index{flowcharts}}

I got this index output in all chapters without the real index I really put in the code.

index output

1 Answer 1


I solved my problem by adding the following code before the start of the document in main.tex

\makeindex[columns=2, title=Index, program=makeindex, options=-s pyro ,intoc=true]

Also by creating pyro.ist that contains the below code

heading_prefix "\n\\noindent\\textbf{"
heading_suffix "}\\par\\nopagebreak\n"
headings_flag 1
  • Interesting. How did you find out? Did you find some documentation about it?
    – MS-SPO
    Dec 11, 2023 at 11:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .