\documentclass{article}
\usepackage{booktabs,threeparttable}
\hyphenpenalty=2000
\exhyphenpenalty=2000
\begin{document}
\begin{minipage}{\marginparwidth}
\centering
\begin{tabular}{r r r}
& {\small \textbf{sample 1}}
& {\small \textbf{sample 2} \\
Acquired \tnote{a} & 22 & 44 \\
Optimal \tnote {b} & 22 & 16 \\
\end{tabular}
\begin{tablenotes}\tiny
\item[a] This is sample 1.
\end{tablenotes}\begin{tablenotes}\tiny
\item[b] This is sample two.
\end{tablenotes}
\end{minipage}
\end{document}
Considering above TeX code above, notes a
and b
only appear below the minipage
without symbols and there is no a
and b
inside the table to indicates that which note belongs to which entity. Moreover, this minipage
is meant to be in the margin and it exceeds the boundary. How do I solve these?