mirror of
https://github.com/Wandmalfarbe/pandoc-latex-template.git
synced 2025-01-18 02:40:10 +00:00
Issue #18: Each table starts with the same row colors.
This commit is contained in:
parent
ae2a62e8a7
commit
c0fd31ac1a
@ -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…
Reference in New Issue
Block a user