
似乎在同一頁面上有一個長表,而移動到那裡的浮動會導致長度計算跳出,以便文字覆蓋頁腳。微量元素:
\documentclass{scrartcl}
\usepackage{mwe} % For dummy figures
\usepackage{lipsum} % For dummy text
\usepackage{graphicx}
\usepackage{scrlayer-scrpage}
\usepackage{longtable}
\usepackage{xcolor} % To visualize footer better
% Set up footer
\pagestyle{scrheadings}
\ifoot{\color{red}aaa}
\ofoot{\color{red}bbb}
\begin{document}
\section{A}
\lipsum[1-3]
\begin{figure} % Figure that will float to next page
\centering
\includegraphics[scale=1]{example-image-b}
\caption{Figure caption}
\end{figure}
\section{B}
\lipsum[1-2]
\begin{longtable}{|c|}
\hline
Table\\
\hline
\end{longtable}
\section{B}
\lipsum[1-3]
\end{document}
請注意紅色(為了清晰起見)頁腳文字。 Latex 和 pdflatex 都一樣。無需定義自己的頁腳,但這樣更清晰。如果沒有定義特殊頁腳,將會覆寫頁碼。
知道如何處理這個問題嗎?