1

I am using TeXStudio with texlive on Windows 10 computer. I would like TeXStudio to automatically handle my indentation in my tex-files. My question is: How to install latexindent in texstudio when using texlive?

  • do you have arara installed? if so, arara ships with a rule for latexindent – cmhughes Dec 15 '18 at 9:57
2

In TeXstudio you may add the latexindent script to "User Commands". For this you need to use the dialog "Configure Texstudio.." in menu "Options". Then you need select section "Build". Then, on the right side of the screen at the bottom you need to click "Add" button and enter the name for your new command and the command itself. The result should be something similar to the picture.

enter image description here

The new command will be available through the menu: "Tools -> User".

  • +1 does this run latexindent ever time the user compiles...? – cmhughes Dec 21 '18 at 11:55
  • @cmhughes, in TeXstudio you can configure commands for build, for example, for "Default Compiler". And you can add to "compile chain" this command. – Vladimir Dec 21 '18 at 14:35

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.