I am currently creating a threeparttable with longtable and the dcolumn package in order to align my numbers by ".". Under my caption I want to write a description of the table. I am following suggestions of previous threads and try to use the multicolumn functionality to solve that issue. But this does not work, because the rest of my table is suddenly moved. Does someone have a suggestion on how to resolve this?
My code:
\documentclass[
fontsize=12pt,
twoside=off
]{scrbook}
\usepackage{caption}
\usepackage[flushleft]{threeparttable}
\usepackage{longtable}
\usepackage{threeparttablex}
\usepackage{dcolumn}
\newcolumntype{C}[1]{>{\raggedright\arraybackslash}p{#1}}
\begin{document}
\begin{ThreePartTable}
\small
\renewcommand{\arraystretch}{0.75}
\begin{longtable}{@{\extracolsep{\fill}}ld{1.1}d{1.1}d{1.3}c}
\caption{Some very informative caption}
\label{Table:1} \
\multicolumn{5}{C{\textwidth}}{I am writing some text. I am writing some text. I am writing some text. I am writing some text. I am writing some text. I am writing some text. I am writing some text. I am writing some text. I am writing some text. I am writing some text. I am writing some text. I am writing some text}\
\toprule
\multicolumn{1}{@{\extracolsep{\fill}}l}{K} & \multicolumn{1}{c}{b} & \multicolumn{1}{c}{t} & \multicolumn{1}{c}{pval} & \multicolumn{1}{c}{R$^2$} \
\toprule
\endfirsthead
\multicolumn{5}{@{\extracolsep{\fill}}l}{{\bfseries \tablename\ \thetable{} (continued)}}\
\toprule
\multicolumn{1}{@{\extracolsep{\fill}}l}{K} & \multicolumn{1}{c}{b} & \multicolumn{1}{c}{t} & \multicolumn{1}{c}{pval} & \multicolumn{1}{c}{R$^2$} \
\toprule
\endhead
\midrule
\multicolumn{5}{r}{{Continued on next page}} \
\midrule
\endfoot
\bottomrule
\endlastfoot
\multicolumn{5}{@{\extracolsep{\fill}}l}{Panel A: Hi}\
\midrule
10 & 0.10 & 0.10 & 0.100 & 0.00 \
10 & 0.10 & 0.10 & 0.100 & 0.00 \
10 & 0.10 & 0.10 & 0.100 & 0.00 \
10 & 0.10 & 0.10 & 0.100 & 0.00 \
10 & 0.10 & 0.10 & 0.100 & 0.00 \
\end{longtable}
\end{ThreePartTable}
\end{document}
I want my table to look like this: (example without the multicolumn text)

But sadly i get this:
I tried multiple things such as using the xltabular package instead of the longtable package, specifying different "p{}" but none seem to work.


\extracolsepis only used at the end so to fit the wide multicolumn the last column is made wider. (the multicolumn is too wide as\textwidthwill not fit as there is\tabcolseppadding either side, but that is not the issue here) Simplest would be to put the paragraph in the caption – David Carlisle Feb 02 '21 at 12:01dcolumn type and thebooktabspackage are missing. – leandriis Feb 02 '21 at 20:03