LaTeX forum ⇒ Text Formatting\partopsep vs \topsep

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
LaTexLearner
Posts: 139
Joined: Tue Mar 10, 2015 11:06 am

\partopsep vs \topsep

Postby LaTexLearner » Sun Sep 20, 2015 3:19 am

Quick question:

I'm making lists using enumitem. What is the difference between \partopsep and \topsep? I've been fiddling around with it on overleaf.com and don't quite get it...

User avatar
cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Sun Sep 20, 2015 10:14 pm

Both are list parameters.
  • \topsep the rubber space between the first item of a list and the preceding paragraph.
  • \partopsep an extra rubber space which is added to \topsep when the list environment starts a new paragraph.

A rubber space is a length which can contain shrinkable and stretchable parts.
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

LaTexLearner
Posts: 139
Joined: Tue Mar 10, 2015 11:06 am

Postby LaTexLearner » Mon Sep 21, 2015 2:37 am

How would a list not start a new paragraph? Do you mean the kinds of lists that are inline with the rest of the text? (Not that I have much knowledge or experience with those.)

User avatar
cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Mon Sep 21, 2015 11:37 am

It depends if the list preceded with a blank line (or a \par) or not. Compare

  1. Here is some text
  2. \begin{itemize}
  3. \item and a list \emph{not} starting a paragraph


with

  1. Here is some text
  2.  
  3. \begin{itemize}
  4. \item and a list starting a paragraph
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 7 guests