Automatic indentation done for subfiles with arara and latexindent not working

by Tomáš Kruliš   Last Updated September 11, 2019 13:23 PM

I am learning with latexindent. I would like to follow up this question: How is automatic indentation done for subfiles with arara and latexindent? and ask for clarification:

Is there required any modification to arara rule indent.yaml or to configuration of latexindent? If I look on arara.yaml shipped with TeXlive 2019 on Windows 10, I see no support for option "files."

Code posted in linked question does not work for me with error exit code 1; indent.log says it cant find the file stated in "files" option...

As MWE may be used answer in linked question or this code:

Main.tex
% arara: indent: { overwrite: yes, files: [ chapter/chapter.tex ] }
% arara: lualatex: { shell: yes }

\documentclass [a4paper, 12pt, twoside, openright] {book}
\usepackage{fontspec}

\usepackage{import}

\begin{document}

Main document test itemization.

\begin{itemize}
\item first item
\item second item
\item another item
\end{itemize}

\chapter{Imported chapter}

\import{chapter/}{chapter.tex}

\end{document}
/chapter/chapter.tex
Imported chapter itemization:

\begin{itemize}
\item first item
\item second item
\item another item
\end{itemize}


Related Questions


Indent all tex files with arara

Updated September 21, 2017 21:23 PM


latexindent with arara produces error message

Updated February 07, 2018 08:23 AM

Using Arara with a folder structure

Updated August 29, 2018 13:23 PM