|
691 | 691 | tabularFontSize .tl_set:N = \l_@@_misc_tabular_font_size_tl,
|
692 | 692 | tabularFontSize .initial:n = {5},
|
693 | 693 | arialFont .tl_set:N = \l_@@_misc_arial_font_path_tl,
|
694 |
| - autoref / algo .tl_set:N = \algoautorefname, |
| 694 | + autoref / algo .code:n = { |
| 695 | + % 定义算法的 autoref |
| 696 | + \tl_set:Nn \algorithmautorefname {#1} |
| 697 | + % 定义算法标题 |
| 698 | + \AtBeginDocument{ |
| 699 | + \tl_set:Nn \ALG@name {#1} |
| 700 | + } |
| 701 | + }, |
695 | 702 | autoref / algo .initial:n = {\g_@@_const_autoref_algo_tl},
|
696 | 703 | autoref / them .tl_set:N = \themautorefname,
|
697 | 704 | autoref / them .initial:n = {\g_@@_const_autoref_them_tl},
|
|
1560 | 1567 | \captionsetup[table]{font=small,labelsep=quad}
|
1561 | 1568 | % 其它 caption 也参照上述格式
|
1562 | 1569 | \captionsetup[lstlisting]{font=small,labelsep=quad}
|
| 1570 | + \captionsetup[algorithm]{font=small,labelsep=quad} |
1563 | 1571 | } {
|
1564 | 1572 | \tl_set:Nn \g_@@_label_divide_char_tl {-}
|
1565 | 1573 | % 本科生模板无 caption 字距要求
|
1566 | 1574 | \captionsetup[figure]{font=small,labelsep=space}
|
1567 | 1575 | \captionsetup[table]{font=small,labelsep=space}
|
1568 | 1576 | \captionsetup[lstlisting]{font=small,labelsep=space}
|
| 1577 | + \captionsetup[algorithm]{font=small,labelsep=space} |
1569 | 1578 | }
|
1570 | 1579 | % \end{macrocode}
|
1571 | 1580 | %
|
|
1586 | 1595 | \cs_gset:Npn \thelstlisting {\thechapter\g_@@_label_divide_char_tl\arabic{lstlisting}}
|
1587 | 1596 | \cs_gset:Npn \lstlistingname {\c_@@_label_code_tl}
|
1588 | 1597 |
|
| 1598 | + % 算法变成「章节号-序号」 |
| 1599 | + \cs_gset:Npn \thealgorithm |
| 1600 | + {\thechapter\g__bithesis_label_divide_char_tl\arabic{algorithm}} |
| 1601 | + |
1589 | 1602 | % 默认的情况下,保留公式和上下文的一定间距。(会比 Word 稍宽一些)
|
1590 | 1603 | \setlength{\abovedisplayskip}{\l_@@_style_math_above_display_skip_dim}
|
1591 | 1604 | \setlength{\abovedisplayshortskip}{\l_@@_style_math_above_display_skip_dim}
|
|
0 commit comments