-
Notifications
You must be signed in to change notification settings - Fork 83
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
Incorrect column breaking when using multiColumnGrouping
#301
Comments
Please see https://latexindentpl.readthedocs.io/en/latest/sec-default-user-local.html#lst-tabular2yaml You will need to specify it for the array environment. |
I use the yaml setting lookForAlignDelims:
tabular:
multiColumnGrouping: 1 but I forgot to put it here. |
Your example uses an array, so your yaml needs to use array. |
That's not correct.
This already happens. |
File example1.tex \documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\begin{array}{c*{20}{c}r}
n & \multicolumn{20}{l}{abc} & hello \\
2 & + & & & & & & & & & & & & & & & & & & & & 24 \\
\end{array}
\]
\end{document} File example1.yaml (I have committed all lines of lookForAlignDelims:
array:
multiColumnGrouping: 1 powershell command: \documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\begin{array}{c*{20}{c}r}
n & \multicolumn{20}{l}{abc} & hello \\
2 & + & & & & & & & & & & & & & & & & & & & & 24 \\
\end{array}
\]
\end{document} It is not desired. Edit: make the example smaller. Sorry I forget the changing of |
I can confirm the results you describe. This is not intended behaviour. I'll look into it, thanks for reporting! |
This is fixed as of 54438d6. It'll be part of the next release. I'll keep this issue open until the release. Thanks for reporting! |
resolved as of https://github.com/cmhughes/latexindent.pl/releases/tag/V3.14 upload to ctan imminent. |
Please provide the following when posting an issue:
original .tex code
yaml settings
Please paste your YAML settings (if any) here
actual/given output
desired or expected output
anything else
We should use
#1
in\multicolumn#1
for the columns it occupies, instead of the fixed number2
.The text was updated successfully, but these errors were encountered: