In the following screenshot, I would like the 1st item A) in the inline mode to be at the same level of indentation of the labels A) to D) in the first list.
To do that I would like to know how the enumitem
package places the labels.
Here is the code that I've used.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{enumitem}
\newlist{choices}{enumerate}{1}
\setlist[choices]{label*=\Alph*)}
\newcommand{\choice}{\item}
\newcounter{choice}
\renewcommand\thechoice{\Alph{choice}}
\newcommand\choicelabel{\thechoice)}
\newcommand\choicestarlabel{{\large $\square$}}
\newenvironment{inlineChoices}{%
\setcounter{choice}{0}%
\def\choice{%
\refstepcounter{choice}%
\ifnum\value{choice}>1\relax
\penalty -50\hskip 1em plus 1em\relax
\else
\hspace{\labelindent}% WRONG SPACING !!!
\fi
\choicelabel
\nobreak\enskip
}%
\ifvmode\else\enskip\fi
\ignorespaces
}{}
\begin{document}
\noindent Bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla
\begin{choices}
\choice $\dfrac{4}{7}$
\choice $\dfrac{8}{24}$
\choice $\dfrac{44}{121}$
\choice $\dfrac{9}{11}$
\end{choices}
\noindent Bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla
\begin{inlineChoices}
\choice $\dfrac{4}{7}$
\choice $\dfrac{8}{24}$
\choice $\dfrac{44}{121}$
\choice $\dfrac{9}{11}$
\end{inlineChoices}
\end{document}
[inline]
option for your inline list and define them with\newlist{inlinechoices}{enumerate*}{1}
and\setlist[inlinechoices]{label*=\Alph*)}
. Then you don't need yourinlineChoices
environment.