MakeIndex, Nomenclature, Glossaries and Acronymsmakeindex not working, compile fine

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

makeindex not working, compile fine

Post by mgdtex »

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).

Code: Select all

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


When I run the command using Tools/User/Make Nomenclature, the output is:

Code: Select all

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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

makeindex not working, compile fine

Post by Ijon Tichy »

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 Infominimal working example. Don't forget to mark the code of the minimal working example as code.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
mgdtex
Posts: 2
Joined: Sat Mar 20, 2021 4:04 pm

makeindex not working, compile fine

Post by mgdtex »

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.
Post Reply