tabu-issues-for-future-maintainer / tabu

Emergency updates to the LaTeX tabu package
Other
39 stars 17 forks source link

tabulars in tabu might now be broken #7

Closed sergiocallegari closed 5 years ago

sergiocallegari commented 5 years ago

Nesting tabulars in tabu tabulars may seem a weird thing to do. The fact is that the "awesome" box package uses tabu internally to put admonition blocks around text to inform or alert readers about something particular and it may well happen to have the need for such an admonition block on the side of a piece of text including a tabular.

Recently, the ability of awesomebox to properly decorate text that includes tabulars is broken.

Because awesomebox is simple and not rapid changing code, the suspect is tabu. As of today, I am not 100% sure that the problem is with tabu, since I'll need to look into how awesomebox uses it to try to distill a minimal test case, but this issue is an early warning.

callegar commented 5 years ago

OK, I have a minimal example. Issue is triggered by loading color related packages (even if they go unused). In the following you get an error, that goes away by removing color. Same goes with xcolor.

\documentclass{article}
\usepackage{color}
\usepackage{tabu}

\begin{document}

\begin{itemize}
\item Foo Bar

  \begin{tabu} to \linewidth {m{2cm}X}
    pippo &
    \begin{tabular}{c}
      test test
    \end{tabular}\\
  \end{tabu}

\end{itemize}

\end{document}
callegar commented 5 years ago

Just noticed that this may be the same issue as in bug #1

FrankMittelbach commented 5 years ago

will track under #1. Current code already fixes that but is not final