latex

Create a bold or italic column in a latex table or tabular environment

To create a table in latex one can use the tabular environment and surround it with a table block to add a caption and make it floating.

The table below starts with a column that is left-aligned, then there is a a column that will be in bold and is centered and finally there is an italic column that is right-aligned.


\begin{table}
\begin{tabular}{l>{\bfseries}c>{\italic}r}
apple & red & round\\
melon & green & round\\
cookie & brown & square\\
\end{tabular}
\caption{Some objects, their color and their shape.}
\end{table}

Syndicate content