脚注旁边的小页面表格

脚注旁边的小页面表格

我有一张横向表格。我想在底部链接到表格中通过脚注引用的一些 URL。在脚注的右侧,我还想为表格添加一个图例。这些是不是脚注,因为符号直接位于表格本身中(如果有意义的话)。下面是 mwe。我复制了文档中使用的所有包,即使它们并非都与此表相关,以防发生任何冲突。

\documentclass{article}
\usepackage[T1]{fontenc}

\usepackage{cmap}
\usepackage{lipsum}
\usepackage{rotating}
\usepackage{pdflscape}
\usepackage{afterpage}
\usepackage{tabularx}
\usepackage{adjustbox}
\usepackage{afterpage}
\usepackage{longtable}
\usepackage{multirow}
\usepackage{makecell}
\usepackage{graphicx}
\usepackage[symbol]{footmisc}
\usepackage{booktabs,dcolumn}                     % Tables.
\usepackage[figureposition=bottom]{caption}

\usepackage{latexsym}
\usepackage{booktabs}
\usepackage{float}
\usepackage{caption}
\usepackage{array}

\usepackage{MnSymbol}

\usepackage{url}
\usepackage{hyperref}
\usepackage{cleveref}


\title{table mwe}
\author{}
\date{}

\begin{document}

\maketitle

\newpage
%\thispagestyle{empty}
\begin{landscape}
\section*{Summary of papers}
%\begin{minipage}[b]{\linewidth}
\centering
\footnotesize
\begin{tabular}{cm{3cm}ccccccccccc}
\toprule
 & \multirow{2}{*}{\textbf{Title}} & \multirow{2}{*}{\textbf{Coauthors}} & \multirow{2}{*}{\makecell{\textbf{Venue}}} & \multirow{2}{*}{\textbf{Status}} & \multirow{2}{*}{\makecell{\textbf{Pre-}\\\textbf{registered}}} & \multirow{2}{*}{\makecell{\textbf{Ethical}\\\textbf{Approval}}} & \multicolumn{4}{c}{\textbf{Study Design}} & \multirow{2}{*}{\makecell{\textbf{Open}\\\textbf{Access}}} & \multirow{2}{*}{\makecell{\textbf{Online}\\\textbf{Repository}}} \\ \cmidrule(lr){8-11}
 &  &  &  &  &  &  & \makecell{Open\\Materials} & \makecell{Open\\Code} & \multicolumn{1}{c}{\makecell{Open\\Analyses}} & \makecell{Open\\Data} &  &  \\ \midrule
