-
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
Add support for algorithm packages, such as algorithmic and algpseudocodex #496
Conversation
…codex Relating to the issue: #427
Thank you for your contribution! Please can you change this pull request so that it goes to the |
Thanks this looks like a good contribution! A few comments to address, please
Thanks so much for your time on this! |
- \\ELSIF\{[^}]+?\} | ||
end: \\ENDIF | ||
lookForThis: 1 | ||
specialBeforeCommand: 1 # search for these fields before searching for commands |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line shouldn't be the default. Please leave this value at 0
- \\ELSIF\{[^}]+?\} | ||
end: \\ENDIF | ||
lookForThis: 1 | ||
specialBeforeCommand: 1 # search for these fields before searching for commands |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line shouldn't be the default. Please leave this value at 0
Did you refer to this line? I have tried specialBeforeCommand: 0
and found this couldn't format the code.
The picture depicts the result with specialBeforeCommand: 0
:
This is the result with specialBeforeCommand: 1
:
I'm creating a new fork to rebase from the dev branch (sorry for not noticing this branch :-)), and will start a new pull request.
If there is any idea related to this problem please let me know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new pull request: #498
what is this pull request about?
This pull request adds the support for algorithm packages, such as algorithmic and algpseudocodex
does this relate to an existing issue?
Here is the link: issue 427
does this change any existing behaviour?
yes
what does this add?
Here is a minimal example:
After merging the pull request,
latexindent.pl
could format the file as follows (with 4-space indents):how do I test this?
You can test this as the above section depicts.
anything else?
No more further comments. Best wishes for you and your family!