我对如何在表格中添加脚注有点困惑。我读过一些其他类似的问题,但对我来说不起作用。我不知道我做错了什么。
这里有一个平均能量损失:
\documentclass[12pt,twoside]{report}
\usepackage[headheight=18pt,a4paper, width=150mm, top=25mm, bottom=25mm, bindingoffset=6mm, headsep=18pt]{geometry}
\usepackage[spanish, es-noquoting]{babel}
%interprete de idioma castellano
\usepackage[utf8]{inputenc} %relacionado al input
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{float}
\restylefloat{table}
\usepackage{threeparttable}
\usepackage{caption}
\begin{document}
\begin{threeparttable}[H]
\centering
\captionof{table}{Convergencia PM6-cluster}\label{table:convergencia_cluster_PM6}
\begin{tabular}{|l|l|l|}
\hline
\textbf{nºconf} & \textbf{$\Delta G^\circ_{SS}$} & \textbf{$\Delta G^\circ_{Packmol}$} \\ \hline
5 & -64.6 & -64.7 \\ \hline
10 & -65.5 & -64.1 \\ \hline
15 & -63.7 & -66.5 \\ \hline
180 & -66.6 & -66.4 \\ \hline
250 & -66.3 & -67.0 \\ \hline
\end{tabular}
\begin{tablenotes}
\item[a] En la tabla se compara $\Delta G^0$ de dos métodos de solvatación (SS y Packmol) con hamiltoniano PM6. Los valores de $\Delta G^0$ se dan en Kcal/mol. La sigla SS significa Solvateshell.
\end{tablenotes}
\end{threeparttable}
\end{document}
But it produces a footnote with too big letters. So maybe I am using it wrong.
编辑
答案1
用于遗留目的:
您可以使用\footnotemark
和\footnotetext
来实现这一点。后者在 之外threeparttable
。
编辑:
在 中,threeparttable
您必须使用 指定注释的标识符\tnote
,并在 -environment 中使用该标识符tablenotes
作为 的可选参数\item
。请注意, 中的字体大小不会改变tablenotes
。为此,您可以发出\footnotesize
以减小字体大小。另请注意,您不必使用环境,tablenotes
也不必使用\tnote
如果您不想在表格中添加脚注式注释,您只需将文本放在那里即可。
\documentclass[12pt,twoside]{report}
\usepackage[headheight=18pt,a4paper, width=150mm, top=25mm, bottom=25mm, bindingoffset=6mm, headsep=18pt]{geometry}
\usepackage[spanish, es-noquoting]{babel}
%interprete de idioma castellano
\usepackage[utf8]{inputenc} %relacionado al input
\usepackage[T1]{fontenc}
\usepackage{threeparttable}
\usepackage{caption}
\begin{document}
\begin{threeparttable}
\centering
\captionof{table}{Convergencia PM6-cluster}\label{table:convergencia_cluster_PM6}
\begin{tabular}{|l|l|l|}
\hline
\textbf{nºconf} & \textbf{$\Delta G^\circ_{SS}$} & \textbf{$\Delta G^\circ_{Packmol}$} \\ \hline
5 & -64.6 & -64.7 \\ \hline
10 & -65.5 & -64.1 \\ \hline
15 & -63.7 & -66.5 \\ \hline
180 & -66.6 & -66.4 \\ \hline
250 & -66.3 & -67.0\tnote{a} \\ \hline
\end{tabular}
\footnotesize
\begin{tablenotes}
\item[a] En la tabla se compara $\Delta G^0$ de dos métodos de solvatación (SS y Packmol) con hamiltoniano PM6. Los valores de $\Delta G^0$ se dan en Kcal/mol. La sigla SS significa Solvateshell.
\end{tablenotes}
\end{threeparttable}
A second try without tablenotes:
\begin{threeparttable}
\centering
\captionof{table}{Foo}
\begin{tabular}{ll}
my & table\\
being & nice
\end{tabular}
{\footnotesize Descriptive text}
\end{threeparttable}
\end{document}
请注意,您甚至不需threeparttable
要这样做。您也可以使用table
包含以下内容的常规环境tabular
:
\documentclass[12pt,twoside]{report}
\usepackage[headheight=18pt,a4paper, width=150mm, top=25mm, bottom=25mm, bindingoffset=6mm, headsep=18pt]{geometry}
\usepackage[spanish, es-noquoting]{babel}
%interprete de idioma castellano
\usepackage[utf8]{inputenc} %relacionado al input
\usepackage[T1]{fontenc}
\usepackage{caption}
\begin{document}
A third try without threeparttable:
\begin{table}
\centering
\caption{Foo}
\begin{tabular}{ll}
my & table\\
being & nice
\end{tabular}\\[0.5\baselineskip]
\begin{minipage}{0.5\linewidth}
\scriptsize
long descriptive text. It is really long. Somebody should
shorten it. Really, who reads all that stuff? Seems boring to me. You
really should stop reading this.
\end{minipage}
\end{table}
\end{document}