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

[Feature Request] Advanced Formatter #132

Open
2 tasks done
sleepymalc opened this issue May 15, 2024 · 5 comments
Open
2 tasks done

[Feature Request] Advanced Formatter #132

sleepymalc opened this issue May 15, 2024 · 5 comments
Assignees
Labels
feature request Request for new feature

Comments

@sleepymalc
Copy link

Disclaimer

Please make sure all the items below is checked (i.e., prefixed with "- [x]")

  • The request feature has not been addressed in the feature request list.
  • The design of the feature does not require detailed discussion, or existing discussion with drawn conclusion can be found in Discussions Area at: [paste the link here]

Motivation

Please give strong enough reason(s) why the feature is demanded.

  • A clean formatting is always a good thing to have.
  • The current formatter doesn't seem to be enough

Feature Description

A clear and concise description of what you want to happen under what circumstance.

  • Support some existing formatter like latexindent. This is what LaTeX-Workshop used, so I guess this is possible. Currently the functionality of the default formatter is quite bad, e.g., it doesn't support any indentation fixing.
  • Other formatter like for .bib files.

[Optional] Additional context

Please strike out any inappropriate items below. If you are not aware of the difference, please ignore this section.

  • Applicable Overleaf Edition: Official / Community / Enterprise (Server Pro)
  • Applicable Extension Range: Desktop Extension / Web Extension
@sleepymalc sleepymalc added the feature request Request for new feature label May 15, 2024
@iamhyc
Copy link
Owner

iamhyc commented May 15, 2024

@QianrenLi Please have a look at it when you are free.

@sleepymalc
Copy link
Author

I think suddenly my local formatter is working again. Not sure why however.

@benlw
Copy link

benlw commented Jun 19, 2024

I also used the local latexindent, but sometimes it failed, and I don't know why.

@EasonYWei
Copy link

Same question, latexindent does not work anymore.

@QianrenLi
Copy link
Collaborator

Sorry for the late.
In my case, latexindent works with the following steps. Please let me know if this works for you (Take main.tex as an example):

  1. Create a local replica for your project.
  2. Either manually run latexindent.exe -w .\main.tex or install the LaTeXindent extension. If you choose the latter, update the latexindent.executable path to match your local latexindent path. You may also want to set latexindent as the default formatter for better performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request for new feature
Projects
None yet
Development

No branches or pull requests

5 participants