Sie sind auf Seite 1von 3

8/11/2017 indexing - Makeindex no .

nls file - TeX - LaTeX Stack Exchange

sign up log in tour help

_
TeX - LaTeX Stack Exchange is a Here's how it works:
question and answer site for users
of TeX, LaTeX, ConTeXt, and related
typesetting systems. Join them; it
only takes a minute:
The best answers are
Sign up Anybody can Anybody can voted up and rise to the
ask a question answer top

Makeindex no .nls le

Here is the sample code from test.tex: http://texblog.org/2012/05/14/list-of-symbols-or-abbreviations-


nomenclature/

\documentclass{article}
\usepackage{nomencl}
\makenomenclature
\renewcommand{\nomname}{Time Zones}
\begin{document}
UTC\nomenclature{UTC}{Coordinated Universal Time} is 3 hours behind ADT\nomenclature{ADT}
{Atlantic Daylight Time} and 10 hours ahead of EST\nomenclature{EST}{Eastern Standard
Time}.
\printnomenclature
\small\hfill Created by http://texblog.org
\end{document}

I ran this on TexStudio. pdfLatex --> MakeIndex --> pdfLatex

Errors when I ran MakeIndex:


Process started: makeindex.exe "test".idx

Input index file test.idx not found. Usage: makeindex.exe [-ilqrcgLT] [-s sty] [-o ind] [-t log] [-p num] [idx0
idx1 ...]

Process exited with error(s)

Errors when I ran pdfLatex


No file test.nls.

Thank you for your help!

{indexing}

asked Feb 19 '14 at 16:37


Kasun
48 1 1 3

2 Read Section 2 of the nomencl manual. Thorsten Donig Feb 19 '14 at 16:40

And the sample source also points out in detail what to do to get the nomenclature. Thorsten Donig Feb
19 '14 at 17:02

1 Answer

If every one reads manuals, then we will have very less questions here and less reputation too ;)

To make nomenclature you have to pdflatex the .tex file and then run this
command:

makeindex -s nomencl.ist -t "<file name>.nlg" -o "<file name>.nls" "<file name>.nlo"

where <file name> is the name without .tex extension ( myfile if I have myfile.tex ).

Then again pdflatex myfile.tex .

Now the question is how to run makeindex with all those arguments in texstudio.
You can create a user command for this. Go to Options Configure TeXstudio . In the
https://tex.stackexchange.com/questions/161304/makeindex-no-nls-file 1/3
8/11/2017
Now the question is how to run indexing
with all - Makeindexinno
those arguments .nls file - TeX - LaTeX Stack Exchange
texstudio.
You can create a user command for this. Go to Options Configure TeXstudio . In the
window that appears, choose Build tab on the left side. Search for User Commands . (You
may have to click Add button with a green + ). Type

Make Nomenclature

just after user0: (0,or 1 0r 2, depending on how many use commands you already
have) in the first box. In the second box type:

makeindex -s nomencl.ist -t %.nlg -o %.nls %.nlo

Now OK it. Illustration below.

Now you have a menu under Tools User with a short key also.

Now run pdflatex Make Nomeclature pdflatex . Hope things are now clear.

As another option, you can install the cool automation tool arara and create a User
Command for arara (as mentioned above) and make all three compilation clicks in one
go. You have to add these lines:

% arara: pdflatex
% arara: nomencl
% arara: pdflatex

just before your \documentclass command (or anywhere in the document), and compile
using

arara myfile

using your User Command .

edited Feb 20 '14 at 0:37 answered Feb 20 '14 at 0:25


user11232
https://tex.stackexchange.com/questions/161304/makeindex-no-nls-file 2/3
8/11/2017 indexing - Makeindex no .nls file - TeX - LaTeX Stack Exchange
user11232

1 With arara it's even easier. egreg Feb 20 '14 at 0:30

@egreg Yes, I am writing it now :). user11232 Feb 20 '14 at 0:31

Thank you for your help Harish! Works perfectly! Have a great day :) Kasun Feb 22 '14 at 23:06

@Kasun Thank you and glad it helped. :) user11232 Feb 22 '14 at 23:08

This can be done through a one click in Texniccenter by modifying the pdflatex to avoid using arara or
the two steps compilation. Does the new version of Texstudio provide this? user2536125 Feb 1 '15 at
11:05

protected by Joseph Wright Jan 20 '16 at 7:18


Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires
10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

https://tex.stackexchange.com/questions/161304/makeindex-no-nls-file 3/3