用方程填满一页,然后切换到一栏

用方程填满一页,然后切换到一栏

类似问题 =如何让 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}

演示

相关内容