如何在表格环境中管理这个脚注

如何在表格环境中管理这个脚注

我正在尝试在表格内添加指向 URL 方向的链接。我不确定该怎么做。这是我有的,但它不起作用。你能帮助我吗?

\documentclass[12pt,twoside
%,draft
]{report}
\usepackage{booktabs}
\usepackage[headheight=18pt,a4paper, width=150mm, top=25mm, bottom=25mm, bindingoffset=6mm, headsep=18pt]{geometry}
\usepackage[spanish,es-noquoting]{babel}
\usepackage[utf8]{inputenc} %relacionado al input
\usepackage[T1]{fontenc} 
\usepackage[flushleft]{threeparttable}
\usepackage[justification=centering]{caption}
\usepackage[hypcap=false]{caption}
\usepackage[activate={true,nocompatibility},final,tracking=true,kerning=true,spacing=true,factor=1100,stretch=10,shrink=10]{microtype}
\usepackage{csquotes} %"para citar bien"
\emergencystretch=2em
\decimalpoint

\begin{table}[H]
\centering
\begin{threeparttable}
\centering
\captionof{table}{name}
\begin{tabular}{@{}clcc@{}}
\toprule
nº C & \textbf{j} & k &k \\ \midrule

 & 2-chlorobutyric\footnotemark{c} & 2.86 & 25 \\
 & 3-chlorobutyric\footnotemark{d} & 4.05 & 25 \\
 & guanidine & 13.6 & 25 \\
 & imidazole\cite{storey1964pka} & 6.99 & 25 \\
 & 2-aminoimidazole & 8.46* & 25\cite{storey1964pka}\\ \bottomrule
\end{tabular}
\begin{tablenotes}
Here I have some notes.
\end{tablenotes}
\end{threeparttable}
\end{table}
\footnotetext[c]{\url{https://www.researchgate.net/profile/Elisabeth_Bosch/publication/222627494_Dissociation_constants_of_neutral_and_charged_acids_in_methyl_alcohol_The_acid_strength_resolution/links/00463533c08df1ae05000000/Dissociation-constants-of-neutral-and-charged-acids-in-methyl-alcohol-The-acid-strength-resolution.pdf}
\footnotetext[d]{\url{https://www.researchgate.net/profile/Elisabeth_Bosch/publication/222627494_Dissociation_constants_of_neutral_and_charged_acids_in_methyl_alcohol_The_acid_strength_resolution/links/00463533c08df1ae05000000/Dissociation-constants-of-neutral-and-charged-acids-in-methyl-alcohol-The-acid-strength-resolution.pdf}
\end{document}

答案1

我不认为任何读者曾经想要显示,更不用说想要查看任何长度的长 URL 字符串。(不要浏览长 URL 的时间超过几分之一秒?!)越短越好。

更好的办法是,根本不显示任何 URL 字符串 —— 甚至在脚注中也不要显示。相反,加载hyperref包并使用\href{...}{...}指令。您的读者会非常感激这一点。

在此处输入图片描述

\documentclass[12pt,twoside]{report}
\usepackage{booktabs}
\usepackage[headheight=18pt,a4paper, width=150mm, 
   top=25mm, bottom=25mm, bindingoffset=6mm, 
   headsep=18pt]{geometry}
\usepackage[spanish,es-noquoting]{babel}
\usepackage[utf8]{inputenc} 
\usepackage[T1]{fontenc} 
\usepackage[flushleft]{threeparttable}
\usepackage[justification=centering]{caption}
\usepackage[hypcap=false,skip=0.333\baselineskip]{caption}
\usepackage[activate={true,nocompatibility},final,
   tracking=true,kerning=true,spacing=true,
   factor=1100,stretch=10,shrink=10]{microtype}
\usepackage{csquotes} 
\emergencystretch=2em
\decimalpoint

\usepackage[hyphens,spaces,obeyspaces]{url}
\usepackage[colorlinks=true,allcolors=blue]{hyperref}

\begin{document}
\begin{table}
\begin{threeparttable}
\centering
\caption{name}
\begin{tabular}{@{} clcc @{}}
\toprule
No.\ C & \textbf{j} & k &k \\ 
\midrule
 & 2-chlorobutyric\tnote{c} & 2.86 & 25 \\
 & 3-chlorobutyric\tnote{c} & 4.05 & 25 \\
 & guanidine & 13.6 & 25 \\
 & imidazole\cite{storey1964pka} & 6.99 & 25 \\
 & 2-aminoimidazole & 8.46* & 25\cite{storey1964pka}\\ 
 \bottomrule
\end{tabular}
\begin{tablenotes}
\item[c] \href{https://www.researchgate.net/publication/222627494_Dissociation_constants_of_neutral_and_charged_acids_in_methyl_alcohol_The_acid_strength_resolution}{Rived et al (1998)}
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}

相关内容