1
\begin{align}
  a + b = c
\end{align}
[more spaces here] <=

I am using the latexindent to format my tex file. However, each time, I format the file, it will create more space after some blocks, like the align. Shown as above.

How to remove those redundant spaces?

BTW, I set my defaultIndent to be " " (two spaces).

1

Hmm, it's kind of answering my own question:

change the

removeTrailingWhitespace: 0

to be

removeTrailingWhitespace: 1

in the defaultSettings.yaml

Done.

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.