0

My code is here, The table here contains many footnote, but it does not appear at the bottom of page. Please help me to resolve this issue.

 \documentclass[journal]{IEEEtran}
 \usepackage{graphicx}
 \usepackage{subfig}
 \usepackage{caption}
 \usepackage{lipsum}
 \usepackage{tablefootnote}
 \usepackage{hyperref}
 \usepackage{amsmath, amssymb}
 \usepackage{csquotes}
 \usepackage[demo,
             export]{adjustbox}
 \usepackage{stfloats}
 \usepackage{makecell,
             ltablex}    % new
 \usepackage{makecell, tabularx}   % changed
 \renewcommand\theadfont{\small\bfseries}    % new
 \renewcommand\theadgape{}                   % new
 \setcellgapes{3pt}                          % new
 \usepackage{siunitx}

 \usepackage{enumitem}
 \usepackage{etoolbox}                       %
 \AtBeginEnvironment{tabularx}{%
 \setlist[itemize]{nosep,
                   leftmargin=*,
                   label=\textbullet,
                   before=\begin{minipage}[t]{\linewidth}, % <---
                   after=\end{minipage}                    % <---
                   }  }
 \newcommand{\specialcell}[2][c]{%
 \begin{tabular}[#1]{@{}l@{}}#2\end{tabular}
 %%%
 }

 \usepackage{float}

 \begin{document}
     \begin{table*}[htbp]
     \scriptsize
     \setcellgapes{3pt}
     \makegapedcells
     \caption{ABCD}                  
 \begin{tabularx}{\linewidth}{|@{} p{1cm}| l| p{1.5cm}| p{3cm} |p{2cm}| X @{}|}
     \hline
 \thead{Paper}
     & \thead{DNN}
       & \thead{Train/Test}
         & \thead{\specialcell{Performance} \\\ \specialcell{Measures}}
     & \thead{\specialcell{Complexity} \\\ \specialcell{Runtime}}
       & \thead{Critical Findings/Remarks}                     \\
       \hline
       \hline

      \textbf{A}  2016 &  A  & A (PEIRVM)\footnote{https://groups.csail.mit.edu/vision/TinyImages}         
   & A
        & \begin{itemize}
      \item a
      \item a
         \end{itemize} 
   &  \begin{itemize}
    \item a
    \item a
    \item a
      \end{itemize} \\
   \hline
 \textbf{A}  2019 & A  & Camelyon 16\footnote{https://camelyon16.grand-challenge.org/}, Tupac 
   16\footnote{http://tupac.tue-image.nl/node/3}, Rectum 
    \footnote{https://www.pathologyoutlines.com/topic/colonhistology.html}  & a   & \begin{itemize}
     \item a
   \end{itemize} & \begin{itemize}
   \item a
   \item a
   \end{itemize}\\
   \hline
   \textbf{A}  2020 & A &a    &  a & \begin{itemize}
                                      item a
                                      \item a
                                      \end{itemize} 
     & \begin{itemize}
       \item a
       \item a
       \item a\footnote{https://bellard.org/bpg/}
       \end{itemize} \\
   %%%% table body
       \hline
    \end{tabularx}
         \end{table*}
       \end{document}

Edit: My result of tests of the Zarko's solutions:

enter image description here

After second edit:

enter image description here

After third edit:

enter image description here

10
  • 1
    How or where is \specialcell defined?
    – Mico
    May 21, 2020 at 10:21
  • iTS A PART OF SOME OTHER PACKAGE, i SUPPOSE. i HAVE ALSO ATTACHED THE OUTPUT May 21, 2020 at 10:24
  • \spacialcell in not part of any package that you load in the preamble of your example code. If must be defined somewhere else. Does your original document contain something like \newcommand{\specialcell}...?
    – leandriis
    May 21, 2020 at 10:29
  • No, it is not. I sow almost the same question few days ago, unfortunately I can't find it now ...
    – Zarko
    May 21, 2020 at 10:32
  • Did you already have a look at Footnotes in tables? and its answers?
    – leandriis
    May 21, 2020 at 10:33

1 Answer 1

2

It may serve as starting point. You need to enclose table in minipage (MWE is partly based on my answer):

\documentclass[journal]{IEEEtran}
\usepackage{subfig}
\usepackage{caption}
\usepackage{amsmath, amssymb}
\usepackage{csquotes}
\usepackage[demo,
            export]{adjustbox} % it load graphicx too
\usepackage{stfloats}
\usepackage{siunitx}
\usepackage{enumitem}
\usepackage{etoolbox}                       %
\AtBeginEnvironment{tabularx}{%
\setlist[itemize]{nosep,
                 leftmargin=*,
                 label=\textbullet,
                 before=\begin{minipage}[t]{\linewidth},  
                 after=\end{minipage}                     
                 }  }

\usepackage{booktabs, makecell, tabularx}
\renewcommand\theadfont{\small\bfseries}
\renewcommand\theadgape{}

\usepackage[hyperfootnotes=false]{hyperref} 

\usepackage{lipsum}

\begin{document}
    \begin{table*}[t]
\caption{ABCD}
    \begin{minipage}{\linewidth}    % <--- 
\footnotesize
\setcellgapes{3pt}
\makegapedcells
\renewcommand{\thefootnote}{\alph{footnote}}
\begin{tabularx}{\linewidth}{@{} p{1cm} l p{2cm} p{3cm} p{3cm} X @{}}
    \toprule
\thead{ABC}
    & \thead{ABCD}
    & \thead{ABCDE}
    & \thead{Function}
    & \thead{ABCD}
    & \thead{Critical Findings/Remarks}                     \\
    \midrule
%%%% table body
\textbf{A}  2016
    & A
        &   Camelyon 16\footnote{https://camelyon16.grand-challenge.org/},

            Tupac 16\footnote{http://tupac.tue-image.nl/node/3},

            Rectum \footnote{https://www.pathologyoutlines.com/topic/colonhistology.html}
            & B &   \begin{itemize}
                \item aaa
                    \end{itemize}
                    &   \begin{itemize}
                    \item aaa
                    \item bbb
                        \end{itemize}\\
    \midrule
\textbf{B}  2020 
    & C & D & D &   \begin{itemize}
                \item aaa
                \item bbb
                    \end{itemize}
                    &   \begin{itemize}
                    \item aaa
                    \item bbb
                    \item ccc \footnotemark[4]
                        \end{itemize}       \\    
    \bottomrule
\end{tabularx}
\vspace{-\baselineskip}
\footnotetext[4]{https://bellard.org/bpg/} % <====
    \end{minipage}  % <---
    \end{table*}
\lipsum[11]
\end{document}

enter image description here

Note: don't use ltablex, it is (as longtable) prohibited in two columns documents.

Edit (1): added is example of use of the \footnote in lists nested in tables.

Edit (2): Sorry, at my first edit of answer I didn't load complete version of edited MWE where is missed the code line with \footnotetext[4]{https://bellard.org/bpg/} before \end{minipage}. Now corrected and this line marked by % <====.

Edit (3): Sorry, but last day was my very badd day ... yes, after \begin{minipage}{\linewidth} is missed code line \renewcommand{\thefootnote}{\alph{footnote}}. Now is added.

10
  • Sir, my last footnote not showing, i.e. d, and its showing as complete URL in table itself, like my posted snap...Second problem is, footnotes are not appearing at bottom last of the page, rather ist appeared at middle. Please help May 21, 2020 at 17:01
  • and why is is written like \footnotemark[4] May 21, 2020 at 17:01
  • snapshot is attached above May 21, 2020 at 17:15
  • @DiptiMishra, [4] is identification to which \footnotemark belong \footnotetext and by which letter they are identified (by forth letter in alphabet , i.e by d).
    – Zarko
    May 21, 2020 at 17:56
  • 1
    @DiptiMishra, please (i) edit your question and make your MWE compilable that other people can test it, (ii) if add result of my MWE to your question, please clearly describe this in question and add it on the end of question. Now is not clear what present image on the top of your question.
    – Zarko
    May 22, 2020 at 6:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .