I have 3 tblr sub-tables (inside a table environment), and I would like to put the first 2 tblr sub-tables one beside the other, and the third tblr sub-table under the first two ones. How can I do it?
(please see the code below).
\documentclass[twocolumn,fleqn,10pt,dvipsnames,table]{wlscirep_modified}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{multirow, booktabs, tabularx}
\usepackage{makecell}
\usepackage{xurl}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{tabularx}
\usepackage{xfp}
\usepackage{color}
\usepackage{tabularray}
\usepackage{tikz}
\usepackage{textcomp,gensymb}
\usepackage{tabulary,longtable,afterpage}
\makeatletter
\newcommand{\aftertwo}[1]{\afterpage{\if@firstcolumn #1
\else\afterpage{#1}\fi}}
\makeatother
\begin{document}
% -------------------
% Two columns
\aftertwo{
\onecolumn
%
\begingroup
\setlist[itemize]{label={--},nosep, leftmargin=,
before=\vspace{-\baselineskip}}
\setlength{\extrarowheight}{1.5pt}
\begin{small}
% -------------------
\begin{table}[ht]
\centering
\caption{A general description about subcaption \textbf{(a)}, subcaption \textbf{(b)} and subcaption \textbf{(c)}...
}
\subcaption{Some text for this subcaption ...}
\begin{tblr}
{
width = \textwidth,
colspec = {lllllllll},
hlines,
row{1} = {font=\bfseries},
hline{1,Z}=0.8pt, hline{2}=0.4pt,
hline{1-12}=solid,
rowhead=1
}
Feature & A & B & C \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
\end{tblr}
\bigskip
\subcaption{Some text here ...}
\begin{tblr}
{
width = \textwidth,
colspec = {lllllllll},
hlines,
row{1} = {font=\bfseries},
hline{1,Z}=0.8pt, hline{2}=0.4pt,
hline{1-12}=solid,
rowhead=1
}
Feature & A & B & C \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
\end{tblr}
\bigskip
\subcaption{Some other text here ...}
\begin{tblr}
{
width = \textwidth,
colspec = {lllllllll},
hlines,
row{1} = {font=\bfseries},
hline{1,Z}=0.8pt, hline{2}=0.4pt,
hline{1-12}=solid,
rowhead=1
}
Feature & A & B & C \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
A quite long text here & 0.84 & 3020.15 & 0.78 \
\end{tblr}
\end{table}
% -------------------
% Two columns
\end{small}
\endgroup
\twocolumn
}
% -------------------
\end{document}





minipages to place your tables next to each other... – samcarter_is_at_topanswers.xyz Dec 14 '23 at 09:46tblrsub-tables (i.e.(a) and (b))withminipage, but I do not see any difference. This is what I added:\begin{minipage}{.5\textwidth}\centering \begin{tblr} ...my table... \end{tblr} \end{minipage}– Ommo Dec 14 '23 at 10:00minipages that are both.5\textwidthwide is already too much to have them in one single row. You probably need to add some%to suppress any space between them (or use.45\textwidthand put some\hfillbetween). – Jasper Habicht Dec 14 '23 at 10:04tableandtblrenvironments... – Ommo Dec 14 '23 at 10:06