I have a two column document and I try to place a figure not relative to the text but to a page and column (e.g second page, right column, even if I add text later).
Currently, No matter where I put the figure, or which flags I use (e.g !ht) The figure is not placed in the right column.
\begin{figure}[!ht]
\begin{center}
\fbox{\rule{0pt}{2in} \rule{0.9\linewidth}{0pt}}
%\includegraphics[width=0.8\linewidth]{egfigure.eps}
\end{center}
\caption{Some comment}
\end{figure}
I am using Overleaf and the CVPR 2018 Template
Edit:
Following John Kormylo remarkable answer, I'm trying to do a similar thing for single-column documents as well, But probably miss something in how I should change the code.
This is my current version for single-column pages:
\newcommand{\delayfloat}[3]{% #1=figure or table, #2=page, #3=savebox
\ifnum\value{page}<#2\relax
\afterpage{\delayfloat{#1}{#2}{#3}}%
\else
\delaymatchtrue
\ifdelaymatch
\begin{#1}[t]
\box#3
\end{#1}
\else
\afterpage{\delayfloat{#1}{#2}{#3}}%
\fi
\fi}
\newenvironment{delayed}[3]{% #1=figure or table, #2=page, #3=savebox
\def\delayed@box{#3}% copy args to macros
\def\delayed@args{{#1}{#2}{#3}}%
\begin{lrbox}{#3}\begin{minipage}{\columnwidth}%
\def\@captype{#1}%
}{% \enddelayed (no args)
\end{minipage}\end{lrbox}%
\global\setbox\delayed@box=\copy\delayed@box
\expandafter\delayfloat\delayed@args
}
\newif\ifdelaymatchtop
\newcommand{\delaytop}[2]{% #1=page, #2=savebox
\afterpage{\delaytop{#1}{#2}}%
}
\newenvironment{delayedtop*}[3]{% #1=figure or table, #2=page, #3==savebox
\def\delayedtop@box{#3}% copy args to macros
\def\delayedtop@args{{#2}{#3}}%
\begin{lrbox}{#3}\begin{minipage}{\textwidth}%
\def\@captype{#1}%
}{% \enddelayed* (no args)
\end{minipage}\end{lrbox}%
\global\setbox\delayedtop@box=\copy\delayedtop@box
\expandafter\delaytop\delayedtop@args
}
But the images and tables are completely missing from the document. A sample image in the new document:
\begin{delayedtop*}{figure}{11}{\tempboxPartial}
\centering% the center environment wastes space
\includegraphics[width=\linewidth]{photos/partial_corr.png}
\caption{Caption.}
\label{fig:partial_corr}
\end{delayedtop*}