Skip to content
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

Indent between \left and \right #3529

Open
LeoUschi232 opened this issue Apr 26, 2024 · 1 comment
Open

Indent between \left and \right #3529

LeoUschi232 opened this issue Apr 26, 2024 · 1 comment
Labels
enhancement New feature or (non bug related) change to the program.

Comments

@LeoUschi232
Copy link

LeoUschi232 commented Apr 26, 2024

The plugin should allow customization of identation rules when formatting.
For instance, I like my latex code to exhibit identations on lines between \left-\right brackets.
To provide an example, the code that looks like this:

\frac{1}{2\lambda}
\left(
\left(
\Phi^{\frac{1}{2}}
+\Phi^{-\frac{1}{2}}
\right)\lambda
+\left(
\Phi^{\frac{1}{2}}
-\Phi^{-\frac{1}{2}}
\right)S_3
\right)\ket{0}\bra{0}

should look like this:

\frac{1}{2\lambda}
\left(
    \left(
        \Phi^{\frac{1}{2}}
        +\Phi^{-\frac{1}{2}}
    \right)\lambda
    +\left(
        \Phi^{\frac{1}{2}}
        -\Phi^{-\frac{1}{2}}
    \right)S_3
\right)\ket{0}\bra{0}
@LeoUschi232 LeoUschi232 added enhancement New feature or (non bug related) change to the program. untriaged Issue type still needs to be triaged or verified. labels Apr 26, 2024
@PHPirates
Copy link
Collaborator

Definitely agree with the proposed formatting, thanks for the suggestion. I don't think we should add settings for every one of the many indentation rules though, this should just be the default.

@PHPirates PHPirates removed the untriaged Issue type still needs to be triaged or verified. label Apr 26, 2024
@PHPirates PHPirates changed the title Modifiable ident rules Indent between \left and \right Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or (non bug related) change to the program.
Projects
None yet
Development

No branches or pull requests

2 participants