tabulary doesn't work with array [2024/05/23 v2.6c]

David Carlisle d.p.carlisle at gmail.com
Wed Jun 5 02:16:25 CEST 2024


On Wed, 5 Jun 2024 at 01:01, Akira Yokosawa <akiyks at gmail.com> wrote:

> David,
>
> Thanks for the quick update!
> It works with array v2.6c.
>
> However, It doesn't work with array v2.5g.
> My MWE with the RequirePackage enabled stops with:
>
> ------------------------
> ! Undefined control sequence.
>
> \TY at box ...raybackslash \tyformat \insert at pcolumn
>
>                                                   \@endpbox
>
> l.9 \end{tabulary}
>
>
> ?
>
> ! Emergency stop.
> -------------------------
>
> Is this intended?
>

Basically yes, array is part of the core latex tools release so you
shouldn't have an old array package and a new latex
and if you have an old latex you don't need the new tabulary.  It would of
course in principle be possible to make the
code have conditionals everywhere but it slows things down and makes the
code even harder to maintain.
So current plan is that the June 2024 latex release (should have) the new
tabulary, and older releases should be used with
the versions of tabulary that came with them.

I should though probably add a
\NeedsTeXFormat{LaTeX2e}[2024/06/01]
to tabulary (to match the one in array) so you get a more useful error
message as the package loads
rather than just getting an undefined command in the middle of the
processing.

David



> Thanks, Akira
>
>
> On 2024/06/05 2:22, David Carlisle wrote:
> > Akira,
> > thanks again for the report.
> > I have a few more tests to do but I think the version at
> > https://github.com/davidcarlisle/dpctex/tree/main/tabulary
> > should work
> >
> > David
> >
> >
> > On Mon, 3 Jun 2024 at 10:01, Akira Yokosawa <akiyks at gmail.com> wrote:
> >
> >> Hi David and Frank,
> >>
> >> After today's update (tlmgr update --all), which contains tools 71408,
> >> I encountered build error in one of my documents with tabulary.
> >>
> >> MWE:
> >>
> >> -----------------------------
> >> \documentclass{article}
> >> %\RequirePackage{array}[=2023-11-01]
> >> \usepackage{tabulary}
> >>
> >> \begin{document}
> >>
> >> \begin{tabulary}{6cm}{lLL}
> >>   aaaa & bbbbb bbbbb & cccc cccc cccc cccc \\
> >> \end{tabulary}
> >>
> >> \end{document}
> >> ------------------------------
> >>
> >> Log from pdflatex:
> >>
> >> ------------------------------
> >> This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024)
> (preloaded
> >> format=pdflatex)
> >>  restricted \write18 enabled.
> >> entering extended mode
> >> (./mwe.tex
> >> LaTeX2e <2024-06-01>
> >> L3 programming layer <2024-05-08>
> >> (/usr/local/texlive/2024/texmf-dist/tex/latex/base/article.cls
> >> Document Class: article 2024/02/08 v1.4n Standard LaTeX document class
> >> (/usr/local/texlive/2024/texmf-dist/tex/latex/base/size10.clo))
> >> (/usr/local/texlive/2024/texmf-dist/tex/latex/tabulary/tabulary.sty
> >> (/usr/local/texlive/2024/texmf-dist/tex/latex/tools/array.sty))
> >>
> >>
> (/usr/local/texlive/2024/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def)
> >> (./main.aux)
> >> ! Missing \cr inserted.
> >> <inserted text>
> >>                 \cr
> >> l.9 \end{tabulary}
> >>
> >> ?
> >> -------------------------------
> >>
> >> Workaround is to use RequirePackage{array}[=2023-11-01]
> >> (shown as a comment in the MWE).
> >>
> >> It looks to me like array v2.6 is a full rewrite using L3.
> >> Would it be possible to make tabulary compatible with it?
> >>
> >> Best Regards,
> >>
> >> Akira
> >>
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-live/attachments/20240605/bd035786/attachment-0001.htm>


More information about the tex-live mailing list.