Closed avatar-lavventura closed 2 years ago
Hello, Thanks for this. Could you look at https://github.com/cmhughes/latexindent.pl/issues/100 and see if it helps?
specialBeginEnd:
If:
begin: '\\If'
middle: '\\ElsIf'
end: '\\EndIf'
lookForThis: 1
specialBeforeCommand: 1
@cmhughes Thanks works like magic! Is it possible to convert indents from TAB
to (4 spaces)?
If possible, I want to align indents in condition statements like:
\If
,\Else
,\For
statements in between\begin{algorithmic} ... \end{algorithmic}
section.Wanted behaviour would be as following example:
Following example
latex
code taken from: https://tex.stackexchange.com/a/615852/127048. When I runlatexindent.pl eblocbroker.tex
it makes all the statements into same indent it aligns all if else statements in the same vertical line.After running
latexindent.pl eblocbroker.tex
it makes all the statements into same indent, converted into:Wanted output should be, its same as the given input file where I organize the indents beforehand: