TransWikia.com

Subtables won't center within threeparttable

TeX - LaTeX Asked by Manuel Popp on July 6, 2021

I try to center two subtables of which the second one has a tablenote to add which is why I am using a threeparttable. Unfortunately, I cannot get the second subtable centered on the page, it is always shifted to the left… what am I doing wrong here?

documentclass[12pt]{scrartcl}
usepackage[utf8]{inputenc}
usepackage{subcaption}
usepackage{booktabs}
usepackage{threeparttable}
usepackage{multirow}

begin{document}
newlength{myl}
settowidth{myl}{Suswasser (methylierte Verbindungen)}

begin{table}[tbh]
begin{threeparttable}
centering
caption[Short Caption]{Some Caption}
label{tab:Label}
begin{subtable}{textwidth}centering
caption{Natürliche Systeme}
begin{tabular}{p{myl}l}
toprule
multirow{2}{*}{Umgebung} & Fraktionierungsfaktor ((varepsilon))
& ...
midrule
Süßwasser (methylierte Verbindungen) & 39 bis 58
Marin (Karbonatreduzierung) & 49 bis 95
bottomrule
end{tabular}
end{subtable}

begin{subtable}{textwidth}centering
caption{Kulturexperimente}
begin{tabular}{p{myl}ll}
toprule
multirow{2}{*}{Substrat} & multicolumn{2}{c}{Fraktionierungsfaktor ((varepsilon))}
cmidrule(l){2-3}
& A & B
midrule
Methanol & 68 bis 77 & 40 bis 54
... & 24%tnote{*}
bis 27 & 10
... & 39 & 49
... & 55 bis 58 & 55 bis 58
... & 44 bis 54 &
... & 49 &
... & 54 &
bottomrule
end{tabular}
end{subtable}
 begin{tablenotes}
    item[*] ... fanden ... für Acetat.
    end{tablenotes}
end{threeparttable}
end{table}
end{document}

One Answer

Since Mico pointed out that the threeparttable doesn't recognize minipage environments, I looked for an alternative and found that

{raggedrightfootnotesizecentering My footnote par}

will look the sames as the tablenotes.

Answered by Manuel Popp on July 6, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP