Historique des modifications [retour]
cliquez ici pour masquer/afficher la révision 2
mineure

09 Oct '24, 15:15

denis's gravatar image

denis
7.4k2510

Deux packages (entre autres) peuvent être utilisés pour ce genre de choses : `tabularray` et `nicematrix`. Voici un ECM : \documentclass{article} \usepackage{xcolor} \usepackage{tabularray} \usepackage{nicematrix} \begin{document} \section{Avec \texttt{tabularray}} \begin{tblr}{ cell{1}{2}={red!50} } \hline Alpha & Beta & Gamma \\ \hline Epsilon & Zeta & Eta \\ \hline Iota & Kappa & Lambda \\ \hline \end{tblr} \section{Avec \texttt{nicematrix}} \begin{NiceTabular}{ccc}[color-inside] \hline Alpha & \cellcolor{red!50} Beta & Gamma \\ \hline Epsilon & Zeta & Eta \\ \hline Iota & Kappa & Lambda \\ \hline \end{NiceTabular} \end{document}
cliquez ici pour masquer/afficher la révision 1

09 Oct '24, 15:10

denis's gravatar image

denis
7.4k2510

Deux packages (entre autres) peuvent être utilisés pour ce genre de choses `tabularray` et `nicematrix`. Voici un ECM : \documentclass{article} \usepackage{xcolor} \usepackage{tabularray} \usepackage{nicematrix} \begin{document} \section{Avec \texttt{tabularray}} \begin{tblr}{ cell{1}{2}={red!50} } \hline Alpha & Beta & Gamma \\ \hline Epsilon & Zeta & Eta \\ \hline Iota & Kappa & Lambda \\ \hline \end{tblr} \section{Avec \texttt{nicematrix}} \begin{NiceTabular}{ccc}[color-inside] \hline Alpha & \cellcolor{red!50} Beta & Gamma \\ \hline Epsilon & Zeta & Eta \\ \hline Iota & Kappa & Lambda \\ \hline \end{NiceTabular} \end{document}

C'est votre première visite ici ? Consultez la FAQ !

×