0

I am using the following wrapfigure

    \begin{wrapfigure}{r}{0.59\textwidth}
        \vspace*{-25mm}
        \centering
        \includegraphics[width=10cm, height=10cm]{figures/spatialcoherence.png}
        \vspace*{-6mm}
        \caption{Spatial coherence method.}
    \end{wrapfigure}

and \includegraphics line inside that makes all the subsequent pages split into two columns(see the image below). enter image description here

If I omit or comment out the \includegraphics the page becomes single column again(image below).

enter image description here

Any idea how and why is this happening?

the packages I am using are:

\documentclass[a4paper,11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[margin=2.0cm]{geometry}
\usepackage{hyphenat}
\usepackage{MnSymbol}
\usepackage{bm} % bold math symbols
\usepackage{graphicx}  %package to manage images
\graphicspath{{./figures/}} % folder where the images or figures are
\usepackage{subcaption}
\usepackage[labelfont=bf]{caption} % make Figure 1 bold
\usepackage{wrapfig} % for wrapping a figure with words
\usepackage{hyperref} % for hyperlinks, citations
\hypersetup{
    colorlinks=true,
    linkcolor=blue,
    filecolor=magenta,      
    urlcolor=blue,
    pdftitle={Peptide_analysis},
    pdfpagemode=FullScreen,
    }
\urlstyle{same}
\begin{document} ...
New contributor
banikr is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
5
  • 1
    Welcome to TeX.SX! With the code you provided, it is not possible to reproduce the problem you have. Please provide a minimal working example (MWE). Sep 20 at 21:11
  • possibly unrelated but usualy better to use height or width not both width=10cm, height=10cm is 0.59\textwidth bigger than 10cm ? Sep 20 at 21:33
  • 1
    includegraphics itself will not affect this but without it the wrapfig is 10cm shorter so obviously all line breaking is different Sep 20 at 21:40
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Sep 20 at 21:41
  • I can't confirm your claims. Composing MWE from your code fragments gives expected result. BTW, due to \vspace*{-25mm} image is moved above paragraph and overlay over previous one.
    – Zarko
    Sep 20 at 22:12

0

Your Answer

banikr is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy