I need to have some tables with the following requirements:
- The need to be of width
\textwidth
; - The caption has to be on top of the table even at automatic page breaks;
- The tables should not float;
- There will be multiple footnotes in the table;
- There will be multiple references to the same footnote;
- References should be hyperlinked to the footnote; and
- The footnotes should be at the bottom of the page
Additional issues:
- When I use
\captionof{table}
, the caption and table get separated at a page break. Using\newpage
before\captionof
works, but I have to do that manually (I don't really get where it would be desirable to have the caption on one page and the table on the next?) - Placing the
tabularx
in a table environment solves thecaption
problem, but that makes the tables float, which I don't want. - I want footnotes to be referenced with
hyperref
. The superscripts are clickable, but just make me jump to the front page. - Including the
tabularx
in aminipage
worked, but only with the\footnote
included in theminipage
, which makes the\footnotes
appear right after thetable
in the middle of the page.
Here is my MWE.
\documentclass[a4paper]{scrartcl}
\usepackage[colorlinks=true]{hyperref}
\usepackage{tabularx, multirow} % tabularx: auf Textbreite vergrößern
\newcolumntype{R}{>{\raggedleft\arraybackslash}X}
\begin{
\section{BLA}
\captionof{table}{table1}\label{tab:1}
\noindent\begin{tabularx}{\textwidth}{|X|R|}
\hline\rule{0pt}{14pt}\ignorespaces
\textbf{\large one} & \textbf{\large two}\\
\hline\rule{0pt}{11pt}\ignorespaces
three & four \footnotemark[3]
\\\hline\rule{0pt}{11pt}\ignorespaces
five & six \footnote{eight}
\\\hline\rule{0pt}{11pt}\ignorespaces
nine & ten \footnotemark[3]
\\\hline
\end{tabularx}
\footnotetext[3]{seven}
\end{document}
Here, footnote 3 has not been linked and footnote 1 makes a jump to the beginning of the page.