Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am currently preparing a large document and want to include an index at the end. The individual chapters are included via \input{}. In these chapters I use the \index{}-command.

But even after hours of researching I cannot get it to generate the index:

Makeindex> Input index file minimalexample.idx not found.
Makeindex> Usage: C:\Program Files\MiKTeX 2.9\miktex\bin\x64\makeindex.exe [-ilqrcgLT] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 ...]

This is particularly confusing for me as a beginner because BibLaTeX can extract all citations from the input files without problems.

I use TeXnicCenter 2.0 Beta 1 (64-bit) as my editor and configured the output profile (for makeindex) as following:

C:\Program Files\MiKTeX 2.9\miktex\bin\x64\makeindex.exe

"%tm.idx" -t "%tm.ilg" -o "%tm.ind"

My minimal example:

\documentclass{book}
\usepackage{makeidx}
\usepackage{filecontents}
\begin{filecontents}{main.tex}
\chapter{Test}
This is\index{is} an example\index{example}.
\end{filecontents}

%\makeindex 
%I use Texniccenter as my editor of choice and therefore 
%usually comment this out, but I am grateful if one could 
%provide a beginner-friendly commandline-walkthrough.

\begin{document}

\input{main}

\printindex

\end{document}

As I am still learning I would really appreciate any help and hints (also alternative packages).

share|improve this question
6  
You need the command \makeindex in your document. It tells latex to create an idx-file. –  Ulrike Fischer Mar 5 '13 at 9:48
    
Welcome to TeX.sx! –  Peter Jansson Mar 5 '13 at 10:04
    
The demonstration paradox... by including \makeindex it works perfectly. Many thanks Ulrike. –  FLW Mar 5 '13 at 13:06
    
Short note: It’s of course your choice, but chapters are in most cases better integrated with \include. See in LaTeX introductions for the differences to \input. –  Speravir Mar 5 '13 at 16:43
add comment

closed as too localized by Speravir, Martin Schröder, zeroth, mafp, Claudio Fiandrino Mar 5 '13 at 17:21

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.