我正在用环境写一篇双栏文章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]
放置会带来麻烦,因为您必须不断手动编辑文档才能使图形正确显示。