![用方程填满一页,然后切换到一栏](https://linux22.com/image/383997/%E7%94%A8%E6%96%B9%E7%A8%8B%E5%A1%AB%E6%BB%A1%E4%B8%80%E9%A1%B5%EF%BC%8C%E7%84%B6%E5%90%8E%E5%88%87%E6%8D%A2%E5%88%B0%E4%B8%80%E6%A0%8F.png)
类似问题 =如何让 LaTeX 精确填满一页?
我想用几个 s 来填满一页,equation
因为它们带有自动编号功能。我试过这个\lineskip\fill
技巧,但并不完美。
\documentclass[twocolumn]{article}
\usepackage{amsmath}
\usepackage{showframe}
\begin{document}
Some Lorem Ipsum here.
\bgroup
\lineskip\fill
\def\bigbox#1 {
\begin{equation}
\vrule height#1cmdepth#1cmwidth3cm
\end{equation}
}
\bigbox1
\bigbox1
\bigbox1
\bigbox1
\bigbox2
\bigbox2
\bigbox2
\bigbox2
\bigbox2
\bigbox2
% \bigbox2
% \bigbox2
% \bigbox2
% \bigbox2
% \bigbox2
% \bigbox2
% \bigbox2
% \bigbox2
\egroup
\onecolumn
Here is one-column material.
\end{document}
我怎样才能使 (6) 和 (10) 对齐呢?
答案1
此解决方案将方程式放入\vbox
没有间隙的 中,然后添加\abovedisplayskip
并\belowsiplayskip
返回。这些被吸收到页面的顶部和底部,但遗憾的是之前没有\pagebreak
(这是为了避免\vfil
来自\onecolumn
)。
\documentclass[twocolumn]{article}
\usepackage{amsmath}
\usepackage{showframe}
\def\bigbox#1 {\bgroup
\parskip=0pt
\ifvmode\else\par\fi
\vskip\abovedisplayskip
\noindent\vbox{\begin{equation}
\vrule height#1cm depth#1cm width3cm
\end{equation}\par
\vskip-\belowdisplayskip
\vskip\dp\strutbox}% end of \vbox
\vskip\belowdisplayskip
\egroup\noindent}
\begin{document}
Some Lorem Ipsum here.
\bgroup
\lineskip=0pt plus 10pt minus 0pt
\bigbox1
\bigbox1
\bigbox1
\bigbox1
\bigbox2
\bigbox2
\bigbox2
\bigbox2
\bigbox2
\bigbox2
% \bigbox2
% \bigbox2
% \bigbox2
% \bigbox2
% \bigbox2
% \bigbox2
% \bigbox2
% \bigbox2
\egroup
\vskip-\belowdisplayskip
\pagebreak
\onecolumn
Here is one-column material.
\the\abovedisplayskip
\the\belowdisplayskip
\end{document}