## LaTeX forum ⇒ MakeIndex, Nomenclature, Glossaries and Acronyms ⇒ makeindex not working, compile fine Topic is solved

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
mgdtex
Posts: 2
Joined: Sat Mar 20, 2021 4:04 pm

### makeindex not working, compile fine

I am trying to create a simple index at the end of my main.pdf document. I am using TeXStudio for the compile. I created a user command (Options/Configure TeXStudio/Build).

```name: user0:Make Nomenclature
command: makeindex %.nlo -t %.nlg -o %.nls```

When I run the command using Tools/User/Make Nomenclature, the output is:
```Process started: makeindex "main".nlo -t "main".nlg -o "main".nls
This is makeindex, version 2.15 [TeX Live 2020] (kpathsea + Thai support). Scanning input file main.nlo...done (0 entries accepted, 0 rejected). Nothing written in main.nls. Transcript written in main.nlg.
Process exited normally```

In my `packages.tex` file, I have these two commands:
`\usepackage{makeidx}\makeindex`

But, after I compile `main.tex` (twice), my document compiles, `main.pdf` is created/compiled, but there is no index at the end.

Any thoughts?
Last edited by Stefan Kottwitz on Sat Mar 20, 2021 8:10 pm, edited 1 time in total.

Ijon Tichy
Posts: 446
Joined: Mon Dec 24, 2018 10:12 am
For a simple index your configuration of makeindex is wrong. It is for usage of package nomencl. You have to use a simple/standard makeindex configuration (Tools → Index) . However, before you start to reconfigure TeXstudio or search for the correct call, simply replace `\usepackage{makeidx}` by `\usepackage{imakeidx}`. Package imakeidx can do the needed makeindex run on its own. So you just need to do 2 LaTeX runs to get an index.

If this does not help (and with all further questions), please add a minimal working example. Don't forget to mark the code of the minimal working example as code.

mgdtex
Posts: 2
Joined: Sat Mar 20, 2021 4:04 pm
Thank you, Ijon
That fixed the issue by just replacing `\usepackage{makeidx}` with `\usepackage{imakeidx}` in my packages.tex file and then recompiling (twice) `main.tex`.
Last edited by Stefan Kottwitz on Sat Mar 20, 2021 8:12 pm, edited 1 time in total.