Skip to content

Commit ac3b973

Browse files
chore: DocStrip 统一用@@而非_bithesis_
这样更方便搜索
1 parent 2625d43 commit ac3b973

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

bithesis.dtx

+9-9
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
% \begin{macrocode}
217217
\cs_new:Npn \@@_if_thesis_int_type:nTF #1#2#3 {\int_compare:nNnTF {\g_@@_thesis_type_int} = {#1} {#2} {#3}}
218218
\cs_new:Npn \@@_if_thesis_int_type:nT #1#2 {\@@_if_thesis_int_type:nTF {#1} {#2} {}}
219-
\cs_new:Npn \__bithesis_if_thesis_int_type:nF #1#2 {\__bithesis_if_thesis_int_type:nTF {#1} {} {#2}}
219+
\cs_new:Npn \@@_if_thesis_int_type:nF #1#2 {\@@_if_thesis_int_type:nTF {#1} {} {#2}}
220220
% \end{macrocode}
221221
% \end{macro}
222222

@@ -1651,13 +1651,13 @@
16511651
% 针对 algorithm 宏包
16521652
\@ifpackagewith{algorithm}{chapter}{
16531653
\cs_gset:Npn \thealgorithm
1654-
{\thechapter\g__bithesis_label_divide_char_tl\arabic{algorithm}}
1654+
{\thechapter\g_@@_label_divide_char_tl\arabic{algorithm}}
16551655
}{}
16561656
% 针对 algorithm2e 宏包
16571657
\@ifpackagewith{algorithm2e}{algochapter}{
16581658
% 名字中的“cf”是指其作者 Christophe Fiorio。
16591659
\cs_gset:Npn \thealgocf
1660-
{\thechapter\g__bithesis_label_divide_char_tl\arabic{algocf}}
1660+
{\thechapter\g_@@_label_divide_char_tl\arabic{algocf}}
16611661
}{}
16621662

16631663
% 默认的情况下,保留公式和上下文的一定间距。(会比 Word 稍宽一些)
@@ -1724,8 +1724,8 @@
17241724
%
17251725
% 调整插图目录与表格目录的标题。
17261726
% \begin{macrocode}
1727-
\cs_set:Npn \listfigurename {\currentpdfbookmark{\c__bithesis_label_figure_tl}{ch:figures}\@@_get_const:N {figure}}
1728-
\cs_set:Npn \listtablename {\currentpdfbookmark{\c__bithesis_label_table_tl}{ch:tables}\@@_get_const:N {table}}
1727+
\cs_set:Npn \listfigurename {\currentpdfbookmark{\c_@@_label_figure_tl}{ch:figures}\@@_get_const:N {figure}}
1728+
\cs_set:Npn \listtablename {\currentpdfbookmark{\c_@@_label_table_tl}{ch:tables}\@@_get_const:N {table}}
17291729
% \end{macrocode}
17301730
%
17311731
% 预定义用户常用的证明环境。
@@ -2704,16 +2704,16 @@
27042704
}
27052705

27062706
% 添加目录书签
2707-
\__bithesis_if_thesis_int_type:nF {3} {
2708-
\currentpdfbookmark{\c__bithesis_label_toc_tl}{ch:toc}
2707+
\@@_if_thesis_int_type:nF {3} {
2708+
\currentpdfbookmark{\c_@@_label_toc_tl}{ch:toc}
27092709
}
27102710

27112711
% 制作目录
27122712
\tableofcontents
27132713

27142714
% 在本科生全英文模板中,添加「目录」本身到目录中。
2715-
\__bithesis_if_thesis_int_type:nT {3} {
2716-
\addcontentsline{toc}{chapter}{\c__bithesis_label_toc_en_tl}
2715+
\@@_if_thesis_int_type:nT {3} {
2716+
\addcontentsline{toc}{chapter}{\c_@@_label_toc_en_tl}
27172717
}
27182718

27192719
% 单独成页

0 commit comments

Comments
 (0)