From a587dceb99278262ef69ab1cf6c2f5f9a6ff6c1f Mon Sep 17 00:00:00 2001 From: GuoChenxu Date: Wed, 16 Apr 2025 17:04:47 +0800 Subject: [PATCH] feat: customize the \enumerate styles(#7) Signed-off-by: guochenxu --- BUPTBachelorThesis.sty | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/BUPTBachelorThesis.sty b/BUPTBachelorThesis.sty index 36caa3e..f17efa0 100644 --- a/BUPTBachelorThesis.sty +++ b/BUPTBachelorThesis.sty @@ -307,6 +307,14 @@ pdfborder=001, linkcolor=black, citecolor=black, urlcolor=black]{hyperref} % % List environment config \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 % with a paragraph and no extra blank before, in or after the list. %\setlist[itemize]{labelindent=\parindent,leftmargin=*,noitemsep,topsep=0pt}