This is a follow up question to the one I asked a while back: Horizontal enumeration in multiple columns .
There I was using paralist
and now I feel it is better to switch to enumitem
(since I can use the resume
option). The environment tabbedenum
using paralist
worked perfectly for my needs, but transferring this to Tabbedenum
based on enumitem
no longer works.
Could this be because of the star (i.e. if \enumerate
is short for \begin{enumerate}
then what works for \begin{enumerate}*
)? That's why I tried by defining the environment Inparaenum
.
Could the problem be based on the optional options? In fact, could Tabbedenum
be defined with the optional options too, so that the syntax would be: \begin{Tabbedenum}[label=\emph{\alph*})]{3}
?
Below is a MWE.
\documentclass{article}
\usepackage{tabto}
\usepackage{paralist}
\newenvironment{tabbedenum}[1]
{\NumTabs{#1}\inparaenum\let\latexitem\item
\def\item{\def\item{\tab\latexitem}\latexitem}}
{\endinparaenum}
\usepackage[inline]{enumitem}
\newenvironment{Inparaenum}{\begin{enumerate*}[label=\emph{\alph*})]}{\end{enumerate*}}
\newenvironment{Tabbedenum}[1]
{\NumTabs{#1}\Inparaenum\let\latexitem\item
\def\item{\def\item{\tab\latexitem}\latexitem}}
{\endInparaenum}
\begin{document}
\begin{tabbedenum}{3}
\item hello world
\item hello world
\item hello world
\item hello world
\item hello world
\item hello world
\end{tabbedenum}
\begin{Tabbedenum}{3}
\item hello world
\item hello world
\item hello world
\item hello world
\item hello world
\item hello world
\end{Tabbedenum}
\end{document}