-
Notifications
You must be signed in to change notification settings - Fork 35
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
Interaction between babel and ltxtable #284
Comments
As I explained on tex.sx chat this is unrelated to the table packages,
produces due to a |
It seems there is a change in behavior in the LaTeX kernel [edit: actually, in \documentclass{article}
\usepackage{array, ltxtable}
\begin{document}
\begin{filecontents}[overwrite]{testing.tex}
\begin{longtable}{p{3em}X}
9999 & {\ifhmode Horizontal\else Vertical\fi}\\
9999 & {\ifhmode Horizontal\else Vertical\fi}\\
\end{longtable}
\end{filecontents}
\LTXtable{\linewidth}{testing.tex}
\end{document} |
@SverreStausland Just read David’s message, which gave me the workaround: use |
longtable now follows array
so the strut is delayed in everypar (so if the p-entry starts wih a list you don't have a paragraph with just an invisible strut before the list so while you see a change in behaviour for longtable it would always have been this way in a tabular using the array package, or as shown above in a standard parbox |
@jbezos you could try to delay the write with In color.sty I just documented that |
@davidcarlisle So |
As |
https://chat.stackexchange.com/transcript/message/32722915#32722915 :-) |
@jbezos I looked through my two log files twice to make sure that the package versions were the same, and now that I'm doing the same one more time, I notice that the versions for |
@davidcarlisle @jbezos Can someone explain how exactly one should "use |
@SverreStausland as I showed just make sure you don't start a vbox with |
If I understood it correctly, @jbezos will investigate and see if there's a solution that doesn't require the user to insert |
@SverreStausland yes but it's tricky, for If in your document you always have
But that is not a general solution |
I’ll investigate, but this doesn’t mean there will be a general solution. An option is to document |
Finally the current behavior will stay for a couple of reasons: (1) backwards compatibility; (2) \AddToHook{env/otherlanguage/before}{\leavevmode} So, I’ll just document neither |
Consider this MWE:
With
babel
v. 3.92 (compiled in Overleaf, pdflatex 2023), it produces this output:With
babel
v. 24.1 (compiled in texlive with pdflatex), it produces this output:The version numbers of
array
,tabularx
,longtable
, andltxtable
are the same for both compilations, and both are compiled with the same version ofpdflatex
, so the observed difference is due to changes in thebabel
package.I don't know if this is to be considered a bug or not, but the current outcome is surely not the desired one in my case. Can this be fixed, or is some other solution to be preferred?
The text was updated successfully, but these errors were encountered: