mirror of
https://github.com/Wandmalfarbe/pandoc-latex-template.git
synced 2025-01-31 08:25:34 +00:00
Merge pull request #47 from qjqqyy/patch-1
Fix alternating row colors in array/matrix.
This commit is contained in:
commit
fd7a45b71e
@ -544,14 +544,15 @@ $if(tables)$
|
||||
\arrayrulecolor{table-rule-color} % color of \toprule, \midrule, \bottomrule
|
||||
\setlength\heavyrulewidth{0.3ex} % thickness of \toprule, \bottomrule
|
||||
\renewcommand{\arraystretch}{1.3} % spacing (padding)
|
||||
\rowcolors{3}{}{table-row-color!100} % row color
|
||||
|
||||
% 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} {
|
||||
\renewenvironment{longtable}{
|
||||
\rowcolors{3}{}{table-row-color!100} % row color
|
||||
\oldlongtable} {
|
||||
\endoldlongtable
|
||||
\global\rownum=0\relax}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user