texlive[73603] Master/texmf-dist: easybook (26jan25)

commits+karl at tug.org commits+karl at tug.org
Sun Jan 26 22:02:27 CET 2025


Revision: 73603
          https://tug.org/svn/texlive?view=revision&revision=73603
Author:   karl
Date:     2025-01-26 22:02:27 +0100 (Sun, 26 Jan 2025)
Log Message:
-----------
easybook (26jan25)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/easybook/README.md
    trunk/Master/texmf-dist/doc/latex/easybook/easybook.pdf
    trunk/Master/texmf-dist/doc/latex/easybook/easybook.tex
    trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx
    trunk/Master/texmf-dist/tex/latex/easybook/easybase.sty
    trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls
    trunk/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg

Modified: trunk/Master/texmf-dist/doc/latex/easybook/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/easybook/README.md	2025-01-26 21:02:11 UTC (rev 73602)
+++ trunk/Master/texmf-dist/doc/latex/easybook/README.md	2025-01-26 21:02:27 UTC (rev 73603)
@@ -1,5 +1,5 @@
 # The `easybook` document class
-Easily typesetting Chinese theses or books (v2025e)
+Easily typesetting Chinese theses or books (v2025f)
 
 ## 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: trunk/Master/texmf-dist/doc/latex/easybook/easybook.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/easybook/easybook.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/easybook/easybook.tex	2025-01-26 21:02:11 UTC (rev 73602)
+++ trunk/Master/texmf-dist/doc/latex/easybook/easybook.tex	2025-01-26 21:02:27 UTC (rev 73603)
@@ -23,8 +23,8 @@
     name            = easybook,
     color-scheme    = blue,
     title           = EASYBOOK使用手册,
-    version         = v2025e,
-    date            = 2025/01/25,
+    version         = v2025f,
+    date            = 2025/01/26,
     authors         = 瞿毅,
     info            = 简便地排版中文学位论文或书籍,
     email           = toquyi at 163.com,
@@ -259,7 +259,7 @@
   }
   amsthm & bicaption & ctex & caption & chemformula \\
   enumitem & etoolbox & fancyhdr & geometry & hyperref \\
-  imakeidx & listings & marginnote & graphicx & multicol \\
+  indextools & listings & marginnote & graphicx & multicol \\
   pifont & pdfpages & siunitx & spbmark & thmtools \\
   tcolorbox & titletoc & tabularray & xcolor
 \end{longtblr}
@@ -998,7 +998,7 @@
       figure/tocline      = \protect\numberline{图\thefigure\hspace{1em}}#2
     }
   \end{ctexexam}
-  \command{RegisterCapIfname}[\oarg{文件名}\marg{扩展名列表}]\newtagv{2025e}%
+  \command{RegisterCapIfname}[\oarg{文件名}\marg{扩展名列表}]\newtagv{2025f}%
   给 \pkg*{caption} 宏包支持的题注注册目录选项中 \cs{CTEXifname} 命令的编号判断功能,判断的依据是题注标签格式 \option{labelformat} 是否为空。\meta{文件名} 为题注目录文件的名字,默认为 \code{\string\jobname}。
   \begin{ctexexam}
   \RegisterCapIfname{loa}
@@ -1449,7 +1449,7 @@
 \end{cnltxlist}
 
 \subsection{索引}
-\pkg*{imakeidx} 宏包增强了索引的功能,可使用户在制作和排版文档的同时制作一个或多个索引。
+\pkg*{indextools} 宏包增强了索引的功能,可使用户在制作和排版文档的同时制作一个或多个索引。它是在 \pkg*{imakeidx} 基础上进行复刻,并进行了一些改进和问题修复。
 \begin{cnltxlist}
   \command{indexsetup}[\marg{键值列表}]
   设置索引表整体格式的通用接口命令,它的 \option{level} 和 \option{headers} 选项失效。
@@ -1597,6 +1597,10 @@
   \shortversion{v = 2024dq,date = 2024/09/16,changes = 修复脚注重置编号的方式为 \code{page} 时在一些换页情况下失败的问题。}
   \shortversion{v = 2024dt,date = 2024/09/22,changes = 新增用于设置行距的命令 \cs{usestretch} 和环境 \env{usespace}。}
   \shortversion{v = 2024ea,date = 2024/09/28,changes = 定理模块 \module*{thmt} 支持使用 \pkg*{keytheorems} 宏包。}
+  \begin{version}[v = 2025f,date = 2025/01/26,simple]
+  \item 索引功能支持由适配 \pkg*{imakeidx} 宏包改为适配 \pkg*{indextools} 宏包。
+  \item \pkg*{caption} 宏包支持的图表等题注的目录选项支持 \cs{CTEXifname} 编号判断命令。
+  \end{version}
 \end{changelog}
 \nocite{*}
 % \AddToHook{cmd/printindex/before}{\clearpage}

