我正在使用该multicols
环境创建一个简单的工作表,其中的练习分为两列。一切都运行良好,但如果练习跨越多页,环境multicols
会将页面上的最后一项调整到页面底部,让学生没有空间来完成工作。我找到了一个简单的解决方案,只需将底部边距放大并删除页脚即可:
源自以下代码:
\documentclass[reqno,12pt]{article}
\usepackage{amsmath,amssymb,amsthm}
\usepackage[top=1.125in, bottom=2.125in, left=0.75in, right=0.75in]{geometry}
\geometry{letterpaper}
\usepackage{multicol}
\usepackage{fancyhdr}
\setlength{\headheight}{28pt}
\setlength{\headsep}{16pt}
\fancyhf{}
\pagestyle{fancy}
\fancyhead[L]{MVCC Math 141 \\ Jaffary}
\fancyhead[R]{Practice Problems}
%\fancyfoot[R]{\thepage}
%\renewcommand{\headrulewidth}{0.1pt}
%\renewcommand{\footrulewidth}{0.1pt}
\begin{document}
\section*{Exercises}
\hrule
\medskip
Solve the following equations.
\medskip
\begin{multicols}{2}
\begin{enumerate}\itemsep3.2cm
% \\
\item $3 \cdot 2^{x} = 48$
\item $3 \cdot \log_{2}(x) = 12$
\item $3 \sqrt[4]{x} = 6$
\item $3 \cdot 2^{x} = 48$
\item $3 \cdot \log_{2}(x) = 12$
\item $3 \sqrt[4]{x} = 6$
\item $3 \cdot 2^{x} = 48$
\item $3 \cdot \log_{2}(x) = 12$
\item $3 \sqrt[4]{x} = 6$
\item $3 \cdot 2^{x} = 48$
\item $3 \cdot \log_{2}(x) = 12$
\item $3 \sqrt[4]{x} = 6$
\item $3 \cdot 2^{x} = 48$
\item $3 \cdot \log_{2}(x) = 12$
\item $3 \sqrt[4]{x} = 6$
\item $3 \cdot 2^{x} = 48$
\item $3 \cdot \log_{2}(x) = 12$
\item $3 \sqrt[4]{x} = 6$
\end{enumerate}
\end{multicols}
\end{document}
我正在寻找一种更好的方法来做到这一点,并保留页脚。下图显示了我遇到的问题:
它来自此代码,其中底部边距与顶部边距相同,并且有一个页脚:
\documentclass[reqno,12pt]{article}
\usepackage{amsmath,amssymb,amsthm}
\usepackage[top=1.125in, bottom=1.125in, left=0.75in, right=0.75in]{geometry}
\geometry{letterpaper}
\usepackage{multicol}
\usepackage{fancyhdr}
\setlength{\headheight}{28pt}
\setlength{\headsep}{16pt}
\fancyhf{}
\pagestyle{fancy}
\fancyhead[L]{MVCC Math 141 \\ Jaffary}
\fancyhead[R]{Practice Problems}
\fancyfoot[R]{\thepage}
\renewcommand{\headrulewidth}{0.1pt}
\renewcommand{\footrulewidth}{0.1pt}
\begin{document}
\section*{Exercises}
\hrule
\medskip
Solve the following equations.
\medskip
\begin{multicols}{2}
\begin{enumerate}\itemsep3.5cm
% \\
\item $3 \cdot 2^{x} = 48$
\item $3 \cdot \log_{2}(x) = 12$
\item $3 \sqrt[4]{x} = 6$
\item $3 \cdot 2^{x} = 48$
\item $3 \cdot \log_{2}(x) = 12$
\item $3 \sqrt[4]{x} = 6$
\item $3 \cdot 2^{x} = 48$
\item $3 \cdot \log_{2}(x) = 12$
\item $3 \sqrt[4]{x} = 6$
\item $3 \cdot 2^{x} = 48$
\item $3 \cdot \log_{2}(x) = 12$
\item $3 \sqrt[4]{x} = 6$
\item $3 \cdot 2^{x} = 48$
\item $3 \cdot \log_{2}(x) = 12$
\item $3 \sqrt[4]{x} = 6$
\item $3 \cdot 2^{x} = 48$
\item $3 \cdot \log_{2}(x) = 12$
\item $3 \sqrt[4]{x} = 6$
\end{enumerate}
\end{multicols}
\end{document}
答案1
此问题也会发生在普通的分页符处,因为itemsep
在那里被丢弃。解决此问题的一种方法是通过 插入空格\vspace*
,这通常不会被丢弃,但是您需要在列表末尾小心。在下面,我定义了一个新的环境,以及分隔符的exer
新长度:\exerspace
\documentclass[reqno,12pt]{article}
\usepackage{amsmath,amssymb,amsthm}
\usepackage[top=1.125in, bottom=1.125in, left=0.75in, right=0.75in]{geometry}
\geometry{letterpaper}
\usepackage{multicol}
\usepackage{fancyhdr}
\setlength{\headheight}{28pt}
\setlength{\headsep}{16pt}
\fancyhf{}
\pagestyle{fancy}
\fancyhead[L]{MVCC Math 141 \\ Jaffary}
\fancyhead[R]{Practice Problems}
\fancyfoot[R]{\thepage}
\renewcommand{\headrulewidth}{0.1pt}
\renewcommand{\footrulewidth}{0.1pt}
\newlength{\exerspace}
\setlength{\exerspace}{3.5cm plus 0.5cm}
\newenvironment{exer}{\begin{enumerate}\let\olditem\item%
\def\item{\ifnum \value{enumi}>0\vspace*{\exerspace}\fi\olditem}%
}{\vspace*{\exerspace}\vspace{0pt}\end{enumerate}%
}
\begin{document}
\section*{Exercises}
\hrule
\medskip
Solve the following equations.
\medskip
\begin{multicols}{2}
\begin{exer}
\item $3 \cdot 2^{x} = 48$
\item $3 \cdot \log_{2}(x) = 12$
\item $3 \sqrt[4]{x} = 6$
\item $3 \cdot 2^{x} = 48$
\item $3 \cdot \log_{2}(x) = 12$
\item $3 \sqrt[4]{x} = 6$
\item $3 \cdot 2^{x} = 48$
\item $3 \cdot \log_{2}(x) = 12$
\item $3 \sqrt[4]{x} = 6$
\item $3 \cdot 2^{x} = 48$
\item $3 \cdot \log_{2}(x) = 12$
\item $3 \sqrt[4]{x} = 6$
\item $3 \cdot 2^{x} = 48$
\item $3 \cdot \log_{2}(x) = 12$
\item $3 \sqrt[4]{x} = 6$
\item $3 \cdot 2^{x} = 48$
\item $3 \cdot \log_{2}(x) = 12$
\item $3 \sqrt[4]{x} = 6$
\end{exer}
\end{multicols}
\end{document}
请注意,我已设置了\exerspace
最小尺寸3.5cm
以及一些额外的可拉伸性plus 0.5cm
;这提供了灵活性,可以使页面上的项目更均匀地分布。