This question is related to this question, but a different case is considered.
Consider you have a blue text with a figure* and a figure, followed by a red text with another figure*.
Because Latex puts the figures too far in the document and even puts the third figure on a separate page, you place the figures earlier in the code, which gives following MWE and result:
\documentclass[twocolumn,a4paper]{article}
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage{tikz}
\usepackage{tikzducks}
\usepackage{dblfloatfix} %allow figure* at bottom
\title{Debug}
\begin{document}
\maketitle
\begin{figure}[ht!]
\center
\tikz\randuck;\
\tikz\randuck;\
\caption{Figure}
\label{fig1}
\end{figure}
\begin{figure}[h]
\center
\tikz\randuck;\
\caption{Figure}
\label{fig2}
\end{figure}
\begin{figure}[hb!]
\center
\tikz\randuck;\
\tikz\randuck;\
\caption{Figure}
\label{fig3}
\end{figure}
{\color{red} \lipsum[10-15]
SEE FIGS. \ref{fig1}-\ref{fig2}}
{\color{blue} \lipsum[1-9]
SEE FIG. \ref{fig3}}
\end{document}
The only problem is that the last figure is on the bottom of the third page, and you want it to be on the same page as the other two figures (as indicated by the arrow). How to achieve this?
If you turn fig3 into an
figureinstead of afigure*, it is indeed placed at the bottom of the second page.If you comment out fig2 instead, you're left with a top
figure*and a bottomfigure*that are placed on the same page (thanks todblfloatfixor these alternatives).You can try setting some fractions and numbers that are mentioned here, such as reducing the
\textfractionand increasing the\totalnumber, but nothing seems to help. Note that it seems there is no\dblbottomfraction.


dblfloatfix, and the floats put before all the text. However, when fig3 is afigure*it is put on the third page for some reason I do not understand. – Karlo May 12 '23 at 14:33dblfloatfixis old (2012), and documentation is minimal.nidanfloatis newer and has quite detailed documentation. This is just a guess: the space allowed for a bottom -float is .5(textheight). If less than that remains after the top -float and the regular float are placed, the bottom -float may automatically be shunted to the next page. Not tested.* English documentation available as `nidanfloat-en.pdf' (the original is in Japanese). – barbara beeton May 12 '23 at 19:26hwith*float or single col floats following a*so your optional arguments are making it harder – David Carlisle May 12 '23 at 19:35