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

Option for NOT to align the tailing "\\" #46

Closed
zhi-wang opened this issue Jun 13, 2016 · 2 comments
Closed

Option for NOT to align the tailing "\\" #46

zhi-wang opened this issue Jun 13, 2016 · 2 comments
Labels
align-at-ampersand-routine the align at ampersand; documented in lookForAlignDelims duplicate duplication of another issue implemented implemented tag means that either an enhancement or feature request has been implemented, or bugfix question user-centred question about behaviour of latexindent.pl

Comments

@zhi-wang
Copy link

Hi Chris, your tool is GREAT! It is the cure for the people like me with minor obsessions. But is possible to add an option in the settings that make it NOT to align the tailing "\"? E.g. if I had this long equation

A = BBBB + CCCC &+ DDD \
&+ EEEEEEEEEEEEEEEEEEEEEEEEEEEEEE \
&+ FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

latexindent always seemed to insert a lot of white space between DDD and "\" which actually didn't help if this line was super-long and the text editor was set to the "wrap" mode.

Or is it already there that I just haven't found it?

@cmhughes
Copy link
Owner

Hello Zhi-wang!
Thanks very much for your kind words, I'm glad that you like the tool :)

I believe that the issue you described was detailed here: #26 As such, you'll see that the develop branch (https://github.com/cmhughes/latexindent.pl/tree/develop) has it implemented, so if you pull from it, you should be able to use the feature.

I'm currently working on a completely new implementation (see https://github.com/cmhughes/latexindent.pl/tree/object-oriented-approach). All of the old features (including the one detailed above) will be available, together with quite a few more (related to modifying line breaks), but development is slow as I can only work on it in my 'spare' time :)

Hope this helps; let me know if your issue is indeed a duplicate of the one detailed above.
Best
Chris

@cmhughes cmhughes added duplicate duplication of another issue question user-centred question about behaviour of latexindent.pl labels Jun 14, 2016
@zhi-wang
Copy link
Author

Yes #26 is exactly what I asked! Thank you for your reply.

@cmhughes cmhughes added align-at-ampersand-routine the align at ampersand; documented in lookForAlignDelims implemented implemented tag means that either an enhancement or feature request has been implemented, or bugfix labels Jun 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
align-at-ampersand-routine the align at ampersand; documented in lookForAlignDelims duplicate duplication of another issue implemented implemented tag means that either an enhancement or feature request has been implemented, or bugfix question user-centred question about behaviour of latexindent.pl
Projects
None yet
Development

No branches or pull requests

2 participants