Skip to content

Commit

Permalink
doc: appendices/title等选项
Browse files Browse the repository at this point in the history
  • Loading branch information
YDX-2147483647 committed Jul 9, 2024
1 parent e2bab97 commit 59302a3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
12 changes: 8 additions & 4 deletions bithesis-doc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1140,18 +1140,22 @@ \subsubsection{附录选项}

\begin{function}{appendices/title}
\begin{bitsyntax}[emph={[1]title}]
title = (*(附录)|\meta{字符串}*)
title = (*\meta{字符串}*)
\end{bitsyntax}

可以覆盖附录的标题名称,默认为「附录」。
附录部分的总标题。默认会按论文类型自动设置为「附录」、「附\quad{}录」或“Appendices”。

仅在 |appendices/chapterLevel| 为 |false| 时有效。
\end{function}

\begin{function}{appendices/TOCTitle}
\begin{bitsyntax}[emph={[1]TOCTitle}]
TOCTitle = (*(附录)|\meta{字符串}*)
TOCTitle = (*\meta{字符串}*)
\end{bitsyntax}

可以覆盖附录在目录中的名称,默认为「附录」。
附录在目录中的名称。默认会按论文类型自动设置为「附录」、「附\quad{}录」或“Appendices”。

仅在 |appendices/chapterLevel| 为 |false| 时有效。
\end{function}

\subsubsection{攻读学位期间发表论文与研究成果清单选项}
Expand Down
6 changes: 4 additions & 2 deletions bithesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -491,10 +491,12 @@
{toc} {目\label_space: 录} {Table~of~Contents},
{abstract} {摘\label_space: 要} {Abstract},
{conclusion} {结\label_space: 论} {Conclusions},
% 附录部分的总标题
{appendix} {附\label_space: 录} {Appendices},
{ack} {致\label_space: 谢} {Acknowledgement},
{figure} {插\label_space: 图} {Illustrations},
{table} {表\label_space: 格} {Tables},
% 附录下各部分编号的前缀
{appendix_prefix} {附录} {Appendix},
{reference} {参考文献} {References},
{university} {北京理工大学} {Beijing~Institute~of~Technology},
Expand Down Expand Up @@ -2954,7 +2956,7 @@
}

\bool_if:NTF \l_@@_appendices_chapter_level_bool {
% 附录章节级别
% 使用以「chapter」为顶层的附录格式

% 仅设置 \setcounter{chapter}{0} 时,pdf 目录会索引到正文章节。
% 因此,需要使用 \appendix 重置计数器,并将附录后面的
Expand All @@ -2973,7 +2975,7 @@
\Alph{chapter}
}
} {
% 附录节(section)级别
% 使用以「section」为顶层的附录格式

% 因为不需要用到 chapter counter, 所以直接加一即可。
\stepcounter{chapter}
Expand Down
4 changes: 4 additions & 0 deletions templates/undergraduate-thesis-en/main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
% 若要将封面的“Degree:”改为“Major:”,请解除下一行的注释。
% info/major = {Major},
},
%
% 若要将“Appendices”改为单数,请解除以下两行的注释:
% appendices/title = {Appendix},
% appendices/TOCTitle = {Appendix},
}

% 使用 listings 宏包进行代码块使用,并使用了预定义的样式,
Expand Down

0 comments on commit 59302a3

Please sign in to comment.