How to create a table using latex – only it's 1st row bold and center and others are left side and normal.
\begin{table}
\renewcommand{\arraystretch}{1.5}
\caption[m1]{ m2}
\label{Hardware}\centering
\begin{tabular}{|c|c|c|c|}
\hline
a & b & c & d \\ \hline
a & b & c & d\\ \hline
a & b & c & d \\ \hline
\end{tabular}
\end{table}
Best Answer
Tabular does not have a concept of a header. If you want to have one, you have to modify the first row yourself. As Mico pointed out
Of course, this is somewhat verbose and cumbersome. Two possible simplifications:
First possibility: Define a macro for this
and then use it:
Second possibiliy: Alternatively, use the tabu package, which allows to specify individual row formating via the
\rowfont
command