|
216 | 216 | % \begin{macrocode}
|
217 | 217 | \cs_new:Npn \@@_if_thesis_int_type:nTF #1#2#3 {\int_compare:nNnTF {\g_@@_thesis_type_int} = {#1} {#2} {#3}}
|
218 | 218 | \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}} |
220 | 220 | % \end{macrocode}
|
221 | 221 | % \end{macro}
|
222 | 222 |
|
|
1651 | 1651 | % 针对 algorithm 宏包
|
1652 | 1652 | \@ifpackagewith{algorithm}{chapter}{
|
1653 | 1653 | \cs_gset:Npn \thealgorithm
|
1654 |
| - {\thechapter\g__bithesis_label_divide_char_tl\arabic{algorithm}} |
| 1654 | + {\thechapter\g_@@_label_divide_char_tl\arabic{algorithm}} |
1655 | 1655 | }{}
|
1656 | 1656 | % 针对 algorithm2e 宏包
|
1657 | 1657 | \@ifpackagewith{algorithm2e}{algochapter}{
|
1658 | 1658 | % 名字中的“cf”是指其作者 Christophe Fiorio。
|
1659 | 1659 | \cs_gset:Npn \thealgocf
|
1660 |
| - {\thechapter\g__bithesis_label_divide_char_tl\arabic{algocf}} |
| 1660 | + {\thechapter\g_@@_label_divide_char_tl\arabic{algocf}} |
1661 | 1661 | }{}
|
1662 | 1662 |
|
1663 | 1663 | % 默认的情况下,保留公式和上下文的一定间距。(会比 Word 稍宽一些)
|
|
1724 | 1724 | %
|
1725 | 1725 | % 调整插图目录与表格目录的标题。
|
1726 | 1726 | % \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}} |
1729 | 1729 | % \end{macrocode}
|
1730 | 1730 | %
|
1731 | 1731 | % 预定义用户常用的证明环境。
|
|
2704 | 2704 | }
|
2705 | 2705 |
|
2706 | 2706 | % 添加目录书签
|
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} |
2709 | 2709 | }
|
2710 | 2710 |
|
2711 | 2711 | % 制作目录
|
2712 | 2712 | \tableofcontents
|
2713 | 2713 |
|
2714 | 2714 | % 在本科生全英文模板中,添加「目录」本身到目录中。
|
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} |
2717 | 2717 | }
|
2718 | 2718 |
|
2719 | 2719 | % 单独成页
|
|
0 commit comments