From f684f52d8fbe0114038bd745d169bccde6ab34ac Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Fri, 6 Jun 2025 13:20:52 +0200 Subject: [PATCH] [latexfmt] Add indents for code --- config/lint/latexfmt.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/config/lint/latexfmt.yaml b/config/lint/latexfmt.yaml index 007ffc0..3449132 100644 --- a/config/lint/latexfmt.yaml +++ b/config/lint/latexfmt.yaml @@ -29,3 +29,29 @@ indentRules: formula: " " conjugation: " " forms: " " + +specialBeginEnd: + If: + begin: '\\If' + middle: + - '\\ElsIf' + - '\\Else' + end: '\\EndIf' + lookForThis: 1 + For: + begin: '\\For' + end: '\\EndFor' + lookForThis: 1 + Procedure: + begin: '\\Procedure' + end: '\\EndProcedure' + lookForThis: 1 + Function: + begin: '\\Function' + end: '\\EndFunction' + lookForThis: 1 + While: + begin: '\\While' + end: '\\EndWhile' + lookForThis: 1 + specialBeforeCommand: 1