Modified: trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx	2025-01-26 21:02:11 UTC (rev 73602)
+++ trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx	2025-01-26 21:02:27 UTC (rev 73603)
@@ -14,7 +14,7 @@
 % This work has the LPPL maintenance status `maintained'.
 %<class|package>\NeedsTeXFormat{LaTeX2e}[2021/11/15]
 %<*class>
-\ProvidesExplClass{easybook}{2025/01/25}{2025e}
+\ProvidesExplClass{easybook}{2025/01/26}{2025f}
   {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/01/25}{2025e}
+\ProvidesExplPackage{easybase}{2025/01/26}{2025f}
   {Easily typesetting Chinese theses or books}
 
 \cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -1598,8 +1598,8 @@
               }
           }
       },
-    name .tl_set:N      = \l__eb_print_index_name_tl,
-    name .initial:n     = \imki at jobname,
+    name .tl_set:N      = \eb at index@name,
+    name .initial:n     = \indtl at jobname,
     unknown .code:n     =
       {
         \ctex_set:ox { \l__eb_level_tmpa_tl }
@@ -2069,20 +2069,19 @@
       { tocindent = \bool_if:NTF \l__eb_class_mode_book_bool { 3.8em } { 1.5em } }
   }
 
-\ctex_at_end_package:nn { imakeidx }
+\ctex_at_end_package:nn { indextools }
   {
+    \booltrue{indtl at fancyhdr}
     \RenewDocumentCommand{\printindex}{st++o}
       {
         \group_begin:
         \tl_set_eq:NN \eb at toc@title \indexname
-        \cs_set_eq:NN \imki at indexlevel \use_none:n
         \eb_toc_kv_set:nn { idx } {#3}
-        \cs_set_protected:Npn \imki at indexheaders
-          {
-            \eb_toc_title_level_cmd:n {#1}
-            \cs_set_eq:NN \thispagestyle \use_none:n
-          }
-        \imki at putindex{\l__eb_print_index_name_tl}
+        \cs_set_protected:Npn \indtl at indexlevel ##1
+          { \eb_toc_title_level_cmd:n {#1} }
+        \@ifundefined{\csuse{eb at index@name}@idxfile}
+          {\indtl at error{\eb at index@name}}
+          {\indtl at putindex{\eb at index@name}}
         \group_end:
       }
   }
@@ -3029,7 +3028,7 @@
   }
 %</package>
 %<*tcolorbox>
-\ProvidesExplFile{eb-tcolorbox.cfg}{2025/01/25}{2025e}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2025/01/26}{2025f}
   {Customization of tcolorbox for easybook}
 
 \cs_set_protected:Npn \addtotcbstyle #1#2

Modified: trunk/Master/texmf-dist/tex/latex/easybook/easybase.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/easybook/easybase.sty	2025-01-26 21:02:11 UTC (rev 73602)
+++ trunk/Master/texmf-dist/tex/latex/easybook/easybase.sty	2025-01-26 21:02:27 UTC (rev 73603)
@@ -20,7 +20,7 @@
 %% This work has the LPPL maintenance status `maintained'.
 \NeedsTeXFormat{LaTeX2e}[2021/11/15]
 \RequirePackage{etoolbox}
-\ProvidesExplPackage{easybase}{2025/01/25}{2025e}
+\ProvidesExplPackage{easybase}{2025/01/26}{2025f}
   {Easily typesetting Chinese theses or books}
 
 \cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -1310,8 +1310,8 @@
               }
           }
       },
-    name .tl_set:N      = \l__eb_print_index_name_tl,
-    name .initial:n     = \imki at jobname,
+    name .tl_set:N      = \eb at index@name,
+    name .initial:n     = \indtl at jobname,
     unknown .code:n     =
       {
         \ctex_set:ox { \l__eb_level_tmpa_tl }
@@ -1781,20 +1781,19 @@
       { tocindent = \bool_if:NTF \l__eb_class_mode_book_bool { 3.8em } { 1.5em } }
   }
 
-\ctex_at_end_package:nn { imakeidx }
+\ctex_at_end_package:nn { indextools }
   {
+    \booltrue{indtl at fancyhdr}
     \RenewDocumentCommand{\printindex}{st++o}
       {
         \group_begin:
         \tl_set_eq:NN \eb at toc@title \indexname
-        \cs_set_eq:NN \imki at indexlevel \use_none:n
         \eb_toc_kv_set:nn { idx } {#3}
-        \cs_set_protected:Npn \imki at indexheaders
-          {
-            \eb_toc_title_level_cmd:n {#1}
-            \cs_set_eq:NN \thispagestyle \use_none:n
-          }
-        \imki at putindex{\l__eb_print_index_name_tl}
+        \cs_set_protected:Npn \indtl at indexlevel ##1
+          { \eb_toc_title_level_cmd:n {#1} }
+        \@ifundefined{\csuse{eb at index@name}@idxfile}
+          {\indtl at error{\eb at index@name}}
+          {\indtl at putindex{\eb at index@name}}
         \group_end:
       }
   }

Modified: trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls	2025-01-26 21:02:11 UTC (rev 73602)
+++ trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls	2025-01-26 21:02:27 UTC (rev 73603)
@@ -19,7 +19,7 @@
 %% 
 %% This work has the LPPL maintenance status `maintained'.
 \NeedsTeXFormat{LaTeX2e}[2021/11/15]
-\ProvidesExplClass{easybook}{2025/01/25}{2025e}
+\ProvidesExplClass{easybook}{2025/01/26}{2025f}
   {Easily typesetting Chinese theses or books}
 
 \bool_new:N \l__eb_compile_draft_bool

Modified: trunk/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg
===================================================================
--- trunk/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg	2025-01-26 21:02:11 UTC (rev 73602)
+++ trunk/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg	2025-01-26 21:02:27 UTC (rev 73603)
@@ -18,7 +18,7 @@
 %% LaTeX version 2005/12/01 or later.
 %% 
 %% This work has the LPPL maintenance status `maintained'.
-\ProvidesExplFile{eb-tcolorbox.cfg}{2025/01/25}{2025e}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2025/01/26}{2025f}
   {Customization of tcolorbox for easybook}
 
 \cs_set_protected:Npn \addtotcbstyle #1#2



More information about the tex-live-commits mailing list.