In a table created with tabularx of 6 columns and 7 rows (in the minimal example, I deleted some), I want to place figures created with tikz in the header.
These figures have already been defined and are used in another document. In order to be able to contain them in the header while being visible from the bottom of the class, I reduced them by a factor of 0.05.
By reducing this factor to 0.03, the problem disappears, but as a result the figures become too small to be visible from the back of the room.
In addition, I want to place the title of the header and the first column in the first cell at the top left separated by a diagonal.
I have tested the solutions to the following questions and none of them solve alignment problems.
\def\tabularxcolumn#1{m{#1}}from Vertically center text in tabularx table\backslashboxfrom slashbox alternativemakecellfrom slashbox alternative- tikz from Diagonal lines in table cell But I didn't quite understand his code.
\documentclass[aspectratio=1610,10pt]{beamer} % Présentation générale et mise en page
\usepackage{tabularx}
\usepackage{tikz}
\usepackage{slashbox,pict2e}
\usetheme{Warsaw}
\usefonttheme[onlymath]{serif}
\usecolortheme{dolphin}
\useoutertheme{infolines}
\begin{document}
\def\tabularxcolumn#1{m{#1}}
\begin{frame}{Bilan}
\begin{tabularx}{7cm}{|c|*{2}{X|}}
\hline
\backslashbox{Unités}{Figures} %\rule[0pt]{0pt}{6mm}
& \centering\tikz[scale=.05]\draw[thick](0,0)--(6,6)--(0,12)--(0,18)--(6,12)--(12,12)--(18,18)--(18,12)--(12,6)--(18,0)--cycle;
& \centering\tikz[scale=.05]\draw[thick](0,0)--(0,9)--(8,15)--(16,9)--(16,0)--cycle;
\tabularnewline
\hline
$r_1$ \tikz[scale=.05]\draw(0,0)rectangle(6,3);&\rule[0mm]{0pt}{8mm} & \tabularnewline
\hline
$t_1$ \tikz[scale=.05]\draw(0,0)--(3,3)--(6,0)--cycle;&\rule[0mm]{0pt}{8mm} & \tabularnewline
\hline
\end{tabularx}
\end{frame}
\end{document}
How to make a correct diagonal line and center the figures correctly in the header without further reducing the size of the figures?
Translated with www.DeepL.com/Translator




\arraystretch\ht\strutboxabove the baseline and\arraystretch\dp\strutboxbelow the baseline. If the height and/or depth of a "box" is large enough, it will touch the top and/or bottom of the cell. If any box in the row exceeds these limits, they will be increased for the whole row. – John Kormylo Sep 22 '18 at 12:55