Using Nomenclature in TeXstudio
Recently, we were compiling a Latex document that was using the nomencl package to create a nomenclature list. The tool that we were using was TeXstudio. We noticed that the nomenclature was not in the final document and no error was generated to indicate so.
To fix the issue, we had to manually execute the makeindex command which would create the necessary meta-files. To avoid using a terminal each time we wanted to update the nomenclature, we defined a custom command in TeXstudio which would make the process a bit more easy for us.
In the following video you will see the following steps:
- Going to
Optionsmenu. - From there selecting the
Configure TeXstudiooption. - From the popup window, we switched to the
Buildtab by clicking on the appropriate button on the left side column. - In the group
User Commandswe clicke on the+ Addbutton which created a new entry for us. - In the new entry we filled:
- The menu name of the command:
user0: Make Nomenclature - The actual command to build the files needed for the nomenclature:
makeindex -s nomencl.ist -t %.nlg -o %.nls %.nlo
- The menu name of the command:
- Then we clicked on the
OKbutton to close that window. - To test that the command works as expected, we went to the
Toolsmenu. - From there to the sub-menu named
User, where we found our new command listed as1: Make Nomenclature.
This command produced all files necessary for themakenomenclaturecommand to work. - Finally, we clicked on the
Build & Viewbutton to verify that everything is OK.


