-
Notifications
You must be signed in to change notification settings - Fork 17
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
Simplest MWE to have an alternating row color #18
Comments
A simpler mwe:
\documentclass{article}
\usepackage{tabu}
\usepackage[table]{xcolor}
\begin{document}
\begin{tabu}{l}
\rowcolor{blue} in tabu \\ wrong
\end{tabu}
\begin{tabular}{l}
\rowcolor{blue} in tabular \\ all right
\end{tabular}
\end{document} Further more, I found the problem is concerned with modifications done by tabu-fix about "defining classz to use vcenter, reverting a change in array package". \def\tabu@classz{%
% \ifx\tabu@prepnext@tok\prepnext@tok% in tabu
% \expandafter\tabu@classz@oldarray
% \else
\tabu@classzORI
% \fi
}% I hardly know any thing about the kernel of tabular things in LaTeX, hence this comment is just an amateur attempt. The TeX Live used on overleaf.com is still at version 2017, and is free-of-bug on this problem, which may help compare and debug. Some of my version info:
|
Follow proposed resolution of background color bug tabu-issues-for-future-maintainer#18 (comment)
According to my experiments, TeX Live 2017 is the last version where In case it helps, the versions are:
I'm currently investigating the |
I tried in this question to make the simplest document having a table with an alternating row color but it didn't work as expected. I thought loading some packages might be needed (e.g. xcolor, colortbl) but nothing changed.
So, I have two questions: 1. why didn't my code work? 2. what are the required packages to get the job done in the easiest way?
The text was updated successfully, but these errors were encountered: