# Wrap Figure Issues and alignment

I am trying to write a digest paper in one column format using IEEE template. I am trying to wrap figures around text and it is creating gaps where it shouldn't and for some reason, some places have started to revert back to two column format. Is there any fix for this? Also, I am an absolute beginner in LATEX, so bear with me.

What I've done is this:

I've invoked the one column mode by doing the following.

\documentclass[journal, onecolumn]{IEEEtran}

Then I wrapped the figures by doing the following:

    \begin{wrapfigure}{r}{0.5\textwidth}[h!]
\centering
\includegraphics[width = 0.4\textwidth]{bibtex/figures/PPU_Issue.png}
\caption{Floating ground issue in inductor coupled PPU configuration}
\label{ppu_old}
\end{wrapfigure}


The resultant was as follows,

What I wanted was a one column type format. But the entire text shifted to two columns. Also, the image looks way off. Can anyone suggest a fix? Thanks in advance and happy new year!

• wrapfig has no [h!] option, but aprat from that as you have provided no example code it is very hard to help – David Carlisle Jan 1 at 16:25
• So, how do I share the code? Do I have to provide access to the entire document? – Kaki_Res Jan 2 at 8:09
• No just a minimal working example. A compilable example starting with \documentclass and ending with \end{document} and that reproduces the problem you are facing – Hafid Boukhoulda Jan 2 at 8:52
• why are you using IEEE class with a one-column format? Is there an IEEE journal that uses that format? – David Carlisle Jan 2 at 9:02
• No. IEEE Journals are normally in two-column format. I was using the journal format with one column. Is that a wrong way to do things? – Kaki_Res Jan 2 at 9:06

An answer based on @David Carlisle comment:

\documentclass[a4paper,11pt,draft]{article}
\usepackage{graphicx,wrapfig}
\usepackage{lipsum} % for dummy text

\begin{document}

\lipsum[1]
\begin{wrapfigure}{r}{0.5\textwidth}
\centering
\includegraphics[width = 0.4\textwidth]{bibtex/figures/PPU_Issue.png}
\caption{Floating ground issue in inductor coupled PPU configuration}
\label{ppu_old}
\end{wrapfigure}
\lipsum[2-4]

\end{document}


• Thank you for the answer. It fixed the two columns to one column transition but I don't want to fill any text. Rather, I'm running on space issues. How would you suggest to get the same one column format without using lipsum? – Kaki_Res Jan 2 at 8:26
• @Kaki_Res no real document uses lipsum! that is just filler text for examples, instead of the actual text of your document., it is not really related to the answer at all. – David Carlisle Jan 2 at 9:00
• Oh, I see! This should explain what level of a noob I am! Thanks again for the clarification. So, how can I fix the issue? I am using IEEE class in one column format because what I am writing is a Digest for peer review and not a journal paper. – Kaki_Res Jan 2 at 9:09

Thank you all, for your valuable suggestions. Turns out that my issue was solved by appropriate usage of the \onecolumn keyword wherever necessary. Also, the widths and sizes of images had to be readjusted to get the correct formatting.

• Well, can you please add an MWE to show the solution? As it stands now your answer is no answer. Or consider to delete the question if you do not want to show code ... – Kurt Jan 2 at 22:46