Skip to content
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

Environments with b-type argument cannot not be used in argument of array v2.6g 's >{...} #1539

Open
AlexaraWu opened this issue Nov 5, 2024 · 2 comments

Comments

@AlexaraWu
Copy link

Brief outline of the bug

Environments with b-type argument cannot not be used in argument of array v2.6g 's >{...}.

Minimal example showing the bug

\RequirePackage{latexbug}
\documentclass{article}

% \usepackage{array}[=v2.5] % works
\usepackage{array} % don't work

\NewDocumentEnvironment{foo}{b}{\textit{#1}}{}

\newcolumntype{\bar}{>{\begin{foo}}c<{\end{foo}}}

\begin{document}

\begin{tabular}{\bar c}
  Hello & World \\
\end{tabular}

\end{document}

Log file (required) and possibly PDF file

mwe.log

@josephwright
Copy link
Member

Cell collection is tricky - what's the motivation here of using a b spec rather than say collcell?

@josephwright
Copy link
Member

My feeling here is that this usage is not supported, and we can address in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants