Commit a7344eca authored by liziwl's avatar liziwl
Browse files

update item indent

parent e42299b6
Loading
Loading
Loading
Loading
+56 −9
Original line number Diff line number Diff line
@@ -51,17 +51,64 @@
\verb|\begin{enumerate} ... \end{enumerate}|

\begin{enumerate}
  \item 一条
  \item 二条
  \item 三条
  \item 一级
  \begin{enumerate}
    \item 二级
    \begin{enumerate}
      \item 三级
      \begin{enumerate}
        \item 四级,《写作要求》未定义,请自行定义或者选择。
      \end{enumerate}
    \end{enumerate}
  \end{enumerate}
\end{enumerate}

自定义序号样式定义如表~\ref{tab:enum-style}

\begin{table}[h]
  \centering
  \caption{条目样式选项}
  \label{tab:enum-style}
  \begin{tabular}{@{}ll@{}}
  \toprule
  \textbf{Code}          & \textbf{Description}                      \\ \midrule
  \textbackslash{}alph   & Lowercase letter (a, b, c, ...)           \\
  \textbackslash{}Alph   & Uppercase letter (A, B, C, ...)           \\
  \textbackslash{}arabic & Arabic number (1, 2, 3, ...)              \\
  \textbackslash{}roman  & Lowercase Roman numeral (i, ii, iii, ...) \\
  \textbackslash{}Roman  & Uppercase Roman numeral (I, II, III, ...) \\ \bottomrule
  \end{tabular}
\end{table}

\subsubsection{条目测试}

带括号的阿拉伯序号:

\verb|\begin{enumerate}[label={(\arabic*)}] ... \end{enumerate}|
条目前文字,条目前文字,条目前文字,条目前文字,条目前文字,条目前文字,条目前文字,条目前文字,条目前文字,条目前文字,条目前文字。

\begin{enumerate}[label={(\arabic*)}]
  \item 条目一,南方科技大学南方科技大学南方科技大学南方科技大学
  \item 条目二,南方科技大学南方科技大学南方科技大学南方科技大学
  \item 条目三,南方科技大学南方科技大学南方科技大学南方科技大学
\begin{enumerate}
  \item 一级条目,超长行。南方科技大学,南方科技大学,南方科技大学,南方科技大学,南方科技大学,南方科技大学,南方科技大学,南方科技大学,南方科技大学,南方科技大学,南方科技大学,南方科技大学,南方科技大学。
  \item 一级条目,南方科技大学,南方科技大学,南方科技大学。
  \item 一级条目,南方科技大学,南方科技大学,南方科技大学。
  \begin{enumerate}
    \item 二级条目,超长行。南方科技大学,南方科技大学,南方科技大学,南方科技大学,南方科技大学,南方科技大学,南方科技大学,南方科技大学,南方科技大学,南方科技大学,南方科技大学,南方科技大学,南方科技大学。
    \item 二级条目,南方科技大学,南方科技大学,南方科技大学。
    \item 二级条目,南方科技大学,南方科技大学,南方科技大学。
    \item 二级条目,南方科技大学,南方科技大学,南方科技大学。
    \item 二级条目,南方科技大学,南方科技大学,南方科技大学。
    \item 二级条目,南方科技大学,南方科技大学,南方科技大学。
    \item 二级条目,南方科技大学,南方科技大学,南方科技大学。
    \item 二级条目,南方科技大学,南方科技大学,南方科技大学。
    \item 二级条目,南方科技大学,南方科技大学,南方科技大学。
    \item 二级条目,南方科技大学,南方科技大学,南方科技大学。
    \begin{enumerate}
      \item 三级条目,南方科技大学,南方科技大学,南方科技大学。
      \item 三级条目,南方科技大学,南方科技大学,南方科技大学。
      \item 三级条目,南方科技大学,南方科技大学,南方科技大学。
      \begin{enumerate}
        \item \textbf{四级条目及之后的条目无规定序号格式,请自行设定选择。}
      \end{enumerate}
    \end{enumerate}
  \end{enumerate}
\end{enumerate}

条目后文字,条目后文字,条目后文字,条目后文字,条目后文字,条目后文字,条目后文字,条目后文字,条目后文字,条目后文字,条目后文字。
+20 −5
Original line number Diff line number Diff line
@@ -2351,7 +2351,21 @@
% 使用 \pkg{enumitem} 命令调整默认列表环境间的距离,条目要求首行左缩进 2 个汉字符。
%    \begin{macrocode}
\setlist{nosep}
\setlist{labelindent=\parindent,leftmargin=*}
%
\RequirePackage{tikz}
\newcommand*\sustech@enum@circ@item[1]{%
\begin{tikzpicture}[baseline=(C.base)]
\node[draw,circle,inner sep=1pt,minimum size=1em](C) {#1};
\end{tikzpicture}}
%
\setlist[enumerate,1]{label={(\arabic*)}}
\setlist[enumerate,2]{label=\protect\sustech@enum@circ@item{\arabic*}}
\setlist[enumerate,3]{label={\alph*.}}
%
\setlist[1]{leftmargin=2\parindent}
\setlist[2]{leftmargin=\parindent}
\setlist[3]{leftmargin=\parindent}
\setlist[4]{leftmargin=\parindent}
%    \end{macrocode}
%
%
@@ -4149,7 +4163,7 @@ Thesis for the degree of \degree@level@en@noun \ of \thu@degree@domain@en%

      本人完全了解南方科技大学有关收集、保留、使用学位论文的规定,即:

      \begin{enumerate}[wide]
      \begin{enumerate}[wide,label={\arabic*.}]
        \item 按学校规定提交学位论文的电子版本。
        \item 学校有权保留并向国家有关部门或机构送交学位论文的电子版,允许论文被查阅。
        \item 在以教学与科研服务为目的前提下,学校可以将学位论文的全部或部分内容存储在有关数据库提供检索,并可采用数字化、云存储或其他存储手段保存本学位论文。
@@ -4175,7 +4189,7 @@ Thesis for the degree of \degree@level@en@noun \ of \thu@degree@domain@en%
    \section*{Declaration of Authorization of Thesis}

      I fully understand the regulations regarding the collection, retention and use of thesis of Southern University of Science and Technology.
      \begin{enumerate}[wide]
      \begin{enumerate}[wide,label={\arabic*.}]
        \item Submit the electronic version of thesis as required by the University.
        \item The University has the right to retain and send the electronic version to other institutions that allow the thesis to be read by the public.
        \item The University may save all or part of the thesis in certain databases for retrieval, and may save it with digital, cloud storage or other methods for the purpose of teaching and scientific research. I agree that the full text of the thesis can be viewed online or downloaded within the campus network.
@@ -5258,7 +5272,7 @@ Thesis for the degree of \degree@level@en@noun \ of \thu@degree@domain@en%
      numbering = false,
    },
    subsection = {
      format     = \sffamily\fontsize{14bp}{20bp}\selectfont,
      % format     = \sffamily\fontsize{14bp}{20bp}\selectfont,
      numbering  = false,
      % aftertitle = \ifthu@language@chinese :\else :\fi,
    },
@@ -5303,7 +5317,8 @@ Thesis for the degree of \degree@level@en@noun \ of \thu@degree@domain@en%
  labelsep   = !,
  before     = {
    \ifthu@degree@graduate
      \fontsize{12bp}{16bp}\selectfont
      % 10.5 bp*1.3默认行距比例 = 13.65
      \fontsize{10.5bp}{13.65bp}\selectfont
    \fi
  },
  resume     = achievements,