TeX - LaTeX Asked on April 20, 2021
I have a problem in aligning the table notes to the left (at the height where also the table begins) and in forcing the text to be tiny (use it for a cheatsheet). Do you have a solution?
% 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}selectfontraggedrightarraybackslash}X}
%----------------------------------------------------------------------------------------------
%----------------------------------------------------------------------------------------------
begin{document}
%----------------------------------------------------------------------------------------------
begin{table}
tiny
begin{threeparttable}
begin{tabularx}{0.22textwidth}{@{}*{2}{C} @{}}
toprule
textbf{Congenital} & textbf{Erworben}
midrule
begin{itemize}[leftmargin=*, noitemsep]
item Atnote{1}
item Btnote{2}
item C tnote{3}
item seltene Aetiologienvspace*{-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}
If I correctly understood your question, you like to get the following result from your MWE:
The MWE for above table is:
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}{>{raggedrightarraybackslash}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.22textwidth}{@{}*{2}{C} @{}}
toprule
textbf{Congenital} & textbf{Erworben}
midrule
begin{itemize}
item Atnote{1}
item Btnote{2}
item Ctnote{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}
Correct answer by Zarko on April 20, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP