Skip to content

Commit

Permalink
use circledsteps instead of pifonts for circled numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
RizhongLin committed Jun 1, 2024
1 parent 81f97c8 commit b94960d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:
# biber biblatex bibtex: for executable bibtex
# txfonts: mathptmx is obsoleted; times: times is obsoleted but utmb8a.pfb is needed
# dvips: for 8r.enc, OS X needed; gsftopk: command needed when xdv -> pdf
TL_PACKAGES: adjustbox algorithmicx algorithms biber biblatex biblatex-gb7714-2015 bibtex booktabs caption carlisle cases catchfile chinese-jfm chngcntr cleveref collectbox ctex dvips enumitem environ extarrows fancybox fancyhdr fancyvrb float framed fvextra gbt7714 gsftopk helvetic hologo ifplatform lastpage latexmk lineno minted multirow mwe natbib needspace newtx nth oberdiek pdftexcmds psnfss realscripts rsfs setspace siunitx subfig tcolorbox texcount texliveonfly threeparttable threeparttablex times titling tocloft trimspaces txfonts ucs upquote was xcolor xecjk xpatch xstring zhnumber
TL_PACKAGES: adjustbox algorithmicx algorithms biber biblatex biblatex-gb7714-2015 bibtex booktabs caption carlisle cases catchfile chinese-jfm chngcntr circledsteps cleveref collectbox ctex dvips enumitem environ extarrows fancybox fancyhdr fancyvrb float framed fvextra gbt7714 gsftopk helvetic hologo ifplatform lastpage latexmk lineno minted multirow mwe natbib needspace newtx nth oberdiek pdftexcmds realscripts rsfs setspace siunitx subfig tcolorbox texcount texliveonfly threeparttable threeparttablex times titling tocloft trimspaces txfonts ucs upquote was xcolor xecjk xpatch xstring zhnumber

jobs:
build-linux:
Expand Down
2 changes: 1 addition & 1 deletion sections/01_intro.tex
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ \subsubsection{有序列表}

有序列表是一种带编号的列表类型,通常用于表示一组按顺序排列的内容。在有序列表中,每个列表项通常由一个数字或字母来表示。

需要注意的是,根据同济大学提供的理工科毕业设计(论文)撰写规范,有序列表的第一级编号应使用全角圆括号内的数字,如“(1)”、“(2)”等;第二级编号应使用圆圈内的阿拉伯数字,如“\circled{1}”、“\circled{2}”等。此外,有序列表的第二级应为行内列表,即不应另起一行,而应与上一级列表项在同一行内;我们在写 \LaTeX{} 代码时,应该使用 \texttt{enumerate*} 环境来实现有序列表的第二级。
需要注意的是,根据同济大学提供的理工科毕业设计(论文)撰写规范,有序列表的第一级编号应使用全角圆括号内的数字,如“(1)”、“(2)”等;第二级编号应使用圆圈内的阿拉伯数字,如“\Circled{1}”、“\Circled{2}”等。此外,有序列表的第二级应为行内列表,即不应另起一行,而应与上一级列表项在同一行内;我们在写 \LaTeX{} 代码时,应该使用 \texttt{enumerate*} 环境来实现有序列表的第二级。

\begin{enumerate}
\item 同济大学历史:同济大学是中国著名的高等学府之一,拥有悠久的历史和丰富的文化底蕴。以下是同济大学的重要历史节点:
Expand Down
7 changes: 2 additions & 5 deletions style/tongjithesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,13 @@
% 设置有序列表与无序列表格式
\RequirePackage{enumerate} % 下面用到了 enumerate
\RequirePackage[inline]{enumitem}
\RequirePackage{pifont} % 用于带圆圈的数字

% 定义带圆圈的数字,且宽度为 1em
\newcommand{\circled}[1]{\text{\ding{\numexpr171+#1\relax}}}
\RequirePackage{circledsteps} % 用于带圆圈的数字

\setlistdepth{2}

\setlist[enumerate]{nosep,labelsep=0pt}
\setlist[enumerate,1]{label=(\arabic*),left=2em,nosep,labelsep=0pt,wide=\parindent}
\setlist[enumerate,2]{label=\circled{\arabic*},nosep,labelsep=0pt,labelwidth=1em,listparindent=0pt}
\setlist[enumerate,2]{label=\Circled{\arabic*},nosep,labelsep=0pt,labelwidth=1em,listparindent=0pt}

\setlist[itemize]{nosep}
\setlist[itemize,1]{wide=\parindent}
Expand Down

0 comments on commit b94960d

Please sign in to comment.