I am running Windows 7 and a recent (Dec 2014) distribution of TeX Live and a recent version of TeXmaker.
When invoking arara myFile.tex
in the command line it returns "indent SUCCESS" and when opening myFile.tex
it is indeed beautified/correctly indented.
However when setting up a macro in TeXmaker (via Users->Commands->User-defined "arara %.tex") TeXmaker returns:
Process started
Process exited normally
However the code is not beautified. Closing and opening the file does not help.
Do you have any ideas on how to make this work?
PS a minimal working example (working from command line - but not via TeXmaker) is:
% arara: indent
% arara: indent: {overwrite: yes}
\documentclass[10pt]{article}
\begin{document}
\begin{enumerate}
\item a
\item b
\end{enumerate}
\end{document}
PPS indent.log file output (when invoking via TeXmaker)
Thu Dec 11 15:41:00 2014
latexindent.pl version 2.0R, a script to indent .tex files
latexindent.pl lives here: C:/texlive/2014/bin/win32/
>
Directory for backup files and indent.log: .
file: tikpkzTEST.tex Reading defaultSettings.yaml from C:/texlive/2014/bin/win32/defaultSettings.yaml
Home directory is C:/Users/Björn To specify user settings you would put indentconfig.yaml here: C:/Users/Björn/indentconfig.yaml
Backup procedure: (...various backups...) Overwriting file: tikpkzTEST.tex
Line Count of tikpkzTEST.tex: 10 Line Count of indented tikpkzTEST.tex: 10
Line counts of original file and indented file match
PPPS arara.log file
11 Dec 2014 18:50:09.524 INFO Arara - Welcome to arara!
11 Dec 2014 18:50:09.524 INFO Arara - Processing file 'tikpkzTEST.tex', please wait.
11 Dec 2014 18:50:09.524 INFO DirectiveExtractor - Reading directives from
tikpkzTEST.tex.
11 Dec 2014 18:50:09.524 TRACE DirectiveExtractor - Directive found in line 1 with indent.
11 Dec 2014 18:50:09.524 TRACE DirectiveExtractor - Directive found in line 2 with indent: {overwrite: yes}.
11 Dec 2014 18:50:09.584 INFO DirectiveParser - Parsing directives.
11 Dec 2014 18:50:09.584 INFO TaskDeployer - Deploying tasks into commands.
11 Dec 2014 18:50:09.584 TRACE TaskDeployer - Task 'indent' found in >'C:\texlive\2014\texmf-dist\scripts\arara\rules'.
11 Dec 2014 18:50:09.728 TRACE TaskDeployer - Task 'indent' found in 'C:\texlive\2014\texmf-dist\scripts\arara\rules'.
11 Dec 2014 18:50:09.738 INFO CommandTrigger - Ready to run commands.
11 Dec 2014 18:50:09.738 INFO CommandTrigger - Running 'Indent'.
11 Dec 2014 18:50:09.738 TRACE CommandTrigger - Command: cmd /c latexindent.exe "tikpkzTEST.tex"
11 Dec 2014 18:50:10.048 TRACE CommandTrigger - Output logging:
11 Dec 2014 18:50:10.048 TRACE CommandTrigger - % arara: indent
% arara: indent: {overwrite: yes}
\documentclass[10pt]{article} \begin{document} \begin{enumerate} \item a \item b \item c \end{enumerate} \end{document} 11 Dec 2014 18:50:10.048 INFO CommandTrigger - 'Indent' was successfully executed. 11 Dec 2014 18:50:10.048 INFO CommandTrigger - Running 'Indent'. 11 Dec 2014 18:50:10.048 TRACE CommandTrigger - Command: cmd /c latexindent.exe -w >"tikpkzTEST.tex" 11 Dec 2014 18:50:10.348 TRACE CommandTrigger - Output logging: 11 Dec 2014 18:50:10.348 TRACE CommandTrigger - % arara: indent % arara: indent: {overwrite: yes}
\documentclass[10pt]{article}
\begin{document}
\begin{enumerate}
\item a
\item b
\item c
\end{enumerate}
\end{document}
11 Dec 2014 18:50:10.348 INFO CommandTrigger - 'Indent' was successfully executed.
11 Dec 2014 18:50:10.348 INFO CommandTrigger - All commands were successfully executed.
11 Dec 2014 18:50:10.348 INFO Arara - Done.
arara
but you can indent your code using the TeXmaker menu, or not?indent
is a nice tool for automatic code indentation (latexindent from cmhughes). I do not think that TeXmaker is able to do such work.indent.log
file in that directory. What does that say?Tiny.pm
from C:\Strawberry\perl\site\lib to C:\texlive\2014\tlpkg\tlperl\lib and any missingFile:HomeDir
modules from strawberry perl lib (similar version of perl in TeXLive ) to tlperl lib folder thenlatexindent.exe
should fine. BTW IMO Bjorn Error of not updating the .tex file after latexindent in usercommand may be an issue pertaining to TeXmaker editor not arara or latexindent. Bjorn may be you post this issue tracker