texlive[73894] branches/branch2024.final/Master/texmf-dist: easybook
commits+karl at tug.org
commits+karl at tug.org
Tue Feb 11 21:55:09 CET 2025
Revision: 73894
https://tug.org/svn/texlive?view=revision&revision=73894
Author: karl
Date: 2025-02-11 21:55:09 +0100 (Tue, 11 Feb 2025)
Log Message:
-----------
easybook (branch) (11feb25)
Modified Paths:
--------------
branches/branch2024.final/Master/texmf-dist/doc/latex/easybook/README.md
branches/branch2024.final/Master/texmf-dist/doc/latex/easybook/easybook.pdf
branches/branch2024.final/Master/texmf-dist/doc/latex/easybook/easybook.tex
branches/branch2024.final/Master/texmf-dist/source/latex/easybook/easybook.dtx
branches/branch2024.final/Master/texmf-dist/tex/latex/easybook/easybase.sty
branches/branch2024.final/Master/texmf-dist/tex/latex/easybook/easybook.cls
branches/branch2024.final/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg
Modified: branches/branch2024.final/Master/texmf-dist/doc/latex/easybook/README.md
===================================================================
--- branches/branch2024.final/Master/texmf-dist/doc/latex/easybook/README.md 2025-02-11 20:55:00 UTC (rev 73893)
+++ branches/branch2024.final/Master/texmf-dist/doc/latex/easybook/README.md 2025-02-11 20:55:09 UTC (rev 73894)
@@ -1,5 +1,5 @@
# The `easybook` document class
-Easily typesetting Chinese theses or books (v2025h)
+Easily typesetting Chinese theses or books (v2025m)
## Abstract
`easybook` is a pure academic template created based on the `ctexbook` book document class. It also has the functions of `book` and `article` document class. Combined with the general framework design of the theses of many universities in China, providing multiple commands and interfaces allows users to easily customize the theses templates. Its basic macro package `easybase` can also be used with `ctex` and standard document classes.
Modified: branches/branch2024.final/Master/texmf-dist/doc/latex/easybook/easybook.pdf
===================================================================
(Binary files differ)
Modified: branches/branch2024.final/Master/texmf-dist/doc/latex/easybook/easybook.tex
===================================================================
--- branches/branch2024.final/Master/texmf-dist/doc/latex/easybook/easybook.tex 2025-02-11 20:55:00 UTC (rev 73893)
+++ branches/branch2024.final/Master/texmf-dist/doc/latex/easybook/easybook.tex 2025-02-11 20:55:09 UTC (rev 73894)
@@ -23,8 +23,8 @@
name = easybook,
color-scheme = blue,
title = EASYBOOK使用手册,
- version = v2025h,
- date = 2025/02/05,
+ version = v2025m,
+ date = 2025/02/11,
authors = 瞿毅,
info = 简便地排版中文学位论文或书籍,
email = toquyi at 163.com,
@@ -1334,6 +1334,8 @@
将计数器的值设定为指定值。
\command{stepcounter}[\marg{计数器}]
使计数器的值递增1,同时它的递增归零清单中的子计数器值归零。
+ \command{addtocounter}[\marg{计数器}\marg{整数}]
+ 将计数器与 \meta{整数} 的值相加,再将其和赋予计数器。
\command{counterwithin}[\sarg\oarg{格式}\marg{计数器}\oarg{连字符}\marg{父计数器}]
对计数器进行绑定的命令。将 \meta{计数器} 绑定于 \meta{父计数器},即 \meta{父计数器} 的值递增时 \meta{计数器} 的值会归零。输出格式 \cs*{the}\meta{计数器} 被定义为 \cs*{the}\meta{父计数器}\meta{连字符}\meta{格式}\marg{计数器}。\meta{格式} 一般为更改计数器编号形式的命令,默认为 \cs*{arabic}。带有星号参数的命令仅进行绑定不更改输出格式。
\command{counterwithout}[\sarg\oarg{格式}\marg{计数器}\marg{父计数器}]
@@ -1601,6 +1603,7 @@
\item 索引功能支持由适配 \pkg*{imakeidx} 宏包改为适配 \pkg*{indextools} 宏包。
\item \pkg*{caption} 宏包支持的图表等题注的目录选项支持 \cs{CTEXifname} 编号判断命令。
\end{version}
+ \shortversion{v = 2025m,date = 2025/02/11,changes = 优化 \module*{ref} 模块,修复选项 \keyis{linktype}{none} 失效的问题。}
\end{changelog}
\nocite{*}
% \AddToHook{cmd/printindex/before}{\clearpage}
Modified: branches/branch2024.final/Master/texmf-dist/source/latex/easybook/easybook.dtx
===================================================================
--- branches/branch2024.final/Master/texmf-dist/source/latex/easybook/easybook.dtx 2025-02-11 20:55:00 UTC (rev 73893)
+++ branches/branch2024.final/Master/texmf-dist/source/latex/easybook/easybook.dtx 2025-02-11 20:55:09 UTC (rev 73894)
@@ -14,7 +14,7 @@
% This work has the LPPL maintenance status `maintained'.
%<class|package>\NeedsTeXFormat{LaTeX2e}[2021/11/15]
%<*class>
-\ProvidesExplClass{easybook}{2025/02/05}{2025h}
+\ProvidesExplClass{easybook}{2025/02/11}{2025m}
{Easily typesetting Chinese theses or books}
\bool_new:N \l__eb_compile_draft_bool
@@ -308,7 +308,7 @@
%</class>
%<*package>
\RequirePackage{etoolbox}
-\ProvidesExplPackage{easybase}{2025/02/05}{2025h}
+\ProvidesExplPackage{easybase}{2025/02/11}{2025m}
{Easily typesetting Chinese theses or books}
\cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -317,7 +317,6 @@
\cs_generate_variant:Nn \msg_warning:nnn { nnV }
\cs_generate_variant:Nn \skip_set:Nn { NV }
\cs_generate_variant:Nn \ctex_define:nn { nx }
-\cs_generate_variant:Nn \eb_set_hyperref:n { x }
\cs_generate_variant:Nn \tl_if_novalue:nF { V }
\cs_set_protected:Npn \ctex_define:nn #1
@@ -2752,14 +2751,8 @@
\lstloadlanguages{C,C++,Java,Python,Matlab}
\clist_new:N \l__eb_hyperref_options_clist
-\cs_new_protected:Npn \eb_set_hyperref:n #1
- {
- \IfPackageLoadedTF{hyperref}
- {\hypersetup}
- {\eb_put_hyperref:n}{#1}
- }
-\cs_new_protected:Npn \eb_put_hyperref:n #1
- { \clist_put_right:Nn \l__eb_hyperref_options_clist {#1} }
+\providecommand{\hypersetup}[1]
+ {\clist_put_right:Nn \l__eb_hyperref_options_clist {#1}}
\cs_new_protected:Npn \eb_define_link_color:nnn #1#2#3
{ \definecolorset{HTML}{ctex@}{}{link,#1;url,#2;cite,#3} }
\cs_new_protected:Npn \eb_define_theme_color:nnn #1#2#3
@@ -2824,18 +2817,18 @@
\cs_new_protected:Npn \eb_link_border_set:n #1
{
- \ctex_at_end_package:nn { hyperref }
+ \AddToHook{package/hyperref/after}[eb/hyperref]
{
+ \Hy at colorlinksfalse
\def\@pdfborder{#1}
\def\Hy at colorlink ##1 {\begingroup}
\def\Hy at endcolorlink{\endgroup}
}
- \eb_set_hyperref:n { colorlinks = false }
}
\cs_new_protected:Npn \eb_link_colors_set:
- { \eb_set_hyperref:n { colorlinks } }
+ { \hypersetup{colorlinks} }
\cs_new_protected:Npn \eb_link_toc_set:n #1
- { \eb_set_hyperref:n { linktoc = #1 } }
+ { \hypersetup{linktoc = #1} }
\ctex_define:nn { ref }
{
linktype .choice:,
@@ -2849,7 +2842,7 @@
linktoc .value_required:n = true,
linktoc/unknown .code:n = \eb_link_toc_set:n {#1},
linktoc .initial:n = all,
- unknown .code:n = \eb_set_hyperref:x { \eb_unknown_kv_handle: },
+ unknown .code:n = \exp_args:Nx \hypersetup { \eb_unknown_kv_handle: },
unknown .default:V = \c_novalue_tl
}
@@ -2872,7 +2865,7 @@
\RequirePackage{hyperref}
\urlstyle{same}
\eb_allow_url_break:
- \eb_put_hyperref:n
+ \hypersetup
{
linkcolor = ctex at link,linkbordercolor = ctex at link,
urlcolor = ctex at url,urlbordercolor = ctex at url,
@@ -3028,7 +3021,7 @@
}
%</package>
%<*tcolorbox>
-\ProvidesExplFile{eb-tcolorbox.cfg}{2025/02/05}{2025h}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2025/02/11}{2025m}
{Customization of tcolorbox for easybook}
\cs_set_protected:Npn \addtotcbstyle #1#2
Modified: branches/branch2024.final/Master/texmf-dist/tex/latex/easybook/easybase.sty
===================================================================
--- branches/branch2024.final/Master/texmf-dist/tex/latex/easybook/easybase.sty 2025-02-11 20:55:00 UTC (rev 73893)
+++ branches/branch2024.final/Master/texmf-dist/tex/latex/easybook/easybase.sty 2025-02-11 20:55:09 UTC (rev 73894)
@@ -20,7 +20,7 @@
%% This work has the LPPL maintenance status `maintained'.
\NeedsTeXFormat{LaTeX2e}[2021/11/15]
\RequirePackage{etoolbox}
-\ProvidesExplPackage{easybase}{2025/02/05}{2025h}
+\ProvidesExplPackage{easybase}{2025/02/11}{2025m}
{Easily typesetting Chinese theses or books}
\cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -29,7 +29,6 @@
\cs_generate_variant:Nn \msg_warning:nnn { nnV }
\cs_generate_variant:Nn \skip_set:Nn { NV }
\cs_generate_variant:Nn \ctex_define:nn { nx }
-\cs_generate_variant:Nn \eb_set_hyperref:n { x }
\cs_generate_variant:Nn \tl_if_novalue:nF { V }
\cs_set_protected:Npn \ctex_define:nn #1
@@ -2464,14 +2463,8 @@
\lstloadlanguages{C,C++,Java,Python,Matlab}
\clist_new:N \l__eb_hyperref_options_clist
-\cs_new_protected:Npn \eb_set_hyperref:n #1
- {
- \IfPackageLoadedTF{hyperref}
- {\hypersetup}
- {\eb_put_hyperref:n}{#1}
- }
-\cs_new_protected:Npn \eb_put_hyperref:n #1
- { \clist_put_right:Nn \l__eb_hyperref_options_clist {#1} }
+\providecommand{\hypersetup}[1]
+ {\clist_put_right:Nn \l__eb_hyperref_options_clist {#1}}
\cs_new_protected:Npn \eb_define_link_color:nnn #1#2#3
{ \definecolorset{HTML}{ctex@}{}{link,#1;url,#2;cite,#3} }
\cs_new_protected:Npn \eb_define_theme_color:nnn #1#2#3
@@ -2536,18 +2529,18 @@
\cs_new_protected:Npn \eb_link_border_set:n #1
{
- \ctex_at_end_package:nn { hyperref }
+ \AddToHook{package/hyperref/after}[eb/hyperref]
{
+ \Hy at colorlinksfalse
\def\@pdfborder{#1}
\def\Hy at colorlink ##1 {\begingroup}
\def\Hy at endcolorlink{\endgroup}
}
- \eb_set_hyperref:n { colorlinks = false }
}
\cs_new_protected:Npn \eb_link_colors_set:
- { \eb_set_hyperref:n { colorlinks } }
+ { \hypersetup{colorlinks} }
\cs_new_protected:Npn \eb_link_toc_set:n #1
- { \eb_set_hyperref:n { linktoc = #1 } }
+ { \hypersetup{linktoc = #1} }
\ctex_define:nn { ref }
{
linktype .choice:,
@@ -2561,7 +2554,7 @@
linktoc .value_required:n = true,
linktoc/unknown .code:n = \eb_link_toc_set:n {#1},
linktoc .initial:n = all,
- unknown .code:n = \eb_set_hyperref:x { \eb_unknown_kv_handle: },
+ unknown .code:n = \exp_args:Nx \hypersetup { \eb_unknown_kv_handle: },
unknown .default:V = \c_novalue_tl
}
@@ -2584,7 +2577,7 @@
\RequirePackage{hyperref}
\urlstyle{same}
\eb_allow_url_break:
- \eb_put_hyperref:n
+ \hypersetup
{
linkcolor = ctex at link,linkbordercolor = ctex at link,
urlcolor = ctex at url,urlbordercolor = ctex at url,
Modified: branches/branch2024.final/Master/texmf-dist/tex/latex/easybook/easybook.cls
===================================================================
--- branches/branch2024.final/Master/texmf-dist/tex/latex/easybook/easybook.cls 2025-02-11 20:55:00 UTC (rev 73893)
+++ branches/branch2024.final/Master/texmf-dist/tex/latex/easybook/easybook.cls 2025-02-11 20:55:09 UTC (rev 73894)
@@ -19,7 +19,7 @@
%%
%% This work has the LPPL maintenance status `maintained'.
\NeedsTeXFormat{LaTeX2e}[2021/11/15]
-\ProvidesExplClass{easybook}{2025/02/05}{2025h}
+\ProvidesExplClass{easybook}{2025/02/11}{2025m}
{Easily typesetting Chinese theses or books}
\bool_new:N \l__eb_compile_draft_bool
Modified: branches/branch2024.final/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg
===================================================================
--- branches/branch2024.final/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg 2025-02-11 20:55:00 UTC (rev 73893)
+++ branches/branch2024.final/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg 2025-02-11 20:55:09 UTC (rev 73894)
@@ -18,7 +18,7 @@
%% LaTeX version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
-\ProvidesExplFile{eb-tcolorbox.cfg}{2025/02/05}{2025h}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2025/02/11}{2025m}
{Customization of tcolorbox for easybook}
\cs_set_protected:Npn \addtotcbstyle #1#2
More information about the tex-live-commits
mailing list.