I attempted creating a custom list as shown in the code below, but I need to know how to create a custom list with different label types (Arabic, Roman, etc.) and change the color of the frame for a specific label ( e.g. \item[blue] instead of red )?
Currently, I have separate lists for each label type and for each label color and I'm not sure how to make the color an optional argument in the list definition ( e.g. \begin{boxati}[label=(red)] ) or change the label type as in \label=(\arabic*).
Can someone please provide a solution that enables me to implement both or either of the features in the same list definition?
\documentclass{article}
\usepackage{amsmath,amsfonts}
\usepackage{tikz}
%==== Custom List : Roman ====%
\newcounter{boxlblcntri}
\newcommand{\makeboxlabeli}[1]{\tikz[baseline=(char.base)]{
\noderounded corners=3pt, draw=red!50,thick,
inner sep=4pt,minimum width =15pt,minimum height =15pt{#1};}}
\newenvironment{boxati}
{\begin{list}
{\roman{boxlblcntri}}
{\usecounter{boxlblcntri}
\setlength{\labelwidth}{3.5em}
\setlength{\labelsep}{-12pt}
\setlength{\itemsep}{2pt}
\setlength{\topsep}{6pt}
\setlength{\leftmargin}{1.1cm}
\setlength{\rightmargin}{0cm}
\setlength{\itemindent}{0pt}
\let\makelabel=\makeboxlabeli
}
}
{\end{list}}
\begin{document}
\begin{boxati}
\item 1
\item 2
\item 3
\end{boxati}
\end{document}
An example of the list :


enumitempackage? – Jasper Habicht Apr 01 '23 at 19:54enumitempackage and made some progress, a very similar case was in this question link , but I couldn't figure out how to change the color as an optional argument. – aglobalphenomenon Apr 01 '23 at 22:58