From 5e39b1cb205459cadf7e418c73567bf999923ce7 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 17 Apr 2024 03:01:32 +0000 Subject: CTAN sync 202404170301 --- macros/unicodetex/latex/bithesis/bithesis.dtx | 23 ++++++++++++++++++----- macros/unicodetex/latex/bithesis/bithesis.pdf | Bin 742283 -> 743578 bytes 2 files changed, 18 insertions(+), 5 deletions(-) (limited to 'macros/unicodetex') diff --git a/macros/unicodetex/latex/bithesis/bithesis.dtx b/macros/unicodetex/latex/bithesis/bithesis.dtx index 2e0eb9ae8e..200c748f26 100644 --- a/macros/unicodetex/latex/bithesis/bithesis.dtx +++ b/macros/unicodetex/latex/bithesis/bithesis.dtx @@ -21,10 +21,10 @@ %\ProvidesExplClass{bithesis} %\ProvidesExplClass{bitreport} %\ProvidesExplClass{bitbeamer} -%{2024-04-11}{3.7.3}{BIT Thesis Templates} +%{2024-04-16}{3.7.4}{BIT Thesis Templates} % %<*driver> -\ProvidesFile{bithesis.dtx}[2024/04/11 3.7.3 BIT Thesis Templates] +\ProvidesFile{bithesis.dtx}[2024/04/16 3.7.4 BIT Thesis Templates] \documentclass[letterpaper]{l3doc} \usepackage{dtx-style} @@ -692,11 +692,16 @@ tabularFontSize .initial:n = {5}, arialFont .tl_set:N = \l_@@_misc_arial_font_path_tl, autoref / algo .code:n = { - % 定义算法的 autoref - \tl_set:Nn \algorithmautorefname {#1} - % 定义算法标题 \AtBeginDocument{ + % 定义算法标题 + % 针对 algorithm 宏包 \tl_set:Nn \ALG@name {#1} + % 针对 algorithm2e 宏包 + \tl_set:Nn \algorithmcfname {#1} + + % 定义算法的 autoref + % algorithm2e 宏包会覆写它,所以我们必须AtBeginDocument时再修改 + \tl_set:Nn \algorithmautorefname {#1} } }, autoref / algo .initial:n = {\g_@@_const_autoref_algo_tl}, @@ -1596,8 +1601,16 @@ \cs_gset:Npn \lstlistingname {\c_@@_label_code_tl} % 算法变成「章节号-序号」 + % 针对 algorithm 宏包 \cs_gset:Npn \thealgorithm {\thechapter\g__bithesis_label_divide_char_tl\arabic{algorithm}} + % 针对 algorithm2e 宏包 + % 为了减少修改,我们只适配按章编号(algochapter)的情况。 + \@ifpackagewith{algorithm2e}{algochapter}{ + % 名字中的“cf”是指其作者 Christophe Fiorio。 + \cs_gset:Npn \thealgocf + {\thechapter\g__bithesis_label_divide_char_tl\arabic{algocf}} + }{} % 默认的情况下,保留公式和上下文的一定间距。(会比 Word 稍宽一些) \setlength{\abovedisplayskip}{\l_@@_style_math_above_display_skip_dim} diff --git a/macros/unicodetex/latex/bithesis/bithesis.pdf b/macros/unicodetex/latex/bithesis/bithesis.pdf index 8812670792..8056d149eb 100644 Binary files a/macros/unicodetex/latex/bithesis/bithesis.pdf and b/macros/unicodetex/latex/bithesis/bithesis.pdf differ -- cgit v1.2.3