Consider the following MWE:
\documentclass{article} \usepackage{amsmath} \usepackage{xcolor} \usepackage{enumitem} \newlist{enumatlib}{enumerate}{2}% \setlist[enumatlib]{ label=\arabic*, font=\bfseries, align=left, leftmargin=*, labelsep=1em, labelwidth=*, itemsep=2.5ex, before=\setupmodenumerate } \setlist[enumatlib,2]{ label=\Alph*, font=\bfseries, leftmargin=*, itemsep=1ex, before=\setupmodenumerate} \newif\ifmoditem \newif\ifcitem \newcommand{\setupmodenumerate}{% \global\moditemfalse \global\citemfalse \let\origmakelabel\makelabel \def\moditem##1{\global\moditemtrue\def\mesymbol{\footnotesize\normalfont\color{red}\parbox[t]{10em}{\raggedleft##1}}\item}% \def\citem##1{\global\citemtrue\def\cecolor{##1}\item}% \def\makelabel##1{% \origmakelabel{\ifmoditem\llap{\mesymbol\enspace}\else\ifcitem\color{\cecolor}\fi\fi##1}% \global\moditemfalse\global\citemfalse}% } %----------------- usage examples ----------------- \begin{document} Default behaviour (both features on): \begin{enumatlib} \moditem{M4.5 (KSC)} First question \begin{enumatlib} \citem{red} option 1 \item option 2 \item option 3 \item option 4 \end{enumatlib} \moditem{GT8.9 (KSC)} Second question \begin{enumatlib} \item option 1 \citem{red} option 2 \item option 3 \item option 4 \end{enumatlib} \end{enumatlib} \end{document} I would like assistance in creating a key-value that toggles off and on the entries for moditem and citem. See below.
\begin{enumatlib}[mod=false,citem=false] \moditem{M4.5 (KSC)} First question \begin{enumatlib} \citem{red} option 1 \item option 2 \item option 3 \item option 4 \end{enumatlib} \moditem{GT8.9 (KSC)} Second question \begin{enumatlib} \item option 1 \citem{red} option 2 \item option 3 \item option 4 \end{enumatlib} \end{enumatlib} By default \citem will always have red as the color but having the option to choose the color is ideal.



