I'm writing a IEEE conference paper. The format of paper is \documentclass[conference]{IEEEtran}
For inserting a wide image i switched to one column using \onecolumn
The image took half of my page. After that when I again issued command \twocolumn
it resulted in page break and the two column contents thereafter are appearing from next page. Can anyone please help me as to what I can do to prevent the page break.
2 Answers
You can put a wide image that spans both columns at the top of the page, either by using a two column float (figure*
) or by using the optional argument of \twocolumn
which specifies a spanning text to be put over the columns, so
\documentclass[conference]{IEEEtran}
\usepackage{graphicx}
\begin{document}
\twocolumn[%
{\includegraphics[width=\textwidth]{example-image}}%
]
\loop
\stepcounter{enumi}
\ifnum\value{enumi}<1000
\roman{enumi}
\repeat
\end{document}
-
There may be some other options, but none of them are particularly elegant. See How to put a full-width table at the top or bottom of the same two-column page as the reference text? Mar 30, 2021 at 2:04
Switching from any column to single column
\begin{multicols}{1}[{
\begin{table*}[!htbp]
\caption{<table caption>}
\centering
<Your Table Contents>
\end{table*}
}]
\end{multicols}
Switching from any column to double column
\begin{multicols}{2}[{
\begin{table*}[!htbp]
\caption{<table caption>}
\centering
<Your Table Contents>
\end{table*}
}]
\end{multicols}
example-image
(from themwe
package) for the image...