Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question

migrated from stackoverflow.com Dec 11 '11 at 1:57

This question came from our site for professional and enthusiast programmers.

1  
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 Dec 11 '11 at 3:19

2 Answers 2

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

share|improve this answer

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}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.