Is there a package for automatically managing table headers and formatting?
For example I don't want to have to manually embolden every header entry individually, not to mention the extra clutter that would introduce.
This is a general question, but if you prefer to have compilable example to apply the solution to, suppose I want the table headers of row 1 to be automatically emboldened:
\documentclass{article}
\usepackages{booktabs}
\usepackage[T1]{fontenc}
\begin{document}
\begin{table}[h]
\centering
\begin{tabular}{l l l l}
\toprule
Experiment & Enzyme & Substrate & Enzyme inhibitor\\
\midrule
A & Trypsin & Casein & Trypsin inhibitor\\
B & Chymotrypsin & Casein & Trypsin inhibitor\\
C & Chymotrypsinogen & Casein & Trypsin inihibitor\\
\bottomrule
\end{tabular}
\end{table}
\end{document}
Edit: this question is very similar to Make first row of table all bold but is subtly different, since I don't want to have to create new definitions or engage in any kind of programming. I just want a package that will handle that if possible, thanks.
\usepackage{array} \newcolumntype{$}{>{\global\let\currentrowstyle\relax}} \newcolumntype{^}{>{\currentrowstyle}} \newcommand{\rowstyle}[1]{\gdef\currentrowstyle{#1}% #1\ignorespaces }
and I got kind of turned off. I simply didn't understand it, and needed a memorable short-term solution which I could pull out at any time. Also, I'd be tempted to just manually embolden the header entries if it took that much work to get the desired effect - it'd certainly be quicker for small tables. Did that help to clarify my motives...?