Browse Source

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

pull/24/head
Wandmalfarbe 7 years ago
parent
commit
c0fd31ac1a
  1. 9
      eisvogel.tex

9
eisvogel.tex

@ -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:
%

Loading…
Cancel
Save