2 & {Lorem ipsum dolor sit amet, consectetuer adipiscing el} & \makecell{John Smith \\ Jane Doe \\ Pierre Leblanc} & Journal & Published & $\times$ & N/A & $\checkmark$ & $\checkmark$ & $\checkmark$ & $\checkmark$ & Gold & Github \protect\footnotemark \\
3 & {Ut purus elit,vestibulum ut, placerat ac, adipiscing vitae, felis} & John Smith & Conference & Published & $\times$  & $\checkmark$ & $\checkmark$ & $\checkmark$ & $\times$  & $\checkmark$ & Green  & \makecell{Github \footnotemark \\ OSF \footnotemark} \\ \addlinespace
4 & Curabitur dictum gravidamauris & John Smith & Conference & Published & $\times$  & $\checkmark$ & N/A & N/A & $\times$  &  $\times$ & $\times$  & Github \footnotemark \\ \addlinespace
5 & Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna.Donec vehicula augue eu neque & \makecell{John Smith \\ Jane Doe \\ Pierre Leblanc \\ Foo Bar \\ abc xyz} & \makecell[c]{Other \\ Journal} & \makecell[c]{Submitted\\(date)} & $\times$  & $\checkmark$ & $\checkmark$ & $\times$  & $\checkmark$ & $\times$  & - &  \makecell{same as \\ above} \\ \addlinespace
6 & . Pellentesque habitant morbi tristique senectuset netus et malesuada fames ac turpis egesta & \makecell{Jane Doe \\ John Smith} & - & In Prep & $\checkmark$ & $\checkmark$ & $\checkmark$ & N/A & - & - & - & OSF \footnotemark \\ \bottomrule
\end{tabular}
\vspace{-0.3cm}
\renewcommand\footnoterule{}
\footnotetext[1]{\url{https://onecvariusorciegetrisus}}
\footnotetext[2]{\url{https://duisnibh micongueeuaccumsaneleifen}}
\footnotetext[3]{\url{https://donecvariusorciegetrisus}}
\footnotetext[4]{\url{https://Namduiligulafringillaa}}
\footnotetext[5]{\url{https://praesentegetsemvelleoultricesbibendum}}
%\vspace{-2cm}
\begin{flushright}
\begin{minipage}[]{0.5\textwidth}
\footnotesize
\begin{itemize}
\setlength{\itemsep}{0.5pt}
  %\itemsep0em
    \item[$\checkmark$] Available for this paper 
    \item[$\times$] Not possible or not available for this paper 
    \item[N/A] Not Applicable 
    \item[-] Work in progress
    \end{itemize}
\end{minipage}
\end{flushright}
\end{landscape}

\end{document}

产生如下输出: 在此处输入图片描述

环境minipage总是以新页面结束。我尝试过编辑尺寸、减去垂直空间等,但都不起作用。我最初也将表格本身放在环境中minipage以获取脚注,但\footnotemark \footnotetext为了防止两个小页面发生冲突,我改变了方法,但情况似乎并非如此。我也不确定为什么此示例中的脚注是符号而不是数字,在实际表格本身中这不是问题。

我如何定位带有表格图例的小页面,使其位于表格右侧下方,与脚注平行?

答案1

我建议采用以下基于的方法threeparttable。使用tabularx,我还确保表格不超过可用的文本宽度,就像在原始代码中一样:

在此处输入图片描述

\documentclass{article}
\usepackage[T1]{fontenc}

\usepackage{cmap}
\usepackage{lipsum}
\usepackage{rotating}
\usepackage{pdflscape}
\usepackage{afterpage}
\usepackage{tabularx}
\usepackage{adjustbox}
\usepackage{afterpage}
\usepackage{longtable}
\usepackage{multirow}
\usepackage{makecell}
\usepackage{graphicx}
\usepackage[symbol]{footmisc}
\usepackage{booktabs,dcolumn}                     % Tables.
\usepackage[figureposition=bottom]{caption}

\usepackage{latexsym}
\usepackage{booktabs}
\usepackage{float}
\usepackage{caption}
\usepackage{array}
\usepackage{threeparttable}
\usepackage{multicol}

\usepackage{MnSymbol}

\usepackage{url}
\usepackage{hyperref}
\usepackage{cleveref}

\begin{document}

\begin{landscape}
\section*{Summary of papers}
\begin{threeparttable}
  \setlength{\tabcolsep}{2.5pt}
  \renewcommand\tabularxcolumn[1]{m{#1}}
  \footnotesize
  \begin{tabularx}{\linewidth}{@{}c>{\raggedright\arraybackslash}X*{11}{c}@{}}
    \toprule
    & \multirow{2}{*}{\textbf{Title}} 
    & \multirow{2}{*}{\textbf{Coauthors}} 
    & \multirow{2}{*}{\makecell{\textbf{Venue}}} 
    & \multirow{2}{*}{\textbf{Status}} 
    & \multirow{2}{*}{\makecell{\textbf{Pre-}\\\textbf{registered}}} 
    & \multirow{2}{*}{\makecell{\textbf{Ethical}\\\textbf{Approval}}} 
    & \multicolumn{4}{c}{\textbf{Study Design}} 
    & \multirow{2}{*}{\makecell{\textbf{Open}\\\textbf{Access}}} 
    & \multirow{2}{*}{\makecell{\textbf{Online}\\\textbf{Repository}}} \\ 
     \cmidrule(lr){8-11}
    &  &  &  &  &  &  
    & \makecell{Open\\Materials} 
    & \makecell{Open\\Code} 
    & \makecell{Open\\Analyses} 
    & \makecell{Open\\Data} &  &  \\ 
    \midrule
    2 & {Lorem ipsum dolor sit amet, consectetuer adipiscing el} 
      & \makecell{John Smith \\ Jane Doe \\ Pierre Leblanc} 
      & Journal & Published 
      & $\times$ & N/A & $\checkmark$ & $\checkmark$ & $\checkmark$ & $\checkmark$ 
      & Gold & Github \tnote{1} \\
    \addlinespace
    3 & {Ut purus elit,vestibulum ut, placerat ac, adipiscing vitae, felis} 
      & John Smith 
      & Conference & Published 
      & $\times$  & $\checkmark$ & $\checkmark$ & $\checkmark$ & $\times$  & $\checkmark$ 
      & Green  & \makecell{Github \tnote{2} \\ OSF \tnote{3}} \\ 
    \addlinespace
    4 & Curabitur dictum gravidamauris 
      & John Smith 
      & Conference & Published 
      & $\times$  & $\checkmark$ & N/A & N/A & $\times$  &  $\times$ 
      & $\times$  & Github \tnote{4} \\ 
    \addlinespace
    5 & Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna.Donec vehicula augue eu neque 
      & \makecell{John Smith \\ Jane Doe \\ Pierre Leblanc \\ Foo Bar \\ abc xyz} 
      & \makecell[c]{Other \\ Journal} & \makecell[c]{Submitted\\(date)} 
      & $\times$  & $\checkmark$ & $\checkmark$ & $\times$  & $\checkmark$ & $\times$  
      & - &  \makecell{same as \\ above} \\ 
    \addlinespace
    6 & . Pellentesque habitant morbi tristique senectuset netus et malesuada fames ac turpis egesta 
      & \makecell{Jane Doe \\ John Smith} 
      & - & In Prep
      & $\checkmark$ & $\checkmark$ & $\checkmark$ & N/A & - & - 
      & - & OSF \tnote{5} \\ 
    \bottomrule
  \end{tabularx}
  \begin{tablenotes}
    \begin{multicols}{2}
      \item[1]{\url{https://onecvariusorciegetrisus}}
      \item[2]{\url{https://duisnibh micongueeuaccumsaneleifen}}
      \item[3]{\url{https://donecvariusorciegetrisus}}
      \item[4]{\url{https://Namduiligulafringillaa}}
      \item[5]{\url{https://praesentegetsemvelleoultricesbibendum}}
      \smallskip

      \begin{tabular}{rl}
        $\checkmark$ & Available for this paper \\
        $\times$     & Not possible or not available for this paper \\
        N/A          & Not Applicable\\ 
        -            & Work in progress
      \end{tabular}
    \end{multicols}
  \end{tablenotes}
\end{threeparttable}
\end{landscape}

\end{document}

答案2

我认为您不需要真正的脚注,而且多个脚注\protect\footnotemark会让人非常困惑hyperref

\documentclass{article}
\usepackage[T1]{fontenc}

\usepackage{cmap}
\usepackage{lipsum}
\usepackage{rotating}
\usepackage{pdflscape}
\usepackage{afterpage}
\usepackage{tabularx}
\usepackage{adjustbox}
\usepackage{afterpage}
\usepackage{longtable}
\usepackage{multirow}
\usepackage{makecell}
\usepackage{graphicx}
\usepackage[symbol]{footmisc}
\usepackage{booktabs,dcolumn}                     % Tables.
\usepackage[figureposition=bottom]{caption}

\usepackage{latexsym}
\usepackage{booktabs}
\usepackage{float}
\usepackage{caption}
\usepackage{array}

\usepackage{MnSymbol}

\usepackage{url}
\usepackage{hyperref}
\usepackage{cleveref}


\title{table mwe}
\author{}
\date{}

\begin{document}

\maketitle

\newpage
%\thispagestyle{empty}
\begin{landscape}
\section*{Summary of papers}
\centering
\footnotesize

\makeatletter
\newcommand{\tablefootnotemark}[1]{\textsuperscript{\@fnsymbol{#1}}}
\newcommand{\tablefootnotetext}[1]{\makebox[1em][l]{\textsuperscript{\@fnsymbol{#1}}}}
\makeatother

\begin{tabular}{c>{\raggedright}m{3cm}ccccccccccc}
\toprule
  & \multirow{2}{*}{\textbf{Title}}
  & \multirow{2}{*}{\textbf{Coauthors}}
  & \multirow{2}{*}{\makecell{\textbf{Venue}}}
  & \multirow{2}{*}{\textbf{Status}}
  & \multirow{2}{*}{\makecell{\textbf{Pre-}\\\textbf{registered}}}
  & \multirow{2}{*}{\makecell{\textbf{Ethical}\\\textbf{Approval}}}
  & \multicolumn{4}{c}{\textbf{Study Design}}
  & \multirow{2}{*}{\makecell{\textbf{Open}\\\textbf{Access}}}
  & \multirow{2}{*}{\makecell{\textbf{Online}\\\textbf{Repository}}}
\\
\cmidrule(lr){8-11}
  &  &  &  &  &  &
  & \makecell{Open\\Materials}
  & \makecell{Open\\Code}
  & \multicolumn{1}{c}{\makecell{Open\\Analyses}}
  & \makecell{Open\\Data}
  &  &
\\
\midrule
2 & Lorem ipsum dolor sit amet, consectetuer adipiscing el
  & \makecell{John Smith \\ Jane Doe \\ Pierre Leblanc}
  & Journal
  & Published
  & $\times$
  & N/A
  & $\checkmark$
  & $\checkmark$
  & $\checkmark$
  & $\checkmark$
  & Gold
  & Github\tablefootnotemark{1}
\\
\addlinespace
3 & Ut purus elit,vestibulum ut, placerat ac, adipiscing vitae, felis
  & John Smith
  & Conference
  & Published
  & $\times$
  & $\checkmark$
  & $\checkmark$
  & $\checkmark$
  & $\times$
  & $\checkmark$
  & Green
  & \makecell{Github\tablefootnotemark{2} \\ OSF \tablefootnotemark{3}}
\\
\addlinespace
4 & Curabitur dictum gravidamauris
  & John Smith
  & Conference
  & Published
  & $\times$
  & $\checkmark$
  & N/A
  & N/A
  & $\times$
  & $\times$ &
  $\times$
  & Github\tablefootnotemark{4}
\\
\addlinespace
5 & Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna.
    Donec vehicula augue eu neque
  & \makecell{John Smith \\ Jane Doe \\ Pierre Leblanc \\ Foo Bar \\ abc xyz}
  & \makecell[c]{Other \\ Journal}
  & \makecell[c]{Submitted\\(date)}
  & $\times$
  & $\checkmark$
  & $\checkmark$
  & $\times$
  & $\checkmark$
  & $\times$
  & --
  & \makecell{same as \\ above}
\\
\addlinespace
6 & Pellentesque habitant morbi tristique senectuset netus et malesuada
    fames ac turpis egesta
  & \makecell{Jane Doe \\ John Smith}
  & --
  & In Prep
  & $\checkmark$
  & $\checkmark$
  & $\checkmark$
  & N/A
  & --
  & --
  & --
  & OSF\tablefootnotemark{5}
\\
\bottomrule
\end{tabular}

\begin{minipage}[t]{0.5\linewidth}
\tablefootnotetext{1}{\url{https://onecvariusorciegetrisus}} \\
\tablefootnotetext{2}{\url{https://duisnibh micongueeuaccumsaneleifen}} \\
\tablefootnotetext{3}{\url{https://donecvariusorciegetrisus}} \\
\tablefootnotetext{4}{\url{https://Namduiligulafringillaa}} \\
\tablefootnotetext{5}{\url{https://praesentegetsemvelleoultricesbibendum}} \\
\end{minipage}\hfill
\begin{tabular}[t]{@{}ll@{}}
$\checkmark$ & Available for this paper \\
$\times$     & Not possible or not available for this paper \\
N/A          & Not Applicable \\
--           & Work in progress
\end{tabular}

\end{landscape}

\end{document}

我做了一些修改,特别是“正在进行的工作”的连字符应该是破折号,但主要的变化是在输入方面,以我展示的形式,输入比长行更容易维护。

实际上,这个表格仍然太宽,但我只是想给出这个想法。

在此处输入图片描述

相关内容