1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
# tablestyles package
# Matthew Bertucci 1/27/2022 for v0.1
#include:array
#include:etoolbox
#include:xcolor
# xcolor loaded with table option
#include:ragged2e
\tablestyle
\tablestyle[style%keyvals]
#keyvals:\tablestyle
default
roman
sansbold
sansboldbw
%tablestyle
#endkeyvals
\tbegin#t
\tend#t
\tbody#t
\theadstart#t
\tsubheadstart#t
\theadend#t
\tsubheadend#t
\thead#t
\tsubhead#t
\theadrow{number of cells}{text}#t
\tsubheadrow{number of cells}{text}#t
\tlinetop#*t
\tlinemid#*t
\tlinebottom#*t
\setuptablefontsize{name}{size definition}
\tablefontsize{name}
\setuptablecolor{color name}{definition}#s#%color
\tablecolor{color}
\tablealtcolored
\disablealternatecolors
\coloredhline{color}#t
\coloredvline{color}#t
\setuptablestyle{style name}{definition}#s#%tablestyle
\resettablestyle
\tableitemize
# from table option of xcolor
#include:colortbl
\rowcolors{row}{odd-row-color}{even-row-color}
\rowcolors[commands]{row}{odd-row-color}{even-row-color}
\rowcolors{row}{color}{color}#S
\rowcolors[commands]{row}{color}{color}#S
\rowcolors*{row}{odd-row-color}{even-row-color}
\rowcolors*[commands]{row}{odd-row-color}{even-row-color}
\rowcolors*{row}{color}{color}#S
\rowcolors*[commands]{row}{color}{color}#S
\showrowcolors
\hiderowcolors
\rownum
|