mirror of
https://github.com/Wandmalfarbe/pandoc-latex-template.git
synced 2025-02-22 10:11:08 +00:00
Tables have now alternate row colors.
This commit is contained in:
parent
747cad0197
commit
2337e82b92
@ -417,6 +417,15 @@ $endif$
|
|||||||
\usepackage{tabularx}
|
\usepackage{tabularx}
|
||||||
\renewcommand{\arraystretch}{1.6} % table spacing
|
\renewcommand{\arraystretch}{1.6} % table spacing
|
||||||
|
|
||||||
|
%
|
||||||
|
% tables alternate row colors
|
||||||
|
% https://tex.stackexchange.com/questions/61747/how-to-apply-alternate-row-coloring-in-a-longtable-in-lyx
|
||||||
|
%
|
||||||
|
\definecolor{table-gray}{HTML}{F5F5F5}
|
||||||
|
\let\oldlongtable\longtable
|
||||||
|
\let\endoldlongtable\endlongtable
|
||||||
|
\renewenvironment{longtable}{\rowcolors{2}{white}{table-gray}\oldlongtable} {
|
||||||
|
\endoldlongtable}
|
||||||
|
|
||||||
%
|
%
|
||||||
% remove paragraph indention
|
% remove paragraph indention
|
||||||
|
Loading…
x
Reference in New Issue
Block a user