Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Lev135/107923fb0a453c1772ba37b92477e69d to your computer and use it in GitHub Desktop.

Select an option

Save Lev135/107923fb0a453c1772ba37b92477e69d to your computer and use it in GitHub Desktop.
\documentclass{beamer}
\usepackage{lipsum}
% Paragraph spacing
\setlength{\parskip}{1ex}
\makeatletter
\def\@listi{\leftmargin\leftmargini
\topsep 0pt % Space before/after list
\parsep 0pt % Space between paragraphs within an item
\itemsep 0pt} % Space between separate items
\let\@listI\@listi
\makeatother
\begin{document}
\begin{frame}{Vertical spaces between paragraphs}
\lipsum[1][1-2]
\begin{itemize}
\item \lipsum[1][3]
\item lipsum
\item \lipsum[1][4-5]
\end{itemize}
\lipsum[2][1-3]
\lipsum[2][4]
\end{frame}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment