33

I wonder how to reduce the vertical space before and after a multicols environment. I have something like below

\begin{multicols}{3}
   {
      \begin{equation}\sum F_x = 0\end{equation}
      \begin{equation}\frac{dP}{dx} - p = 0\end{equation}
   }
   {
      \begin{equation}\sum F_y = 0\end{equation}
      \begin{equation}\frac{dQ}{dx} + q = 0\end{equation}
   }
   {
      \begin{equation}\sum M = 0\end{equation}
      \begin{equation}\frac{dQ}{dx} + q = 0\end{equation}
   }
\end{multicols}

But there is extra white space before and after the multicols environment. How can I reduce it?

2
  • 2
    Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question.
    – Werner
    Commented Dec 11, 2011 at 3:19
  • 3
    I used \vspace{-0.5cm}.
    – 0 _
    Commented Dec 21, 2017 at 1:45

2 Answers 2

25

While I wouldn't recommend it normally, you can also fiddle with the \multicolsep length.

\documentclass{article}
\usepackage{multicol}
\setlength{\multicolsep}{6.0pt plus 2.0pt minus 1.5pt}% 50% of original values
\usepackage{lipsum}

\begin{document}
\lipsum[1]
\begin{multicols}{3}
   \noindent
   \begin{equation}\sum F_x = 0\end{equation}
   \begin{equation}\frac{dP}{dx} - p = 0\end{equation}
   \begin{equation}\sum F_y = 0\end{equation}
   \begin{equation}\frac{dQ}{dx} + q = 0\end{equation}
   \begin{equation}\sum M = 0\end{equation}
   \begin{equation}\frac{dQ}{dx} + q = 0\end{equation}
\end{multicols}
\lipsum[1]
\end{document}

enter image description here

12

I would consider some of the other ways to do alignment, but if you want to use multicol, you need to add \noindent:

enter image description here

\documentclass{article}
\usepackage{multicol}
\usepackage{lipsum}

\begin{document}
\lipsum[1]
\begin{multicols}{3}
   \noindent
   \begin{equation}\sum F_x = 0\end{equation}
   \begin{equation}\frac{dP}{dx} - p = 0\end{equation}
   \begin{equation}\sum F_y = 0\end{equation}
   \begin{equation}\frac{dQ}{dx} + q = 0\end{equation}
   \begin{equation}\sum M = 0\end{equation}
   \begin{equation}\frac{dQ}{dx} + q = 0\end{equation}
\end{multicols}
\lipsum[1]
\end{document}

You must log in to answer this question.