-
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
the future of multirows in _tabularray_ package would let latexindent format the code incorrectly #543
Comments
The |
The MWE is also what latexindent output show. |
latexindent gives text output, not images
…On Fri, 10 May 2024, 12:51 Mikachu2333, ***@***.***> wrote:
The actual/given output should be tex code, not a screen shot.
The MWE is also what latexindent output show.
—
Reply to this email directly, view it on GitHub
<#543 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQ7CYAOOPXGV57JBG6YVFDZBSYF5AVCNFSM6AAAAABHQOM2FOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBUGQ3TIMRVGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Latex output after latexindent formatted.
|
When I start with \documentclass{ctexrep}%Chinese report
\usepackage{tabularray}%tabular
\begin{document}
\begin{tblr}{
cells={c,m},
hlines,
vlines,
}
AAAAAAA & BBBBBBB \\
c & {f \\g} \\ %multirows
d & h \\
e & {i \\j} %multirows
\end{tblr}
\end{document} and run
then I receive
which is what I would expect. |
I apologize for not understanding what you said and answering irrelevantly. What i input\documentclass{ctexrep}%Chinese report
\usepackage{tabularray}%tabular
\begin{document}
\begin{tblr}{
cells={c,m},
hlines,
vlines,
}
AAAAAAA & BBBBBBB \\
c & {g\\h} \\ %multirows (g&h)
d & i \\
{e\\f} & j %multirows (e&f)
\end{tblr}
\end{document} Command I uselatexindent main.tex --modifylinebreaks --GCString --yaml=defaultIndent: ' ' Latexindent output(Success without error or warning as yours) \documentclass{ctexrep}%Chinese report
\usepackage{tabularray}%tabular
\begin{document}
\begin{tblr}
{
cells={c,m},
hlines,
vlines,
}
AAAAAAA & BBBBBBB \\
c & {g \\h} \\
d & i \\
{e \\f} & j
\end{tblr}
\end{document} BUT What I want(Same as what i input, want latexindent understand the multirow style cell and normal cell) \documentclass{ctexrep}%Chinese report
\usepackage{tabularray}%tabular
\begin{document}
\begin{tblr}{
cells={c,m},
hlines,
vlines,
}
AAAAAAA & BBBBBBB \\
c & {g\\h} \\ %multirows (g&h)
d & i \\
{e\\f} & j %multirows (e&f)
\end{tblr}
\end{document} |
Thanks, that's clear. I think we need a new feature to specify the double back slash regex within each lookForAlignDelims field. Leave it with me, I hope to get to it soon, but time is pressured for me at the moment. |
Thanks for timely answer! Please prioritize your own tasks. This issue is just a improvement, not an extremely harmful crash or bug, there's no need to rush to finish it. |
When using the tabularray package to merge cells (multiple rows), latexindent always incorrectly recognizes multiple rows cells.
MWE (After formatted)
yaml settings
No changes have been made except
defaultindent: 4spaces
. Others have no impact on the results.actual/given output
Success with no error
![pkZrYy8.jpg](https://camo.githubusercontent.com/71341d5add5fc435e360e90f0ae1729fc6f681fbd3fe98acea9dbeca3a9a8d33/68747470733a2f2f7332312e617831782e636f6d2f323032342f30352f31302f706b5a725979382e6a7067)
desired or expected output
The text was updated successfully, but these errors were encountered: