Hello this is my table:
\documentclass[12pt, oneside,titlepage]{book} % add a4paper
\usepackage[italian]{babel}
\usepackage{geometry}
%\geometry{a4paper, top = 2cm, right = 2cm, left = 2cm, bottom = 2cm}
% Tabelle
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{tcolorbox}
\usepackage{tabularx}
\usepackage{array}
\usepackage{colortbl}
\tcbuselibrary{skins}
\newcolumntype{Y}{>{\raggedleft\arraybackslash}X}
\tcbset{tab1/.style={fonttitle=\bfseries\large,fontupper=\normalsize\sffamily,
colback=yellow!10!white,colframe=red!75!black,colbacktitle=Salmon!40!white,
coltitle=black,center title,freelance,frame code={
\foreach \n in {north east,north west,south east,south west}
{\path [fill=red!75!black] (interior.\n) circle (3mm); };},}}
\tcbset{tab2/.style={enhanced,fonttitle=\bfseries,fontupper=\normalsize\sffamily,
colback=yellow!10!white,colframe=red!50!black,colbacktitle=Salmon!40!white,
coltitle=black,center title}}
\begin{document}
\begin{tcolorbox}[tab2,tabularx={X|Y|Y|Y},title=Viste materializzate,boxrule=0.5pt]
Nome vista & Tempo (s) & Dimensione & Guadagno \\ \hline \hline
A & 0.2 & 16 kB & 0 \%\\ \hline
B & 10 & 4336 kB & 1 \% \\ \hline
\end{tcolorbox}
\end{document}
But I would like to get the template similar to this, that is with "Senza vista" node and "senza indici" and "con indici" children and so on. How can I do?
Best Answer
With
{NiceTabular}
ofnicematrix
:You need several compilations (because
nicematrix
uses PGF/Tikz nodes under the hood).