将表格脚注和脚注标记/文本转换为尾注

将表格脚注和脚注标记/文本转换为尾注

我必须将所有脚注转换为尾注,这个过程基本上很顺利;唯一的例外是我必须通过或\tablefootnote组合添加到表格中的脚注\footnotemark\footnotetext我必须在不同的表格中使用两者)。

如下例所示,这些保留了自己的编号并保留为脚注;我需要对它们进行正确的编号和格式化为尾注。

梅威瑟:

\documentclass[12pt]{memoir}

\usepackage[notes, backend=biber, sorting=nyt,
  giveninits=true, useprefix=false,
  shorthandibid, shorthandfull,
  addendum=false, notetype=endonly
]{biblatex-chicago}

\usepackage{rotating}
\usepackage{multirow}
\usepackage{tablefootnote}
\usepackage{endnotes}
\let\footnote=\endnote

\usepackage{filecontents}
\begin{filecontents*}{jobname.bib}
@article{lastname19,
author = {Lastname, Firstname},
title = {Article Title},
journal = {Prestigious Journal},
volume = {24},
pages = {1--78},
date = {2019},
}

\end{filecontents*}
\addbibresource{jobname.bib}

\begin{document}

Some text.\autocite{lastname19}

\begin{table}[h]
\begin{tabular}{|c|c|}
\hline
Place & Number\footnotemark\\\hline
\end{tabular}
\caption{Distribution of orders to officials within Brittany, 1341–1364}
\label{table:bretonofficials}
\end{table}
\footnotetext{Some sources.}
\begin{table}[h]
\begin{tabular}{|c|c|}
\hline
Place & Number\\\hline
\end{tabular}
\caption{Distribution of orders to officials within Brittany, 1341–1364\tablefootnote{More sources.}}
\label{table:bretonofficials}
\end{table}

\theendnotes

\end{document}

我知道在表格中使用“真实”注释而不是使用类似的东西来threeparttable生成表格注释存在问题,但出于各种原因,这些注释确实需要是实际注释。但是,如果无法获取\footnotemark/text和/或\tablefootnote充当尾注,我很想知道是否有其他方法可以将这些注释放入表格中。

答案1

最大的问题是如何 \caption处理论点,产生多个脚注。

\documentclass[12pt]{memoir}

\usepackage[notes, backend=biber, sorting=nyt,
  giveninits=true, useprefix=false,
  shorthandibid, shorthandfull,
  addendum=false, notetype=endonly
]{biblatex-chicago}

\usepackage{rotating}
\usepackage{multirow}
\usepackage{tablefootnote}
\usepackage{endnotes}
\let\footnote=\endnote
\let\footnotemark=\endnotemark
\let\footnotetext=\endnotetext
\let\tablefootnote=\endnote

%\usepackage{caption}

\usepackage{filecontents}
\begin{filecontents*}{jobname.bib}
@article{lastname19,
author = {Lastname, Firstname},
title = {Article Title},
journal = {Prestigious Journal},
volume = {24},
pages = {1--78},
date = {2019},
}

\end{filecontents*}
\addbibresource{jobname.bib}

\begin{document}
\listoftables

Some text.\autocite{lastname19}

\begin{table}[h]
\begin{tabular}{|c|c|}
\hline
Place & Number\tablefootnote{Some sources.}\\\hline
\end{tabular}
\caption{Distribution of orders to officials within Brittany, 1341–1364}
\label{table:bretonofficials}
\end{table}

\begin{table}[h]
\begin{tabular}{|c|c|}
\hline
Place & Number\\\hline
\end{tabular}
\caption[Distribution of orders to officials within Brittany, 1341–1364\textsuperscript{\ref{foot:bretonofficials}}]% for \listoftables
  {Distribution of orders to officials within Brittany, 1341–1364\footnotemark}
\label{table:bretonofficials}
\end{table}
\footnotetext{More sources.\label{foot:bretonofficials}}%  Note, label generated by \thendnotes

\theendnotes

\end{document}

相关内容