![当我有小型页面时,如何填充两列中的空白?](https://linux22.com/image/393663/%E5%BD%93%E6%88%91%E6%9C%89%E5%B0%8F%E5%9E%8B%E9%A1%B5%E9%9D%A2%E6%97%B6%EF%BC%8C%E5%A6%82%E4%BD%95%E5%A1%AB%E5%85%85%E4%B8%A4%E5%88%97%E4%B8%AD%E7%9A%84%E7%A9%BA%E7%99%BD%EF%BC%9F.png)
我正在用环境写一篇双栏文章minipage
。问题是,在有 的栏中,minipage
任何文本都会填充空白?为什么会发生这种情况?我试图降低 的高度,minipage
但我做不到。我也尝试过\vfill
\begin{figure}[!htbp]
\begin{minipage}[c][6cm][t]{0.49\textwidth}
\centering
\resizebox{0.9\linewidth}{!}{
\begin{tikzpicture}[]
\node[draw=none,fill=none,scale=1.0] at (0,0) {\input{figures/case1_macro.tikz}};
\node[draw=none,fill=none,scale=0.4] at (0,-4) {\includegraphics[]{figures/case1_macro.pdf}};
\end{tikzpicture}
}
\captionof{figure}{\label{fig:case_1}Example of a beam subjected to flexion solved with the FE$^2$ multi-scale method.}
\end{minipage}
\begin{minipage}[c][6cm][t]{0.49\textwidth}
\vspace{1.5cm}
\centering
\resizebox{0.9\linewidth}{!}{
\begin{tikzpicture}[]
\node[draw=none,fill=none,scale=1.0] at (0,0) {\input{figures/case1_micro.tikz}};
\node[draw=none,fill=none,scale=0.2] at (0,-3) {\includegraphics[]{figures/case1_micro.pdf}};
\end{tikzpicture}
}
\captionof{figure}{\label{fig:case_1}Example of a beam subjected to flexion solved with the FE$^2$ multi-scale method.}
\end{minipage}
\vfill
\end{figure}
答案1
指定[t]
浮动,但也设置布局参数,以便 LaTeX 允许“顶部”浮动大部分填充整个列,留下很少的文本:
\renewcommand\topfraction{.9}
\renewcommand\textfraction{.1}% 1-\topfraction
默认参数异常严格。
使用[h]
放置会带来麻烦,因为您必须不断手动编辑文档才能使图形正确显示。