Skip to content

colortbl: dependency issue with xltabular #56

@ludoguard

Description

@ludoguard

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):

  • My setup:
    • fontenc.sty: not used
    • colortbl.sty: 2022/06/20 v1.0f Color table columns (DPC)
  • My colleagues' setup:
    • fontenc.sty: 2021/04/29 v2.0v Standard LaTeX package
    • colortbl.sty: 2024/07/06 v1.0i Color table columns (DPC)

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions