I would like to create a usercommand in TeXStudio 2.11.0 which executes a batch-file in the same directory like the .tex-file. Is it possible to do it dynamically? Currently I'm only able to set the whole path to the batch-file.

Background: I want to execute the make "makeindex"-command for creating the necessary files for my acronyms. And I'm currently working on multiple .tex-files so the direct path is really annoying.

My current system: Windows 10 and TeXStudio 2.11.0.


You can use the Special Chars syntax construct the path dynamically. For your case, that would be: (need Advanced Options enabled to see the complete s


See Options -> Commands -> Special Chars for an explanation. To see the full list, you have to enable Advanced Options:

enter image description here

  • thank you! here is my solution with your help @Tim Hoffmann: the makeglossaries command: ?a)acronyms.bat the create and display command: txs:///compile | txs:///makeglossaries | txs:///compile | txs:///view – D. Krause Sep 15 '16 at 7:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.