MakeIndex, Nomenclature, Glossaries and Acronyms0 entries accepted

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
Post Reply
elisa freschi
Posts: 3
Joined: Thu Jan 10, 2013 12:03 pm

0 entries accepted

Post by elisa freschi »

I am working on Mac OS X on a complex document and saving versions of it from time to time. From version 'p' to version 'q' I did not change anything in the preamble, yet the index can no longer be created. This is the error message I get:

Code: Select all

This is makeindex, version 2.15 [TeX Live 2012] (kpathsea + Thai support).
Scanning input file q...done (0 entries accepted, 2596 rejected).
Nothing written in q.ind.
Transcript written in q.ilg.
Whereas in the 'p' version I got a normal message such as:

Code: Select all

This is makeindex, version 2.15 [TeX Live 2012] (kpathsea + Thai support).
Scanning input file p.idx....done (326 entries accepted, 1 rejected).
Sorting entries......done (3018 comparisons).
Generating output file p.ind....done (164 lines written, 0 warnings).
Output written in p.ind.
Transcript written in p.ilg.
The file q.idx has been created too, and it looks like it should, i.e.:

Code: Select all

\indexentry{uha@\emph{ūha} (adaptation)}{x}
\indexentry{adesa@\emph{ādeśa} (substitute)}{1}
\indexentry{vikara@\emph{vikāra} (modification)}{2}

And so on. It is exactly identical to the p.idx file, although p.ilg is normal (whereas q.idg is quite wired, see below).

The preamble is quite long, but I tried to eliminate each of the packages one by one and this does not seem to make any difference. Moreover, the same preamble works fine with the index of version 'p'. Here is something closer to a MWE, omitting some packages and "makeatletter":

Code: Select all

\documentclass[14pt]{book} 
\usepackage{fontspec}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage{makeidx}
\usepackage{fancyhdr, blindtext}
\usepackage{hyphenat}
\usepackage{sectsty}
\usepackage{graphicx}
\usepackage{xcolor}
 
\usepackage[hang]{footmisc}
\footnotemargin1.8em

\makeindex
\author{}
\begin{document}
A minimal example of indexing\index{minimality} and a more complex one.\index{uha@\emph{ūha}}

\addcontentsline{toc}{chapter}{Index}
\printindex
\end{document}
The .ilg document is really wired:

Code: Select all

This is makeindex, version 2.15 [TeX Live 2012] (kpathsea + Thai support).
Scanning input file q...
!! Input index error (file = q, line = 1):
   -- Unknown index keyword \documentclass[14pt].
!! Input index error (file = q, line = 2):
   -- Unknown index keyword \usepackage.
!! Input index error (file = q, line = 3):
   -- Unknown index keyword \usepackage[english].
!! Input index error (file = q, line = 4):
   -- Unknown index keyword \usepackage.
!! Input index error (file = q, line = 5):
   -- Unknown index keyword \usepackage.
!! Input index error (file = q, line = 6):
   -- Unknown index keyword \usepackage.
!! Input index error (file = q, line = 7):
   -- Unknown index keyword %\usepackage.
!! Input index error (file = q, line = 8):
   -- Unknown index keyword \usepackage.
!! Input index error (file = q, line = 9):
   -- Unknown index keyword \usepackage.
!! Input index error (file = q, line = 10):
   -- Unknown index keyword \usepackage.
!! Input index error (file = q, line = 11):
   -- Unknown index keyword \usepackage.
!! Input index error (file = q, line = 12):
   -- Unknown index keyword %\usepackage.
!! Input index error (file = q, line = 14):
   -- Unknown index keyword %\usepackage.
!! Input index error (file = q, line = 15):
   -- Unknown index keyword %\deffootnote.
!! Input index error (file = q, line = 17):
   -- Unknown index keyword \usepackage[hang].
!! Input index error (file = q, line = 18):
   -- Missing arguments -- need two (premature LFD).
!! Input index error (file = q, line = 20):
   -- Missing arguments -- need two (premature LFD).
!! Input index error (file = q, line = 21):[/quote]

And so on, including the text of the book itself, such as:[quote]

!! Input index error (file = tantra_s, line = 156):
   -- Unknown index keyword Thepresentstudyisacompleteversionofthepreliminarystudythatappearedas\cite.
Until:

Code: Select all

!! Input index error (file = tantra_s, line = 3668):
   -- Unknown index keyword \end.
done (0 entries accepted, 2596 rejected).
Nothing written in tantra_s.ind.
Transcript written in tantra_s.ilg.
Could it be that the makeindex command operates directly on the .tex file instead than on the .idx one? And why?
Last edited by cgnieder on Thu Jan 10, 2013 12:40 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
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Re: 0 entries accepted

Post by cgnieder »

Hi Elisa,

welcome to the LaTeX community!

Can it be that you're running makeindex on the tex file instead of the idx file?

Regards
site moderator & package author
elisa freschi
Posts: 3
Joined: Thu Jan 10, 2013 12:03 pm

Re: 0 entries accepted

Post by elisa freschi »

Hi Clemens and thanks!
In fact, this is what seems to be happening. But I do not why :oops:.
I am not doing anything differently while typesetting the file 'p' or the file 'q' and the effect is the same with either TeXshop and TeXwork. May I beg for a neophyte-help?
Last edited by elisa freschi on Thu Jan 10, 2013 2:17 pm, edited 1 time in total.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

0 entries accepted

Post by cgnieder »

I do not have either TeXworks nor TeXshop so I can't help there (someone else might). But maybe using imakeidx can circumvent the problem. It automatically takes care to run makeindex from within the (pdf)latex run. There's a blog post by the package author.

Regards
site moderator & package author
elisa freschi
Posts: 3
Joined: Thu Jan 10, 2013 12:03 pm

Re: 0 entries accepted

Post by elisa freschi »

Thank you Clemens. I still get the same notification of error ("0 entries accepted…"), but the .ind and .idx files are OK and the index is created.
Thank you very much!
Post Reply