我有一张很大的表格(我把它分成三行),上面有脚注。当我排版它(TeXworks)时,表格加载正常,但脚注没有显示。不过标签可以显示。
\documentclass[12pt, a4paper, oneside]{report}
\usepackage[utf8]{inputenc}
\usepackage[margin=2.5cm, left=3cm]{geometry}
\usepackage{etoolbox}
\usepackage{array}
\newcolumntype{H}{>{\lrbox0}c<{\endlrbox}@{}}
%the H columns will now be hidden
\begin{document}
\begin{table}%[p]
\textbf{\caption{Št. kolonij v odvisnosti od datuma}}
\begin{tabular}{||l||r|r|r|r|r|rHHHHHHHH|}
\hline \hline
Datum & 9.\,2.\,2017 & 10.\,2.\,2017 & 10.\,2.\,2017 & 11.\,2.\,2017 & 12.\,2.\,2017 & 13.\,2.\,2017 & 14.\,2.\,2017 & 15.\,2.\,2017 & 16.\,2.\,2017 & 17.\,2.\,2017 & 18.\,2.\,2017 & 19.\,2.\,2017 & 20.\,2.\,2017 & 21.\,2.\,2017 \\ \hline
Ura & 17.51 & 6.48 & 18.10 & 17.34 & 17.24 & 17.57 & 20.14 & 17.23 & 18.10 & 18.22 & 18.02 & 16.56 & 21.29 & 19.05 \\ \hline \hline
SD \footnote{FN1} & 18 & 19 & 17 & 23 & 23 & 24 & 25 & 25 & 28 & 38 & 39 & 38 & 37 & 37 \\ \hline
MT \footnote{FN2} & 32 & 35 & 35 & 35 & 34 & 39 & 43 & 42 & 41 & 45 & 48 & 47 & 47 & 48 \\ \hline
RT \footnote{FN3} & 4 & 4 & 4 & 4 & 5 & 5 & 5 & 6 & 6 & 7 & 7 & 7 & 9 & 8 \\ \hline
ŽR \footnote{FN4} & 6 & 6 & 6 & 6 & 8 & 8 & 9 & 9 & 10 & 10 & 11 & 11 & 10 & 10 \\ \hline
KV \footnote{FN5} & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 \\ \hline
BA \footnote{FN6} & 1 & 1 & 2 & 2 & 2 & 3 & 3 & 3 & 3 & 3 & 3 & 3 & 3 & 3 \\ \hline
KO \footnote{FN7} & 0 & 0 & 0 & 0 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 2 & 2 \\ \hline \hline
\end{tabular}
\vspace{0.3cm} %i want to create space here, this vspace creates it below this part.
\begin{tabular}{|HHHHHHHr|r|r|r|r|rHH|}
\hline \hline
Datum & 9.\,2.\,2017 & 10.\,2.\,2017 & 10.\,2.\,2017 & 11.\,2.\,2017 & 12.\,2.\,2017 & 13.\,2.\,2017 & 14.\,2.\,2017 & 15.\,2.\,2017 & 16.\,2.\,2017 & 17.\,2.\,2017 & 18.\,2.\,2017 & 19.\,2.\,2017 & 20.\,2.\,2017 & 21.\,2.\,2017 \\ \hline
Ura & 17.51 & 6.48 & 18.10 & 17.34 & 17.24 & 17.57 & 20.14 & 17.23 & 18.10 & 18.22 & 18.02 & 16.56 & 21.29 & 19.05 \\ \hline \hline
SD & 18 & 19 & 17 & 23 & 23 & 24 & 25 & 25 & 28 & 38 & 39 & 38 & 37 & 37 \\ \hline
MT & 32 & 35 & 35 & 35 & 34 & 39 & 43 & 42 & 41 & 45 & 48 & 47 & 47 & 48 \\ \hline
RT & 4 & 4 & 4 & 4 & 5 & 5 & 5 & 6 & 6 & 7 & 7 & 7 & 9 & 8 \\ \hline
ŽR & 6 & 6 & 6 & 6 & 8 & 8 & 9 & 9 & 10 & 10 & 11 & 11 & 10 & 10 \\ \hline
KV & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 \\ \hline
BA & 1 & 1 & 2 & 2 & 2 & 3 & 3 & 3 & 3 & 3 & 3 & 3 & 3 & 3 \\ \hline
KO & 0 & 0 & 0 & 0 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 2 & 2 \\ \hline \hline
\end{tabular}
\begin{tabular}{|HHHHHHHHHHHHHr|r||}
\hline \hline
Datum & 9.\,2.\,2017 & 10.\,2.\,2017 & 10.\,2.\,2017 & 11.\,2.\,2017 & 12.\,2.\,2017 & 13.\,2.\,2017 & 14.\,2.\,2017 & 15.\,2.\,2017 & 16.\,2.\,2017 & 17.\,2.\,2017 & 18.\,2.\,2017 & 19.\,2.\,2017 & 20.\,2.\,2017 & 21.\,2.\,2017 \\ \hline
Ura & 17.51 & 6.48 & 18.10 & 17.34 & 17.24 & 17.57 & 20.14 & 17.23 & 18.10 & 18.22 & 18.02 & 16.56 & 21.29 & 19.05 \\ \hline \hline
SD & 18 & 19 & 17 & 23 & 23 & 24 & 25 & 25 & 28 & 38 & 39 & 38 & 37 & 37 \\ \hline
MT & 32 & 35 & 35 & 35 & 34 & 39 & 43 & 42 & 41 & 45 & 48 & 47 & 47 & 48 \\ \hline
RT & 4 & 4 & 4 & 4 & 5 & 5 & 5 & 6 & 6 & 7 & 7 & 7 & 9 & 8 \\ \hline
ŽR & 6 & 6 & 6 & 6 & 8 & 8 & 9 & 9 & 10 & 10 & 11 & 11 & 10 & 10 \\ \hline
KV & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 \\ \hline
BA & 1 & 1 & 2 & 2 & 2 & 3 & 3 & 3 & 3 & 3 & 3 & 3 & 3 & 3 \\ \hline
KO & 0 & 0 & 0 & 0 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 2 & 2 \\ \hline \hline
\end{tabular}
\end{table}
\end{document}
我也试过了,\clearpage
但还是不行。另外,我想在表格的第一行和第二行(第一行和第二行)之间留出空间,注释就在那里。
答案1
要打印脚注,您需要将内容环境table
(而不是table
环境本身......)minipage
的宽度\textwidth
。
默认情况下,脚注“数字”将打印为斜体小写字母(a、b、...)。如果您想要阿拉伯数字,只需发出指令
\renewcommand\thempfootnote{\arabic{mpfootnote}}
紧接着\begin{minipage}{\textwidth}
……
\documentclass[12pt, a4paper, oneside]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[margin=2.5cm, left=3cm]{geometry}
\usepackage[font=bf,skip=0.333\baselineskip]{caption}
\usepackage{array}
\newcolumntype{H}{>{\lrbox0}c<{\endlrbox}@{}} % H columns will be hidden
\begin{document}
\begin{table}[p]
\setlength\extrarowheight{1pt}
\begin{minipage}{\textwidth} % <--- new
\caption{Št. kolonij v odvisnosti od datuma}
\begin{tabular}{||l||r|r|r|r|r|rHHHHHHHH|}
\hline \hline
Datum & 9.\,2.\,2017 & 10.\,2.\,2017 & 10.\,2.\,2017 & 11.\,2.\,2017 & 12.\,2.\,2017 & 13.\,2.\,2017 & 14.\,2.\,2017 & 15.\,2.\,2017 & 16.\,2.\,2017 & 17.\,2.\,2017 & 18.\,2.\,2017 & 19.\,2.\,2017 & 20.\,2.\,2017 & 21.\,2.\,2017 \\ \hline
Ura & 17.51 & 6.48 & 18.10 & 17.34 & 17.24 & 17.57 & 20.14 & 17.23 & 18.10 & 18.22 & 18.02 & 16.56 & 21.29 & 19.05 \\ \hline \hline
SD \footnote{FN1} & 18 & 19 & 17 & 23 & 23 & 24 & 25 & 25 & 28 & 38 & 39 & 38 & 37 & 37 \\ \hline
MT \footnote{FN2} & 32 & 35 & 35 & 35 & 34 & 39 & 43 & 42 & 41 & 45 & 48 & 47 & 47 & 48 \\ \hline
RT \footnote{FN3} & 4 & 4 & 4 & 4 & 5 & 5 & 5 & 6 & 6 & 7 & 7 & 7 & 9 & 8 \\ \hline
ŽR \footnote{FN4} & 6 & 6 & 6 & 6 & 8 & 8 & 9 & 9 & 10 & 10 & 11 & 11 & 10 & 10 \\ \hline
KV \footnote{FN5} & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 \\ \hline
BA \footnote{FN6} & 1 & 1 & 2 & 2 & 2 & 3 & 3 & 3 & 3 & 3 & 3 & 3 & 3 & 3 \\ \hline
KO \footnote{FN7} & 0 & 0 & 0 & 0 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 2 & 2 \\ \hline \hline
\end{tabular}
\vspace{0.3cm} % leave some blank lines above/below this instruction
\begin{tabular}{|HHHHHHHr|r|r|r|r|rHH|}
\hline \hline
Datum & 9.\,2.\,2017 & 10.\,2.\,2017 & 10.\,2.\,2017 & 11.\,2.\,2017 & 12.\,2.\,2017 & 13.\,2.\,2017 & 14.\,2.\,2017 & 15.\,2.\,2017 & 16.\,2.\,2017 & 17.\,2.\,2017 & 18.\,2.\,2017 & 19.\,2.\,2017 & 20.\,2.\,2017 & 21.\,2.\,2017 \\ \hline
Ura & 17.51 & 6.48 & 18.10 & 17.34 & 17.24 & 17.57 & 20.14 & 17.23 & 18.10 & 18.22 & 18.02 & 16.56 & 21.29 & 19.05 \\ \hline \hline
SD & 18 & 19 & 17 & 23 & 23 & 24 & 25 & 25 & 28 & 38 & 39 & 38 & 37 & 37 \\ \hline
MT & 32 & 35 & 35 & 35 & 34 & 39 & 43 & 42 & 41 & 45 & 48 & 47 & 47 & 48 \\ \hline
RT & 4 & 4 & 4 & 4 & 5 & 5 & 5 & 6 & 6 & 7 & 7 & 7 & 9 & 8 \\ \hline
ŽR & 6 & 6 & 6 & 6 & 8 & 8 & 9 & 9 & 10 & 10 & 11 & 11 & 10 & 10 \\ \hline
KV & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 \\ \hline
BA & 1 & 1 & 2 & 2 & 2 & 3 & 3 & 3 & 3 & 3 & 3 & 3 & 3 & 3 \\ \hline
KO & 0 & 0 & 0 & 0 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 2 & 2 \\ \hline \hline
\end{tabular}
\vspace{0.3cm} % leave some blank lines above/below this instruction
\begin{tabular}{|HHHHHHHHHHHHHr|r||}
\hline \hline
Datum & 9.\,2.\,2017 & 10.\,2.\,2017 & 10.\,2.\,2017 & 11.\,2.\,2017 & 12.\,2.\,2017 & 13.\,2.\,2017 & 14.\,2.\,2017 & 15.\,2.\,2017 & 16.\,2.\,2017 & 17.\,2.\,2017 & 18.\,2.\,2017 & 19.\,2.\,2017 & 20.\,2.\,2017 & 21.\,2.\,2017 \\ \hline
Ura & 17.51 & 6.48 & 18.10 & 17.34 & 17.24 & 17.57 & 20.14 & 17.23 & 18.10 & 18.22 & 18.02 & 16.56 & 21.29 & 19.05 \\ \hline \hline
SD & 18 & 19 & 17 & 23 & 23 & 24 & 25 & 25 & 28 & 38 & 39 & 38 & 37 & 37 \\ \hline
MT & 32 & 35 & 35 & 35 & 34 & 39 & 43 & 42 & 41 & 45 & 48 & 47 & 47 & 48 \\ \hline
RT & 4 & 4 & 4 & 4 & 5 & 5 & 5 & 6 & 6 & 7 & 7 & 7 & 9 & 8 \\ \hline
ŽR & 6 & 6 & 6 & 6 & 8 & 8 & 9 & 9 & 10 & 10 & 11 & 11 & 10 & 10 \\ \hline
KV & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 \\ \hline
BA & 1 & 1 & 2 & 2 & 2 & 3 & 3 & 3 & 3 & 3 & 3 & 3 & 3 & 3 \\ \hline
KO & 0 & 0 & 0 & 0 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 2 & 2 \\ \hline \hline
\end{tabular}
\end{minipage}
\end{table}
\end{document}