feat: customize the \enumerate styles(#7)

Signed-off-by: guochenxu <guochenxu11@bupt.edu.cn>
This commit is contained in:
GuoChenxu 2025-04-16 17:04:47 +08:00 committed by GitHub
parent ff1ef28958
commit a587dceb99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -307,6 +307,14 @@ pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref} %
% List environment config % List environment config
\usepackage[inline]{enumitem} \usepackage[inline]{enumitem}
\usepackage{pifont}
% Reference: https://zhuanlan.zhihu.com/p/681663494
\newcommand{\circlednumber}[1]{\ding{\numexpr171+#1\relax}}
\setlist[enumerate,1]{label=(\arabic*)}
\setlist[enumerate,2]{label=\circlednumber{\arabic*}}
\setlist[enumerate,3]{label=\Alph*.}
\setlist[enumerate,4]{label=\alph*.}
% Uncomment the two lines below if you want an list environment to share the same indent % Uncomment the two lines below if you want an list environment to share the same indent
% with a paragraph and no extra blank before, in or after the list. % with a paragraph and no extra blank before, in or after the list.
%\setlist[itemize]{labelindent=\parindent,leftmargin=*,noitemsep,topsep=0pt} %\setlist[itemize]{labelindent=\parindent,leftmargin=*,noitemsep,topsep=0pt}