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

Add support for the table code. #26

Open
lartpang opened this issue Sep 19, 2024 · 5 comments
Open

Add support for the table code. #26

lartpang opened this issue Sep 19, 2024 · 5 comments

Comments

@lartpang
Copy link

lartpang commented Sep 19, 2024

@WGUNDERWOOD
I was using LaTeX workshop in VSCode to write documents, and the latexindent it uses by default works great, but it's too slow. I saw that the latest version of LaTeX workshop supports tex-fmt. after learning how fast it is, I immediately tried it. But unfortunately it doesn't seem to handle table code very well. However latexindent aligns all the & very well.

@lartpang
Copy link
Author

@Kami-prog

I directly use the binary file of tex-fmt.
What is the purpose of this C compiler of yours?

@WGUNDERWOOD
Copy link
Owner

I could be interested in adding support for aligning ampersands in tables. However some thought would have to be put in to the implementation.

@github-staff github-staff deleted a comment from Kami-prog Sep 25, 2024
@Timmyfox
Copy link

Timmyfox commented Nov 2, 2024

Just wanted to chime in and mention that this probably the biggest thing I'm missing right now with this formatter. Latexindent is extremely convenient with how it aligns all the &'s in the table and I find myself having to constantly switch back and forth to make use of missing features like this one. Hope to see it eventually implemented!

@mxwell-dev
Copy link

Some input regarding proper implementation: One "edge case" not handled well by latexindent (if used as reference behaviour) is double backslashes \\ in the table, which are not row-terminators. E.g. when using \makecell from the makecell package.

@vicapow
Copy link

vicapow commented Jan 14, 2025

Here's a reference to the implementation in unified-latex if it helps: https://github.com/siefkenj/unified-latex/blob/main/packages/unified-latex-prettier/libs/printer/environment.ts#L148

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

No branches or pull requests

5 participants