in my table, I would like the 2nd tikzpicture column to be centered (like the word "convergent") and each word in the 4th column cell to be centered as well ("biconvex" is bottom centered relative to the lens representation)
My code :
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage{tabularray}
\usepackage{tikz}
\begin{document}
\begin{tblr}{
vspan=even, hspan=minimal,
hline{2,5}={blue},
colspec={Q[c] Q[c] Q[c] Q[c]}, rowspec={Q[m] Q[m] Q[m] Q[m] Q[m] Q[m] Q[m]},
cell{2}{1}={r=3}{c},
cell{5}{1}={r=3}{c},
colsep=3pt,
row{1}={cmd=\textbf},
}
type de lentille & représentation schématique & forme & représentation\\
convergente & \begin{tikzpicture}[scale=0.5]
\draw[<->] (0,0) -- (0,2);
\end{tikzpicture}& biconvexe & \begin{tikzpicture}[scale=0.5]
\draw (0,-1) to[bend left=30] (0,1) to [bend left=30] (0,-1);
\end{tikzpicture}\\
& & plan convexe & \begin{tikzpicture}[scale=0.5]
\draw (0,-1) to[bend left=30] (0,1) to (0,-1);
\end{tikzpicture}\\
& & ménisque convergent & \begin{tikzpicture}[scale=0.5]
\draw (0,-1) to[bend left=40] (0,1) to [bend right=20] (0,-1);
\end{tikzpicture}\\
divergente & & biconcave & \\
& & plan concave & \\
& & ménisque divergent & \\
\end{tblr}
\end{document}
Best Answer