enumitem icon indicating copy to clipboard operation
enumitem copied to clipboard

Inline description list has spurious \hfil spaces

Open schtandard opened this issue 2 years ago • 1 comments

Inline description* lists (when not unboxed) seem to add a spurious \hfil to every afterlabel. itemize* and enumerate* do not have this behavior. (Prompted by this tex.sx question.)

In the following MWE, I removed all spacing from the inline list for clarity.

\documentclass{article}

\usepackage[inline]{enumitem}

\parindent=0pt
\usepackage{showframe}

\begin{document}

before
\begin{description*}[itemjoin={}, afterlabel={}]
  \item[first] one
  \item[second] two
  \item[third] three
\end{description*}
after

\end{document}

image

schtandard avatar Jun 16 '22 13:06 schtandard

Here is a workaround (for the original question in tex.sx):

\SetLabelAlign{none}{#1}

\newlist{inlinedesc}{description*}{1}
\setlist[inlinedesc]{align=none, itemjoin={{ $\odot$ }}, itemjoin*={{ and }}}

jbezos avatar Jul 07 '22 16:07 jbezos