davidcarlisle / dpctex

Assorted TeX packages
94 stars 30 forks source link

colortbl: dependency issue with xltabular #56

Open ludoguard opened 2 months ago

ludoguard commented 2 months ago

Dear David, this might not be a bug because I'm using a quite old version of MikTeX (21.6). My colleague tried to reproduce the same environment like me and run into error when using xltabular package. We created the following MWE to reproduce the issue:

\documentclass[hidelinks,oneside]{book}
\usepackage[T1]{fontenc}
\usepackage{xltabular}
\usepackage{colortbl}
\listfiles

\begin{document}
  \begin{xltabular}{\textwidth}{|l|X|X|}
    \hline First column & Second column & Third column \\ \hline 
  \end{xltabular}
\end{document}

On his setup, my colleague get the following error message (on my setup, it runs fine):

! Undefined control sequence.
<argument> \g__tbl_row_int 

l.10   \end{xltabular}

If the line \usepackage{colortbl} is commented, the error disappear and the *.tex file compiles successfully.

For an unknown reason, all the package files listed in the log are identical except for this (I thought that not upgrading to a newer version of MikTeX would prevent such differences):

I thought you might be interested in this feedback. For us, the quick fix would be to replace the colortbl.sty file on my colleagues’ systems with the version dated 2022/06/20 v1.0f.

u-fischer commented 3 weeks ago

The document compiles without error in an up-to-date miktex. But your colleague has a new colortbl but only an old LaTeX format and this errors. Im miktex packages can get out of sync like this in a number of ways: At first if you install only a basic miktex and newer packages are installed with the on-the-fly installation. At second if have a multi-user installation but do updates only in user or only in admin mode. At last naturally if you update only selected packages.