在页面末尾显示表格脚注

在页面末尾显示表格脚注

我有一个包含脚注的表格。我希望这些脚注出现在页面末尾,但没有显示任何内容。但是表格中有脚注编号。我试过但它对我不起作用。

这是我的表格代码:

\documentclass{book}                                                                                                 

\usepackage{booktabs}                                                                                                

\usepackage{url}                                                                                                     
\usepackage{tabularx}                                                                                                
\usepackage{ragged2e}                                                                                                
\usepackage{makecell}                                                                                                

\begin{document}                                                                                                     

\begin{table}[hbtp]                                                                                                  
    \centering                                                                                                       
    \begin{tabularx}{\textwidth}{ c >{\RaggedRight}X }                                                               
        \toprule                                                                                                     
        \textbf{$e_\#$} & \makecell[cc]{\textbf{Description}} \\                                                     
        \midrule                                                                                                     
        1 & Cathedral of Notre Dame fire during restorations work\footnote{https://www.nytimes.com/es/2019/04/15/not\
re-dame-incendio/}.  \\ \addlinespace                                                                                
        2 & Beginning of `Semana Santa' vacances in Madrid\footnote{https://www.abc.es/espana/madrid/abci-semana-san\
ta-2019-procesiones-madrid-recorrido-horario-y-programa-201904110105\_noticia.html}. \\ \addlinespace                
        3 & World Art Day\footnote{http://www.aimdigital.com.ar/15-de-abril-dia-mundial-del-arte/}. \\ \addlinespace 
        4 & Max Pradera, an Spanish journalist, posted an unfortunate comment about Almudena Cathedral and Notre Dam\
e\footnote{https://www.abc.es/internacional/abci-pradera-pudiendose-haber-quemado-almudena-y-quema-notre-dame-201904\
160310\_noticia.html}. \\ \addlinespace                                                                              
        5 & Premiere of the last season of Game of Thrones\footnote{https://www.elmundo.es/television/2019/04/09/5ca\
c665ffc6c8393168b46eb.html}. \\                                                                                      
        \bottomrule                                                                                                  
    \end{tabularx}                                                                                                   
   \caption{April 15th 2019 most important events}                                                                   
    \label{tab:april-events}                                                                                         
\end{table}                                                                                                          

\end{document}

答案1

您可以使用该footnote包并利用其\makesavenoteenv

\documentclass{book}
\usepackage{booktabs}
\usepackage[hyphens]{url}
\usepackage{tabularx}
\usepackage{ragged2e}

\usepackage{footnote}
\makesavenoteenv{table}
\newcounter{step}
\newcommand\step{\stepcounter{step}\thestep}
\begin{document}

\begin{table}
  \centering  
  \caption{April 15th 2019 most important events}
  \label{tab:april-events}
  \begin{tabularx}{\textwidth}{ c >{\RaggedRight}X }
    \toprule
      \textbf{$e_\#$} & \centering\textbf{Description} \tabularnewline
    \midrule
      \step & Cathedral of Notre Dame fire during restorations
      work\footnote{\url{https://www.nytimes.com/es/2019/04/15/notre-dame-incendio/}}. \\
    \addlinespace
      \step & Beginning of `Semana Santa' vacances in
      Madrid\footnote{\url{https://www.abc.es/espana/madrid/abci-semana-santa-2019-procesiones-madrid-recorrido-horario-y-programa-201904110105_noticia.html}}. \\
    \addlinespace
      \step & World Art Day\footnote{\url{http://www.aimdigital.com.ar/15-de-abril-dia-mundial-del-arte/}}. \\
    \addlinespace
      \step & Max Pradera, an Spanish journalist, posted an unfortunate comment
      about Almudena Cathedral and Notre
      Dame\footnote{\url{https://www.abc.es/internacional/abci-pradera-pudiendose-haber-quemado-almudena-y-quema-notre-dame-201904160310_noticia.html}}. \\
    \addlinespace
      \step & Premiere of the last season of Game of Thrones\footnote{\url{https://www.elmundo.es/television/2019/04/09/5cac665ffc6c8393168b46eb.html}}. \\
    \bottomrule
  \end{tabularx}
\end{table}
  
\end{document}

在此处输入图片描述

答案2

因此,我尝试了一下,快速修复似乎是使用parnotes一种肮脏的黑客来创建新行。这不是最优雅的解决方案,但希望它能达到你想要的效果。

\documentclass{book}                                                                                                 

\usepackage{booktabs}                                                                                                
\usepackage{tabularx}                                                                                                
\usepackage{ragged2e}                                                                                                
\usepackage{makecell}                                                                                                

\usepackage{parnotes} % for footnotes in tables                                                                      

\begin{document}                                                                                                     

\begin{table}[hbtp]                                                                                                  
    \centering                                                                                                       
    \begin{tabularx}{\textwidth}{ c >{\RaggedRight}X }                                                               
      \toprule                                                                                                       
      \textbf{$e_\#$} & \makecell[cc]{\textbf{Description}} \\                                                       
      \midrule                                                                                                       
      1 & Cathedral of Notre Dame fire during restorations work\parnote{https://www.nytimes.com/es/2019/04/15/notre-\
dame-incendio/\newline % <--- dirty hack for new lines                                                               
      }.  \\ \addlinespace                                                                                           
      2 & Beginning of `Semana Santa' vacances in Madrid\parnote{https://www.abc.es/espana/madrid/abci-semana-santa-\
2019-procesiones-madrid-recorrido-horario-y-programa-201904110105\_noticia.html\newline}. \\ \addlinespace           
      3 & World Art Day\parnote{http://www.aimdigital.com.ar/15-de-abril-dia-mundial-del-arte/\newline}. \\ \addline\
space                                                                                                                
      4 & Max Pradera, an Spanish journalist, posted an unfortunate comment about Almudena Cathedral and Notre Dame\\
parnote{https://www.abc.es/internacional/abci-pradera-pudiendose-haber-quemado-almudena-y-quema-notre-dame-201904160\
310\_noticia.html\newline}. \\ \addlinespace                                                                         
      5 & Premiere of the last season of Game of Thrones\parnote{https://www.elmundo.es/television/2019/04/09/5cac66\
5ffc6c8393168b46eb.html}. \\                                                                                         
      \bottomrule                                                                                                    
    \end{tabularx}                                                                                                   
    \caption{April 15th 2019 most important events}                                                                  
    \label{tab:april-events}                                                                                         
  \end{table}                                                                                                        
  \parnotes % actually create the footnotes, can also be placed inside table, but behaviour different                

\end{document} 

输出

您还可以创建一个\newcommand来包含\newlines,这取决于您需要的频率。

相关内容