added colored tables
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{beamer}}
|
||||
\ProcessOptions\relax
|
||||
|
||||
\LoadClass[final, 10pt, aspectratio=169]{beamer} % t: align columns to top
|
||||
\LoadClass[final, 10pt, aspectratio=169, xcolor=table]{beamer} % t: align columns to top
|
||||
\beamertemplatenavigationsymbolsempty
|
||||
|
||||
|
||||
@@ -266,3 +266,19 @@ BoldItalicFont = *-Bold-Italic
|
||||
|
||||
|
||||
|
||||
% colored tables
|
||||
|
||||
\newenvironment{ctabular}[3]{
|
||||
\newcolumntype{L}{>{\ifnumequal{\rownum}{1}{\bfseries\color{#3}}}l}
|
||||
\newcolumntype{C}{>{\ifnumequal{\rownum}{1}{\bfseries\color{#3}}}c}
|
||||
\newcolumntype{R}{>{\ifnumequal{\rownum}{1}{\bfseries\color{#3}}}r}
|
||||
|
||||
\rowcolors{2}{#2!20}{#2!10}
|
||||
\begin{tabular}{#1}
|
||||
\rowcolor{#2}
|
||||
}{
|
||||
\end{tabular}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user