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
Options
menu. - From there selecting the
Configure TeXstudio
option. - From the popup window, we switched to the
Build
tab by clicking on the appropriate button on the left side column. - In the group
User Commands
we clicke on the+ Add
button 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
OK
button to close that window. - To test that the command works as expected, we went to the
Tools
menu. - 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 themakenomenclature
command to work. - Finally, we clicked on the
Build & View
button to verify that everything is OK.