在页面上垂直方向均匀分布图形

在页面上垂直方向均匀分布图形

我正在为我的论文编写附录,其中仅包含一些图表。目前,顶部图表与页面顶部之间的间隙小于底部图表与页面底部之间的间隙。我想在每页上放置三个图表,且垂直间距相等。我该如何调整以下代码来实现这一点:

\begin{figure}
\centerline{
\begin{minipage}[c]{0.6\textwidth}
\centering
\includegraphics[width=\textwidth]{figs/DCP/pen1-1}
\end{minipage}
\hspace{0.5cm}
\begin{minipage}[c]{0.6\textwidth}
\centering
\includegraphics[width=\textwidth]{figs/DCP/cbr1-1} 
\end{minipage}
}
\caption[]{DCP test 1.1}
\label{graphs1-1}
\end{figure}

\begin{figure}
\centerline{
\begin{minipage}[c]{0.6\textwidth}
\centering
\includegraphics[width=\textwidth]{figs/DCP/pen1-2}
\end{minipage}
\hspace{0.5cm}
\begin{minipage}[c]{0.6\textwidth}
\centering
\includegraphics[width=\textwidth]{figs/DCP/cbr1-2}
\end{minipage}
}
\caption[]{DCP test 1.2}
\label{graphs1-2}
\end{figure}

\begin{figure}
\centerline{
\begin{minipage}[c]{0.6\textwidth}
\centering
\includegraphics[width=\textwidth]{figs/DCP/pen1-3}
\end{minipage}
\hspace{0.5cm}
\begin{minipage}[c]{0.6\textwidth}
\centering
\includegraphics[width=\textwidth]{figs/DCP/cbr1-3}
\end{minipage}
}
\caption[]{DCP test 1.3}
\label{graphs1-3}
\end{figure}

注意:每个图均由两个并排的图表组成。

答案1

你肯定不想要这个figure环境。试试

\documentclass{memoir}

\usepackage[demo]{graphicx}

\usepackage{showframe}

\makeatletter
\newenvironment{appfigure}
  {\par\vspace{\fill}\centering
   \begin{adjustwidth}{-.12\textwidth}{-.12\textwidth}%
   \def\@captype{figure}%
   \setkeys{Gin}{width=.6\textwidth}}
  {\end{adjustwidth}\par}
\makeatother

\begin{document}

\mainmatter

\appendix

\chapter{Appendix with figures}

\begin{appfigure}
\includegraphics{figs/DCP/pen1-1}\hfill
\includegraphics[]{figs/DCP/cbr1-1} 
\caption[]{DCP test 1.1}
\label{graphs1-1}
\end{appfigure}

\begin{appfigure}
\includegraphics{figs/DCP/pen1-1}\hfill
\includegraphics[]{figs/DCP/cbr1-1} 
\caption[]{DCP test 1.1}
\label{graphs1-2}
\end{appfigure}

\begin{appfigure}
\includegraphics{figs/DCP/pen1-1}\hfill
\includegraphics[]{figs/DCP/cbr1-1} 
\caption[]{DCP test 1.1}
\label{graphs1-3}
\end{appfigure}

\begin{appfigure}
\includegraphics{figs/DCP/pen1-1}\hfill
\includegraphics[]{figs/DCP/cbr1-1} 
\caption[]{DCP test 1.1}
\label{graphs1-4}
\end{appfigure}

\begin{appfigure}
\includegraphics{figs/DCP/pen1-1}\hfill
\includegraphics[]{figs/DCP/cbr1-1} 
\caption[]{DCP test 1.1}
\label{graphs1-5}
\end{appfigure}

\pagebreak

\begin{appfigure}
\includegraphics{figs/DCP/pen1-1}\hfill
\includegraphics[]{figs/DCP/cbr1-1} 
\caption[]{DCP test 1.1}
\label{graphs1-6}
\end{appfigure}

\begin{appfigure}
\includegraphics{figs/DCP/pen1-1}\hfill
\includegraphics[]{figs/DCP/cbr1-1} 
\caption[]{DCP test 1.1}
\label{graphs1-7}
\end{appfigure}

\begin{appfigure}
\includegraphics{figs/DCP/pen1-1}\hfill
\includegraphics[]{figs/DCP/cbr1-1} 
\caption[]{DCP test 1.1}
\label{graphs1-8}
\end{appfigure}

\end{document}

在此处输入图片描述

答案2

尝试这个:

\documentclass{memoir}
\usepackage[demo]{graphicx}

\begin{document}

\begin{vplace}[1]

\begin{figure}[!h]
    \includegraphics[width=28.8mm]{img1v1}
\end{figure}

\begin{figure}[!h]
    \includegraphics[width=28.8mm]{img1v1}
\end{figure}

\begin{figure}[!h]
    \includegraphics[width=28.8mm]{img1v1}
\end{figure}
\end{vplace}

\end{document}

或者看这里在页面上垂直居中文本

相关内容