[Tex/LaTex] How to Use Arara in TexStudio

araralatexindenttexstudio

I'm trying to use latexindent to clean up my code in TexStudio and I can't get it to work.

  • I've installed latexindent and arara in Tex Live Utility
  • I've added a User Command to TexStudio of: /usr/texbin/arara -v -l %
  • At the top of my document I've written: % arara: indent: {overwrite: yes, trace: yes}

When I run the user command, I get:

/usr/texbin/arara: line 2: kpsewhich: command not found
Error: Unable to access jarfile

Any ideas? Thanks

Best Answer

If you use Yosemite, the error is repeatable. Joseph Wright has found a temporary solution until the issue will be fixed by the maintainers:

Start TeXWorks from the terminal

/Applications/TeXworks.app/Contents/MacOS/TeXworks &

http://chat.stackexchange.com/transcript/message/19316883#19316883

and see:

texworks on mac epstopdf or repstopdf not found

Related Question