0

As far as I understand, the length \columnsep is used both for the gap between columns in a twocolumn document and for the space around a wrapfigure.

How can I change the space between columns, but control the space around my figure independently?

Here is an example:

\documentclass[a4paper,10pt,twocolumn]{article}
\usepackage{lipsum}

\usepackage{wrapfig}

\setlength{\columnsep}{25pt}

\begin{document}

\begin{wrapfigure}{l}{4cm}
  \rule{4cm}{4cm}
\end{wrapfigure}
\lipsum

\end{document}

enter image description here

  • before \begin{document} control columns sep after it control wrapfigure sep – touhami Mar 21 '16 at 9:06
1

Here is a solution.

\columnsep in preambl control the column sep.

\columnsep after \begin{document} control the wrapfigure sep.

\documentclass[a4paper,10pt,twocolumn]{article}
\usepackage{lipsum}

\usepackage{wrapfig}


\setlength{\columnsep}{25pt}
\begin{document}
\setlength{\columnsep}{50pt}

\begin{wrapfigure}{l}{4cm}
  \rule{4cm}{4cm}
\end{wrapfigure}
\lipsum

\end{document}

enter image description here

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.