I'm looking for an example on how to use the specifier p in a LaTeX's figure. Moreover does it make sense to use both hp specifiers simultaneously in the same figure?
Asked
Active
Viewed 882 times
2
1 Answers
7
Float placement parameters are, and are checked in the following order.
If
!is specified ignore most restrictions and continue.If
his specified try to place the float where it is. If nothing else is specified changehtot(try the top of the next page).If
tis specified try to put it at the top of the current page.If
bis specified try to put it at the bottom of the current page.If
pis specified try and put it on a float page after the current page.If necessary steps 3 and 4 are repeated at the start of each new page, followed by 5 at its end.
So, \begin{figure}[hp] will try and put the figure here and if that does not work then on the next page by itself.
Peter Wilson
- 28,066
\begin{figure}[p]vs\begin{figure}[hp]. I'd say the former is only used when doing finishing touches on a project. In most cases you'd be using[htp]or[htbp](not everyone likes bottom figures). Imo[hp]does not make much sense compared to[htp]– daleif Apr 05 '21 at 16:32[h]would never det placed. Also note that if at the bottom of a page, h is not the same as b. h explicitly require there to be a certain amount of non float above and below. – daleif Apr 05 '21 at 17:59