我有很多带有多个子图和相关表格的图表,我被要求为它们添加脚注。
以下是我设置的页面上包含表格的图形的简单工作示例。我想在 captionof{table} 环境中添加脚注。由于这将位于脚注已编号的章节内,因此我也希望正确编号。
我发现有些问题很接近答案,但无法给出答案。
% !TEX TS-program = pdflatexmk
%%
\documentclass[a4paper,11pt,twoside]{report}
\usepackage{amsmath, amsthm, amssymb}
%\usepackage{epstopdf}
\usepackage{mathtools}
\usepackage{mathrsfs}
\usepackage{fixltx2e}
\usepackage[mathscr]{euscript}
\usepackage{hyperref}
\usepackage{setspace} %https://tex.stackexchange.com/questions/819/double-line-spacing line spacing
\usepackage[section]{placeins}
\usepackage[labelfont=bf]{caption}
\usepackage{array}
\usepackage[titletoc]{appendix}
\usepackage{upgreek}
\usepackage{fancyhdr}
\setlength{\headheight}{14pt}% ...at least 13.59pt
\usepackage{chapterbib}
\usepackage[version=3]{mhchem}
\usepackage{pdfpages}
\usepackage{calc}
%\usepackage{rotating}
\usepackage[all]{xy}
\usepackage{tikz}
\usetikzlibrary{arrows,positioning,calc,arrows.meta,shapes,fit,backgrounds}
\usepackage[noprefix]{nomencl}
\usepackage{alltt}
\usepackage{rotating}
%\usepackage[final]{pdfpages}
\usepackage{csquotes}
\fancypagestyle{IHA-fancy-style}{%
\fancyhf{}% Clear header and footer
% \fancyhead[LE,RO]{\slshape \rightmark}
\fancyhead[LE,RO]{\slshape \leftmark}
\fancyfoot[LE,RO]{\thepage\ }% Custom footer
\renewcommand{\headrulewidth}{0.4pt}% Line at the header visible
\renewcommand{\footrulewidth}{0.4pt}% Line at the footer visible
}
% Redefine the plain page style
\fancypagestyle{plain}{%
\fancyhf{}%
\fancyfoot[LE,RO]{\thepage\ } %
\renewcommand{\headrulewidth}{0pt}% Line at the header invisible
\renewcommand{\footrulewidth}{0.4pt}% Line at the footer visible
}
\pagestyle{IHA-fancy-style}
\makeatletter
\newcounter{imagepage} \newcommand*{\foreachpage}[2]{%
\begingroup
\sbox0{\includegraphics{#1}}%
\xdef\foreachpage@num{\the\pdflastximagepages}%
\endgroup
\setcounter{imagepage}{0}%
\@whilenum\value{imagepage}<\foreachpage@num\do{%
\stepcounter{imagepage}%
#2\relax }%
}
\makeatother
%allow smaller pieces of text bellow figures
\renewcommand{\textfraction}{0.15} % allow minimal text w. figs
\renewcommand{\topfraction}{0.84} % allow minimal text w. figs
\renewcommand{\floatpagefraction}{0.8} % allow minimal text w. figs
%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%
\noindent\begin{figure}%{\textwidth}
\centering
\begin{minipage}[b]{0.45\textwidth}
\includegraphics[width=\textwidth]{example-image-a}
%\captionof{subfigure}{}
\label{LwT1AssPhase}
\end{minipage}\hfil
\begin{minipage}[b]{0.45\textwidth}
\includegraphics[width=\textwidth]{example-image-a}
%\captionof{subfigure}{}
\label{LwT1DissPhase}
\end{minipage}
\begin{minipage}[b]{0.45\textwidth}
\includegraphics[width=\textwidth]{example-image-a}
%\captionof{subfigure}{}
\label{LwT1AssPhase}
\end{minipage}\hfill
\begin{minipage}[b]{0.45\textwidth}
\includegraphics[width=\textwidth]{example-image-a}
%\captionof{subfigure}{}
\label{LwT1DissPhase}
\end{minipage}
%\captionof{figure}[Visualisations of a solution trajectory for the Langmuir two concentration model in the association phase]{Visualisations of a solution trajectory for the Langmuir two concentration model in the association phase (cyan) alongside nullcline-planes $x_1$ in blue, $x_2$ in red, $C$ in green}
\caption[Visualisations of a solution trajectory for the Langmuir two concentration model in the association phase]{Visualisations of a solution trajectory for the Langmuir two concentration model in the association phase (cyan) alongside nullcline-planes $x_1$ in blue, $x_2$ in red, $C$ in green.}
\label{LwT2PhasePort}
\vspace{\floatsep}% standard interfloat separation
\label{tab:LwTsols}
\small
\footnotesize
\setlength{\extrarowheight}{1.5pt}
\begin{tabular}
{ | c | c c c c c c c c | }
\hline
Parameter &$k_{a1}$ & $k_{a2}$ & $k_{d1}$& $k_{d2}$& $R$ & $C_T$ & $k_m$ & $h$ \\%\hline
&M$^{-1}$s$^{-1}$ &M$^{-1}$s$^{-1}$&s$^{-1}$ &s$^{-1}$ & pg nm$^{-2}$ & nM & pgnm$^{-2}$ M$^{-1}$s$^{-1}$ &pgnm$^{-2}$ M$^{-1}$ \\\hline%\hline
Value &6$\times 10^{-4}$ &5$\times 10^{-4}$ &7$\times 10^{-3}$ &1$\times 10^{-2}$ & 500 & 100 & 10$^{-4}$ & 10$^{-6}$ \\\hline
\end{tabular}
\captionof{table}{Values taken by parameters in Fig. \ref{LwT2PhasePort} }%add key
\end{figure}
\end{document}
答案1
只要在方括号中提供表格列表的替代文本(附带内容应在图表之外),就可以\footnotemark
在中放置:\captionof
\footnotetext
\documentclass[a4paper,11pt,twoside]{report}
\usepackage{amsmath, amsthm, amssymb}
%\usepackage{epstopdf}
\usepackage{mathtools}
\usepackage{mathrsfs}
\usepackage{fixltx2e}
\usepackage[mathscr]{euscript}
\usepackage{hyperref}
\usepackage{setspace} %https://tex.stackexchange.com/questions/819/double-line-spacing line spacing
\usepackage[section]{placeins}
\usepackage[labelfont=bf]{caption}
\usepackage{array}
\usepackage[titletoc]{appendix}
\usepackage{upgreek}
\usepackage{fancyhdr}
\setlength{\headheight}{14pt}% ...at least 13.59pt
\usepackage{chapterbib}
\usepackage[version=3]{mhchem}
\usepackage{pdfpages}
\usepackage{calc}
%\usepackage{rotating}
\usepackage[all]{xy}
\usepackage{tikz}
\usetikzlibrary{arrows,positioning,calc,arrows.meta,shapes,fit,backgrounds}
\usepackage[noprefix]{nomencl}
\usepackage{alltt}
\usepackage{rotating}
%\usepackage[final]{pdfpages}
\usepackage{csquotes}
\fancypagestyle{IHA-fancy-style}{%
\fancyhf{}% Clear header and footer
% \fancyhead[LE,RO]{\slshape \rightmark}
\fancyhead[LE,RO]{\slshape \leftmark}
\fancyfoot[LE,RO]{\thepage\ }% Custom footer
\renewcommand{\headrulewidth}{0.4pt}% Line at the header visible
\renewcommand{\footrulewidth}{0.4pt}% Line at the footer visible
}
% Redefine the plain page style
\fancypagestyle{plain}{%
\fancyhf{}%
\fancyfoot[LE,RO]{\thepage\ } %
\renewcommand{\headrulewidth}{0pt}% Line at the header invisible
\renewcommand{\footrulewidth}{0.4pt}% Line at the footer visible
}
\pagestyle{IHA-fancy-style}
\makeatletter
\newcounter{imagepage} \newcommand*{\foreachpage}[2]{%
\begingroup
\sbox0{\includegraphics{#1}}%
\xdef\foreachpage@num{\the\pdflastximagepages}%
\endgroup
\setcounter{imagepage}{0}%
\@whilenum\value{imagepage}<\foreachpage@num\do{%
\stepcounter{imagepage}%
#2\relax }%
}
\makeatother
%allow smaller pieces of text bellow figures
\renewcommand{\textfraction}{0.15} % allow minimal text w. figs
\renewcommand{\topfraction}{0.84} % allow minimal text w. figs
\renewcommand{\floatpagefraction}{0.8} % allow minimal text w. figs
%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%
\noindent\begin{figure}%{\textwidth}
\centering
\begin{minipage}[b]{0.45\textwidth}
\includegraphics[width=\textwidth]{example-image-a}
%\captionof{subfigure}{}
\label{LwT1AssPhase}
\end{minipage}\hfil
\begin{minipage}[b]{0.45\textwidth}
\includegraphics[width=\textwidth]{example-image-a}
%\captionof{subfigure}{}
\label{LwT1DissPhase}
\end{minipage}
\begin{minipage}[b]{0.45\textwidth}
\includegraphics[width=\textwidth]{example-image-a}
%\captionof{subfigure}{}
\label{LwT1AssPhase}
\end{minipage}\hfill
\begin{minipage}[b]{0.45\textwidth}
\includegraphics[width=\textwidth]{example-image-a}
%\captionof{subfigure}{}
\label{LwT1DissPhase}
\end{minipage}
%\captionof{figure}[Visualisations of a solution trajectory for the Langmuir two concentration model in the association phase]{Visualisations of a solution trajectory for the Langmuir two concentration model in the association phase (cyan) alongside nullcline-planes $x_1$ in blue, $x_2$ in red, $C$ in green}
\caption[Visualisations of a solution trajectory for the Langmuir two concentration model in the association phase]{Visualisations of a solution trajectory for the Langmuir two concentration model in the association phase (cyan) alongside nullcline-planes $x_1$ in blue, $x_2$ in red, $C$ in green.}
\label{LwT2PhasePort}
\vspace{\floatsep}% standard interfloat separation
\label{tab:LwTsols}
\small
\footnotesize
\setlength{\extrarowheight}{1.5pt}
\begin{tabular}
{ | c | c c c c c c c c | }
\hline
Parameter &$k_{a1}$ & $k_{a2}$ & $k_{d1}$& $k_{d2}$& $R$ & $C_T$ & $k_m$ & $h$ \\%\hline
&M$^{-1}$s$^{-1}$ &M$^{-1}$s$^{-1}$&s$^{-1}$ &s$^{-1}$ & pg nm$^{-2}$ & nM & pgnm$^{-2}$ M$^{-1}$s$^{-1}$ &pgnm$^{-2}$ M$^{-1}$ \\\hline%\hline
Value &6$\times 10^{-4}$ &5$\times 10^{-4}$ &7$\times 10^{-3}$ &1$\times 10^{-2}$ & 500 & 100 & 10$^{-4}$ & 10$^{-6}$ \\\hline
\end{tabular}
\captionof{table}[Values taken by parameters in Fig. \ref{LwT2PhasePort}]{Values taken by parameters in Fig. \ref{LwT2PhasePort}\footnotemark}%add key
\end{figure}
\footnotetext{text}
\end{document}