-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected indent of curly braces block #501
Comments
Please use the issue template and I'll try to help.
…On Thu, 14 Dec 2023, 13:44 MrConnorKenway, ***@***.***> wrote:
image.png (view on web)
<https://github.com/cmhughes/latexindent.pl/assets/32333772/f67588d4-9be6-4639-8599-63f72bf1b3a1>
How can I remove the tab before { xyz }? The log says that "named
grouping braces found: abc", why abc is considered to be named grouping
braces?
indent.log
<https://github.com/cmhughes/latexindent.pl/files/13673959/indent.log>
—
Reply to this email directly, view it on GitHub
<#501>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQ7CYAIPNZILERJQF3LZXLYJL7CJAVCNFSM6AAAAABAU33Y46VHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2DCNZTGEZDKNA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Hi, I've updated the issue. Sorry for the trouble : ( |
Thanks, that's great. If we use noAdditionalIndentGlobal:
namedGroupingBracesBrackets: 1 # 0/1 then we receive \section { hi }
abc
{ xyz } |
Thank you for your help! It indeed works, but when combining with other configs, it doesn't work again. The original tex\section { hi }
abc abc abc abc abc abc
{ xyz } The command
Actual output
|
I'll happily look at this again, but before I do, can you provide your complete configuration. |
You need to use non-capturing parenthesis
|
Thank you so much for answering my dumb question! |
original .tex code
\section { hi } abc { xyz }
actual/given output
\section { hi } abc { xyz }
desired or expected output
\section { hi } abc { xyz }
anything else
I'm sorry I didn't use a template. Could you help me understand why latexindent adds a tab before
{ xyz }
?The text was updated successfully, but these errors were encountered: