[Tex/LaTex] Help longtable ,landscape,footnotes

footnoteslandscapelongtable

I am having a problem with footnotes in lanscape longtable. Below the code I am using ,but the footnote are not appearing at all.Also I tried to use minipage ,but it seems that it doesn't work.
Thanks 🙂

\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}

Best Answer

You can do that with the threeparttablex package — if your table really has to be split over pages, else the threeparttable package is enough. Although the former is an extension of the latter, it has specific commands and environments if the table is split.

You must put your longtable inside a ThreePartTable environment and begin with the TableNotes environment, which contains the text of the long table footnotes. The notes are called with the tnote command and they are inserted with the \insertTableNotes which put where you please. I give the example with the notes inserted at the bottom o each page:

\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} 

enter image description here

Related Question