2

How can I remove the space after enumerated item and the next line in text ? I use following:

\begin{enumerate}
    \setlength{\itemsep}{0pt}
    \item bi-axial etc. etc. 
    \item uni-axial etc. etc.
    \item uni-axial etc. etc.
    \item uni-axial etc. 
\end{enumerate}
%

enter image description here

0

2 Answers 2

3

That's easy with the enumitem package:

\documentclass{article}
\usepackage{enumitem}
\setlist{nolistsep}
\begin{document}
Something.
\begin{enumerate}
\item One
\item Two
\end{enumerate}
Something else.
\end{document}
2

If you only want to do it for the enumerate environment, then you can add this to your preamble:

\usepackage{etoolbox}
\AfterEndEnvironment{enumerate}{\vskip-\lastskip}

This adds a hook to the end of the enumerate environment which undoes the last glue which was placed on the page.

It needs to be done this way rather than with \unskip because the glue has already made its way to the main vertical list (see TeX by Topic pg. 96).

2
  • Thanks, Is there also a way to remove the spacing after table and figure ?
    – Rouge
    Commented Aug 18, 2017 at 11:53
  • Try the same hook with the environment you're using for tables and figures. By the way, this solution only removes the spacing after, not before.
    – A Gold Man
    Commented Aug 18, 2017 at 12:02

Not the answer you're looking for? Browse other questions tagged .