Issue #18: Each table starts with the same row colors.

This commit is contained in:
Wandmalfarbe 2017-11-13 13:13:16 +01:00
parent ae2a62e8a7
commit c0fd31ac1a

View File

@ -517,6 +517,15 @@ $if(tables)$
\definecolor{table-row-color}{HTML}{F5F5F5}
\rowcolors{3}{}{table-row-color!100}
% Reset rownum counter so that each table
% starts with the same row colors.
% https://tex.stackexchange.com/questions/170637/restarting-rowcolors
\let\oldlongtable\longtable
\let\endoldlongtable\endlongtable
\renewenvironment{longtable}{\oldlongtable} {
\endoldlongtable
\global\rownum=0\relax}
% Unfortunately the colored cells extend beyond the edge of the
% table because pandoc uses @-expressions (@{}) like so:
%