将图形放在文本末尾和页面底部之间

将图形放在文本末尾和页面底部之间

我目前有一页,文本在页面的四分之一处结束。同一页上有一张图。该图可以放置在以下位置:

  • 在顶部[t]
  • 在文本末尾 [htbp!] 或
  • 位于页面底部 [b]

但是,我想将图形均匀地放置在剩余的空间中。有没有办法将图形垂直放置在文本末尾和页面底部之间的空白处的中心?

谢谢你!

编辑

\documentclass{article}
\usepackage[utf8]{inputenc}

\title{bla}
\author{Hello}
\date{March 2021}

\begin{document}

\maketitle

Some work were done, some work were done, some work were done, some work were done, some work were done, some work were done, some work were done, some work were done, some work were done, some work were done, some work were done. Some work were done, some work were done, some work were done, some work were done, some work were done, some work were done, some work were done, some work were done, some work were done, some work were done, some work were done. 

\begin{figure}[!b]
\centering
\includegraphics*[width=0.6\textwidth]{example-image-a}
\caption{}
\label{fig:}
\end{figure} 

\end{document}

我希望图形位于红色方块的位置(即文本末尾和页面末尾之间)

在此处输入图片描述

答案1

这是一个简单的解决方案,假设这是最后一页。

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}

\title{bla}
\author{Hello}
\date{March 2021}

\begin{document}

\maketitle

Some work were done, some work were done, some work were done, some work were done, some work were done, some work were done, some work were done, some work were done, some work were done, some work were done, some work were done. Some work were done, some work were done, some work were done, some work were done, some work were done, some work were done, some work were done, some work were done, some work were done, some work were done, some work were done. 

\setlength{\intextsep}{\fill}% added above and below
\begin{figure}[h]
\centering
\includegraphics*[width=0.6\textwidth]{example-image-a}
\caption{}
\label{fig:}
\end{figure} 

\end{document}

相关内容