[Tex/LaTex] Run user command before build and view in TeXstudio

automationcompilingtexstudio

I made a user command:

user0:Make Nomenclature with the command: makeindex -s nomencl.ist -t %.nlg -o %.nls %.nlo

Now every time I want to build my complete pdf with the correct nomenclature, I first have to run the user command manually before I can build. Is there any way that when I click: "build and view" that TeXstudio automatically first runs the user command and then builds the pdf?

Best Answer

Under Configure TeXstudio -> Build, you can customize the Build & View by clicking the spanner icon (you can find it on the right side). If you scroll down the list you should be able to find your user commands, that you can add it into the build call.

settings

enter image description here