The advantage of Texmaker is that it allows you to do without the command prompt. And it is not necessary to go through arara
either.There are several ways to do this.
Change the command of the MakeIndex
button
If you use the button below to launch the compilers one by one you just need to change the MakeIndex
button command.
To do this you must go to Options - Configure Texmaker - Commands. And must change the command corresponding to MakeIndex
to :
makeindex %.nlo -s nomencl.ist -o %.nls -t %.nlg
All you have to do is use the button to compile once with PDFLaTeX
, once with MakeIndex
and once more with PDFLaTeX
.
Create a customized Quick Build
If you prefer to use the Quick Build button (or press the F1 key) rather than pressing the buttons calling the compilers a lot of times you can edit what the Quick Build button do.
Go to Options - Configure Texmaker - Quick Build and create your own command with the wizard. For example, for operations PDFLaTeX + BibTeX + MakeIndex + PDFLaTeX x2 + View PDF
I got the following command :
pdflatex -synctex=1 -interaction=nonstopmode %.tex|bibtex %.aux|makeindex %.idx|pdflatex -synctex=1 -interaction=nonstopmode %.tex|pdflatex -synctex=1 -interaction=nonstopmode %.tex|evince %.pdf
Warning, if you have modified the MakeIndex call command, you still need to modify this last command line. All you have to do is replace in the command line makeindex %.idx
by makeindex %.nlo -s nomencl.ist -o %.nls -t %.nlg
. Now your Quick Build will work with nomencl
.
Create a customized command
If you prefer use customized command rather than Quick Build, go to User - User Commands - Edit User Commands and create your own command with the wizard ; then replace in the command line makeindex %.idx
by makeindex %.nlo -s nomencl.ist -o %.nls -t %.nlg
.
makeindex.exe <path to your tex file>\yourtexfile.nlo -s nomencl.ist -o <path to your tex file>\yourtexfile.nls
. Runpdflatex
thenabove command
and thenpdflatex
.% arara: pdflatex "Enter" % arara: nomencl "Enter" % arara: pdflatex
on the very top of your main file. "Enter" means: press Enter, don't type it. Than you can compile with arara instead of PDFLaTeX and everything works fine.