LaTeX 中的页脚间距

LaTeX 中的页脚间距

我的 LaTeX 文档中有一个巨大的页脚(每页都需要一个表格),但是表格太高,无法放置在文档中,尽管我使用了\addtolength{\footskip}{-30pt}低于该尺寸的尺寸,但页脚似乎还是按照与
我使用包时错误的方式增长,fancyhdr
我该如何解决这个问题?

答案1

为了适应较高的页脚,您还需要调整文本高度。最简单的方法是使用geometry包。下面是一个例子:

\documentclass[letterpaper]{article}
\usepackage{lipsum} % for sample text
\usepackage[textheight=8in,footskip=72pt]{geometry}
\usepackage{fancyhdr}
\fancyhf{}
\cfoot{\begin{tabular}{p{2in}}This is some \\ text in a table \\ this is a big\\ table\\it has many lines\\it's really really tall\end{tabular}}
\renewcommand{\headrulewidth}{0pt}
\pagestyle{fancy}

\begin{document}

\lipsum

\end{document}

相关内容