帮助 longtable、横向、脚注

帮助 longtable、横向、脚注

我在 lanscape longtable 中使用脚注时遇到了问题。下面是我使用的代码,但脚注根本没有出现。我也尝试使用 minipage,但似乎不起作用。谢谢 :)

\begin{landscape}

\begin{longtable}{C C C C C C C C C C C C C C C C}

\caption{A simple longtable example}\\
\toprule 
    Study && \multicolumn{2}{C}{Flow} && \multicolumn{3}{C}{Uncertain Parameters} &&\multicolumn{5}{C}{Uncertainty Approach} &&
         Key findings\\
\cline{3-4}
\cline{6-8}
\cline{10-14}
    && Forward & Reverse 
    && Demand & Supply & Others 
        &&SP\footnote{Stochastic Programming.} & RO \footnote{Robust Optimization.}& FP\footnote{Fuzzy Programming.} & Sim & H-A
        &&\\

    \midrule
\endfirsthead

\toprule 
    Study && \multicolumn{2}{C}{Flow} && \multicolumn{3}{C}{Uncertain Parameters} &&\multicolumn{5}{C}{Uncertainty Approach} &&
         Key findings\\
\cline{3-4}
\cline{6-8}
\cline{10-14}
    && Forward & Reverse 
    && Demand & Supply & Others 
        &&SP\footnote{Stochastic Programming.} & RO \footnote{Robust Optimization.}& FP\footnote{Fuzzy Programming.} & Sim & H-A
        &&\\

\endhead
\hline
\endfoot

\hline
\endlastfoot
~\cite{el2010stochastic}\\
Study\\Study\\Study\\Study\\Study\\Study\\Study\\Study\\Study\\Study\\Study\\Study\\Study
\end{longtable}
\end{landscape}

答案1

你可以用这个包来做这threeparttablex件事——如果你的表确实需要分页的话,否则这个 threeparttable包就足够了。虽然前者是后者的扩展,但如果表被拆分,它有特定的命令和环境。

您必须将长表放在环境中,并从包含长表脚注的环境ThreePartTable开始。注释使用命令调用,并使用插入,并放置在您喜欢的位置。我给出了将注释插入每页底部的示例:TableNotestexttnote\insertTableNotes

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}

\usepackage{fourier}
\usepackage{booktabs}
\usepackage{threeparttablex}
\usepackage{longtable} 
\usepackage{lscape} 

\begin{document}
\begin{landscape}
\begin{ThreePartTable}
  \begin{TableNotes}\footnotesize
\item[a] Stochastic Programming.
\item[b] Robust Optimization.
\item [c] Fuzzy Programming.
  \end{TableNotes}
\begin{longtable}{*{16}{c}}

\caption{A simple longtable example}\\
\toprule
    Study && \multicolumn{2}{c}{Flow} && \multicolumn{3}{c}{Uncertain Parameters} &&\multicolumn{5}{c}{Uncertainty Approach} &&
         Key findings\\
\cmidrule{3-4}
\cmidrule{6-8}
\cmidrule{10-14}
    && Forward & Reverse
    && Demand & Supply & Others
        &&SP\tnote{a} & RO \tnote{b}& FP\tnote{c} & Sim & H-A
        &&\\

    \midrule
\endfirsthead

\toprule
    Study && \multicolumn{2}{c}{Flow} && \multicolumn{3}{c}{Uncertain Parameters} &&\multicolumn{5}{c}{Uncertainty Approach} &&
         Key findings\\
\cmidrule{3-4}
\cmidrule{6-8}
\cmidrule{10-14}
    && Forward & Reverse
    && Demand & Supply & Others
        &&SP\tnote{a} & RO \tnote{b}& FP\tnote{c} & Sim & H-A
        &&\\

\endhead
\midrule
\insertTableNotes
\endfoot
\bottomrule
\insertTableNotes
\endlastfoot
%~\cite{el2010stochastic}\\
Study\\Study\\Study\\Study\\Study\\Study\\Study\\Study\\Study\\Study\\Study\\Study\\Study\\Study\\%
Study\\Study\\Study\\Study\\Study\\Study\\Study\\Study\\Study\\Study\\Study\\Study
\end{longtable}
\end{ThreePartTable}
\end{landscape}
\end{document} 

在此处输入图片描述

相关内容