中心表注

中心表注

我在将表格注释左对齐(表格开始的高度)和强制文本变小(用作备忘单)时遇到了问题。您有解决方案吗?


% page setup
\documentclass[]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage{enumitem,booktabs,cfr-lm}% aufzahlungen mit erklärung nach Tabelle
\usepackage[referable]{threeparttablex}
\renewlist{tablenotes}{enumerate}{1}

% geometry
\usepackage[landscape]{geometry}
\geometry{headsep=\baselineskip}

% table
\usepackage{ragged2e} % for \Centering and \RaggedRight macros
\usepackage{booktabs, tabularx} % for well-spaced horizontal lines
\newcolumntype{C}{>{\fontsize{4}{4}\selectfont\raggedright\arraybackslash}X}

%----------------------------------------------------------------------------------------------
%----------------------------------------------------------------------------------------------
\begin{document}
%----------------------------------------------------------------------------------------------
\begin{table}
\tiny
 \begin{threeparttable}
\begin{tabularx}{0.22\textwidth}{@{}*{2}{C} @{}}
    \toprule
\textbf{Congenital} & \textbf{Erworben} \\
\midrule
\begin{itemize}[leftmargin=*, noitemsep]
    \item A\tnote{1}
    \item B\tnote{2} 
    \item C \tnote{3}
    \item seltene Aetiologien\vspace*{-\baselineskip} 
\end{itemize}&
\begin{itemize}[leftmargin=*, noitemsep]
    \item A
\end{itemize}\\
    \bottomrule
    \end{tabularx}
\endtabularx
     \begin{tablenotes}
     \begin{tiny}
      \item[1] "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
      \item[2] "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
 \end{tiny}
    \end{tablenotes}
 \end{threeparttable}
\end{table}

\end{document}

我的解决方案的错误 错误

答案1

如果我正确理解了您的问题,您希望从 MWE 中获得以下结果:

在此处输入图片描述

上表的 MWE 为:

\documentclass[]{article}
% geometry
\usepackage[landscape]{geometry}
\geometry{headsep=\baselineskip}

\usepackage[T1]{fontenc}
\usepackage{cfr-lm}

\usepackage{enumitem}% aufzahlungen mit erklärung nach Tabelle


% table
\usepackage{ragged2e} % for \Centering and \RaggedRight macros
\usepackage{booktabs, tabularx} % for well-spaced horizontal lines
\newcolumntype{C}{>{\raggedright\arraybackslash}X}
\usepackage[referable]{threeparttablex}

\begin{document}
\begin{table}
    \scriptsize
\setlist[itemize]{nosep=0pt,
                 leftmargin=*,
                 label=\textbullet,
                 before=\begin{minipage}[t]{\linewidth},
                 after=\end{minipage}}
    \begin{threeparttable}
    \caption{My three part table}
    \label{tab:...}
\begin{tabularx}{0.22\textwidth}{@{}*{2}{C} @{}}
    \toprule
\textbf{Congenital} & \textbf{Erworben} \\
    \midrule
\begin{itemize}
    \item A\tnote{1}
    \item B\tnote{2}
    \item C\tnote{3}
    \item seltene Aetiologien
\end{itemize}   &   \begin{itemize}
                    \item A
                    \end{itemize}\\
    \bottomrule
\end{tabularx}
     \begin{tablenotes}[flushleft]\tiny
      \item[1] "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
      \item[2] "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
      \item[3] "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}

相关内容