Comment changer la fonte d'une colonne?
Le package array permet d'insérer systématiquement des
commandes entre le contenu d'une colonne et son séparateur. Cela se fait au
moyen des « descripteurs » de colonnes
>
et <
.
Voici comment tout cela fonctionne:
\begin{tabular}{|>{\scshape}l|>{\(}c<{\)}|>{\itshape}r|} \hline Hugo & 1831 & Les feuilles d'automne \\ Balzac & 1832 & Le colonel Chabert \\ Maupassant & 1887 & Le Horla \\ \hline \end{tabular}
donne:
![LaTeX
\documentclass{article}
\usepackage{array}
\begin{document}
\thispagestyle{empty}
\begin{tabular}{|>{\scshape}l|>{\(}c<{\)}|>{\itshape}r|}
\hline
Hugo & 1831 & Les feuilles d'automne \\
Balzac & 1832 & Le colonel Chabert \\
Maupassant & 1887 & Le Horla \\
\hline
\end{tabular}
\end{document}](/lib/exe/fetch.php?media=wiki:latex:/imgaafc11e852fd3034189676e8e709b81e.png)