在以下示例中,LaTeX(pdflatex 和 lualatex)确实在第一页开始排版,但在第二页上,8 月之后的页面也没有正确分解。
我原本以为这种情况会发生在浮动对象上,但不会发生在普通表格上。
\documentclass[ngerman,12pt]{article}
\usepackage[T1]{fontenc}
\usepackage{booktabs}
\usepackage{babel}
\usepackage[left=1cm,right=1cm, top=1cm,bottom=1cm]{geometry}
\pagestyle{empty}
\begin{document}
\begin{tabular}{rrrrrrr} \multicolumn{7}{c}{April 2020} \\ \toprule
Mo & Di & Mi & Do & Fr & Sa & So \\ \midrule
& &1 &2 &3 &4 &5\\
6 &7 &8 &9 &10 &11 &12\\
13 &14 &15 &16 &17 &18 &19\\
20 &21 &22 &23 &24 &25 &26\\
27 &28 &29 &30 & & & \\
\bottomrule \end{tabular} \vspace*{2.5em}
\begin{tabular}{rrrrrrr} \multicolumn{7}{c}{Mai 2020} \\ \toprule
Mo & Di & Mi & Do & Fr & Sa & So \\ \midrule
& & & &1 &2 &3\\
4 &5 &6 &7 &8 &9 &10\\
11 &12 &13 &14 &15 &16 &17\\
18 &19 &20 &21 &22 &23 &24\\
25 &26 &27 &28 &29 &30 &31\\
\bottomrule \end{tabular} \vspace*{2.5em}
\begin{tabular}{rrrrrrr} \multicolumn{7}{c}{Juni 2020} \\ \toprule
Mo & Di & Mi & Do & Fr & Sa & So \\ \midrule
1 &2 &3 &4 &5 &6 &7\\
8 &9 &10 &11 &12 &13 &14\\
15 &16 &17 &18 &19 &20 &21\\
22 &23 &24 &25 &26 &27 &28\\
29 &30 & & & & & \\
\bottomrule \end{tabular} \vspace*{2.5em}
\begin{tabular}{rrrrrrr} \multicolumn{7}{c}{Juli 2020} \\ \toprule
Mo & Di & Mi & Do & Fr & Sa & So \\ \midrule
& &1 &2 &3 &4 &5\\
6 &7 &8 &9 &10 &11 &12\\
13 &14 &15 &16 &17 &18 &19\\
20 &21 &22 &23 &24 &25 &26\\
27 &28 &29 &30 &31 & & \\
\bottomrule \end{tabular} \vspace*{2.5em}
\begin{tabular}{rrrrrrr} \multicolumn{7}{c}{August 2020} \\ \toprule
Mo & Di & Mi & Do & Fr & Sa & So \\ \midrule
& & & & &1 &2\\
3 &4 &5 &6 &7 &8 &9\\
10 &11 &12 &13 &14 &15 &16\\
17 &18 &19 &20 &21 &22 &23\\
24 &25 &26 &27 &28 &29 &30\\
31 & & & & & & \\
\bottomrule \end{tabular} \vspace*{2.5em}
\begin{tabular}{rrrrrrr} \multicolumn{7}{c}{September 2020} \\ \toprule
Mo & Di & Mi & Do & Fr & Sa & So \\ \midrule
&1 &2 &3 &4 &5 &6\\
7 &8 &9 &10 &11 &12 &13\\
14 &15 &16 &17 &18 &19 &20\\
21 &22 &23 &24 &25 &26 &27\\
28 &29 &30 & & & & \\
\bottomrule \end{tabular} \vspace*{2.5em}
\end{document}
答案1
正如上面的评论所指出的,删除*
之后vspace
在我的计算机上就可以了,你可以找到下面的代码以供参考:
\documentclass[ngerman,12pt]{article}
\usepackage[T1]{fontenc}
\usepackage{booktabs}
\usepackage{babel}
\usepackage[left=1cm,right=1cm, top=1cm,bottom=1cm]{geometry}
\pagestyle{empty}
\begin{document}
\begin{tabular}{rrrrrrr}
\multicolumn{7}{c}{April 2020}\\
\toprule
Mo & Di & Mi & Do & Fr & Sa & So\\
\midrule
& & 1 & 2 & 3 & 4 & 5 \\
6 & 7 & 8 & 9 & 10 & 11 & 12\\
13 & 14 & 15 & 16 & 17 & 18 & 19\\
20 & 21 & 22 & 23 & 24 & 25 & 26\\
27 & 28 & 29 & 30 & & & \\
\bottomrule
\end{tabular}
\vspace{2.5em}
\begin{tabular}{rrrrrrr}
\multicolumn{7}{c}{Mai 2020}\\
\toprule
Mo & Di & Mi & Do & Fr & Sa & So\\
\midrule
& & & & 1 & 2 & 3 \\
4 & 5 & 6 & 7 & 8 & 9 & 10 \\
11 & 12 & 13 & 14 & 15 & 16 & 17 \\
18 & 19 & 20 & 21 & 22 & 23 & 24 \\
25 & 26 & 27 & 28 & 29 & 30 & 31 \\
\bottomrule
\end{tabular}
\vspace{2.5em}
\begin{tabular}{rrrrrrr}
\multicolumn{7}{c}{Juni 2020}\\
\toprule
Mo & Di & Mi & Do & Fr & Sa & So\\
\midrule
1 & 2 & 3 & 4 & 5 & 6 & 7 \\
8 & 9 & 10 & 11 & 12 & 13 & 14\\
15 & 16 & 17 & 18 & 19 & 20 & 21\\
22 & 23 & 24 & 25 & 26 & 27 & 28\\
29 & 30 & & & & & \\
\bottomrule
\end{tabular}
\vspace{2.5em}
\begin{tabular}{rrrrrrr}
\multicolumn{7}{c}{Juli 2020}\\
\toprule
Mo & Di & Mi & Do & Fr & Sa & So\\
\midrule
& & 1 & 2 & 3 & 4 & 5 \\
6 & 7 & 8 & 9 & 10 & 11 & 12 \\
13 & 14 & 15 & 16 & 17 & 18 & 19 \\
20 & 21 & 22 & 23 & 24 & 25 & 26 \\
27 & 28 & 29 & 30 & 31 & & \\
\bottomrule
\end{tabular}
\vspace{2.5em}
\begin{tabular}{rrrrrrr}
\multicolumn{7}{c}{August 2020}\\
\toprule
Mo & Di & Mi & Do & Fr & Sa & So\\
\midrule
& & & & & 1 & 2\\
3 & 4 & 5 & 6 & 7 & 8 & 9\\
10 & 11 & 12 & 13 & 14 & 15 & 16\\
17 & 18 & 19 & 20 & 21 & 22 & 23\\
24 & 25 & 26 & 27 & 28 & 29 & 30\\
31 & & & & & & \\
\bottomrule
\end{tabular}
\vspace{2.5em}
\begin{tabular}{rrrrrrr}
\multicolumn{7}{c}{September 2020}\\
\toprule
Mo & Di & Mi & Do & Fr & Sa & So\\
\midrule
& 1 & 2 & 3 & 4 & 5 & 6\\
7 & 8 & 9 & 10 & 11 & 12 & 13\\
14 & 15 & 16 & 17 & 18 & 19 & 20\\
21 & 22 & 23 & 24 & 25 & 26 & 27\\
28 & 29 & 30 & & & & \\
\bottomrule
\end{tabular}
\vspace{2.5em}
\end{document}