![使用 tabu 将脚注编号更改为文本](https://linux22.com/image/315815/%E4%BD%BF%E7%94%A8%20tabu%20%E5%B0%86%E8%84%9A%E6%B3%A8%E7%BC%96%E5%8F%B7%E6%9B%B4%E6%94%B9%E4%B8%BA%E6%96%87%E6%9C%AC.png)
问题:
使用该包将脚注默认编号更改为文本tabu
。
最小工作示例(MWE):
\documentclass{article}
\usepackage{array,booktabs}% http://ctan.org/pkg/{array,booktabs}
\usepackage{lineno,hyperref,amsmath}
\usepackage[table]{xcolor} %colour tables
\usepackage{color, colortbl} % choose and define a colour
\usepackage{tabu} %for the font size of the tables
\usepackage{array}% tables
\usepackage{booktabs} %tables
\usepackage[tmargin=1in,bmargin=1in,lmargin=2.7cm,rmargin=2.7cm]{geometry}
\modulolinenumbers[5]
\usepackage{stackengine}
\begin{document}
\begin{table}[ht]
\definecolor{LightBlue}{rgb}{0.78,0.85,0.95}
\centering
\newcolumntype{A}{ >{\centering\arraybackslash}m{0.8cm} }
\newcolumntype{B}{ >{\centering\arraybackslash}m{0.5cm} }
\begin{tabu}{|p{4.5cm} B A A A A A|}
\hline
\rowcolor{LightBlue} \textbf{Variable} & \textbf{Obs.} & \textbf{Mean} & \textbf{Median} & \textbf{SD} & \textbf{Min} & \textbf{Max} \\
\hline
\footnote{Footnote}
\end{tabu}
\end{table}
\end{document}
输出:
期望的结果:
将数字 1 更改为粗体文本“注意”。
答案1
如果你没有被困住tabu
,这将适用于普通表格:
\documentclass{article}
\usepackage{tablefootnote} % for footnotes in tables
\usepackage[tmargin=8in]{geometry} % only to push table toward footnote
\usepackage{booktabs}
\usepackage{siunitx} % to align table values and headers
\begin{document}
\footnote{A note.}Some text (before table).
{
\renewcommand{\thefootnote}{\textbf{Note}}
\sisetup{table-number-alignment = center, table-figures-integer=6, table-figures-decimal=1}
\begin{table}
\centering
\begin{tabular}{rSSSSSS} \toprule
{\bfseries{Variable}} & {\textbf{Obs.}} & {\textbf{Mean}} & {\textbf{Median}} & {\textbf{SD}} & {\textbf{Min}} & {\textbf{Max}} \\ \midrule
\tablefootnote{The latest statistics can be found at \ldots}A & 1.2 & 12.3 & 123.4 & 1234.5 & 12345.6 & 123456.7 \\
B & 123456.7 & 12345.6 & 1234.5 & 123.4 & 12.3 & 1.2 \\ \bottomrule
\end{tabular}
\end{table}
\addtocounter{footnote}{-1}
}
\footnote{Some other note.}Some other text (after table).
\end{document}
如果您希望脚注成为表格本身的一部分,情况会略有不同。目前,我假设您指的是普通脚注。