texlive[71791] Master/texmf-dist: easybook (13jul24)

commits+karl at tug.org commits+karl at tug.org
Sat Jul 13 22:28:27 CEST 2024


Revision: 71791
          https://tug.org/svn/texlive?view=revision&revision=71791
Author:   karl
Date:     2024-07-13 22:28:27 +0200 (Sat, 13 Jul 2024)
Log Message:
-----------
easybook (13jul24)

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	2024-07-13 20:28:17 UTC (rev 71790)
+++ trunk/Master/texmf-dist/doc/latex/easybook/README.md	2024-07-13 20:28:27 UTC (rev 71791)
@@ -1,5 +1,5 @@
 # The `easybook` document class
-Easily typesetting Chinese theses or books (v2024cp)
+Easily typesetting Chinese theses or books (v2024cq)
 
 ## 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	2024-07-13 20:28:17 UTC (rev 71790)
+++ trunk/Master/texmf-dist/doc/latex/easybook/easybook.tex	2024-07-13 20:28:27 UTC (rev 71791)
@@ -23,8 +23,8 @@
     name            = easybook,
     color-scheme    = blue,
     title           = EASYBOOK使用手册,
-    version         = v2024cp,
-    date            = 2024/07/09,
+    version         = v2024cq,
+    date            = 2024/07/12,
     authors         = 瞿毅,
     info            = 简便地排版中文学位论文或书籍,
     email           = toquyi at 163.com,
@@ -1052,6 +1052,12 @@
   \lchapter{正常标题}
   \lchapterentry{加入目录的标题}
   \end{ctexexam}
+  \command{CopyTitleFormat}[\marg{条目名1}\marg{条目名2}]\newtagv{2024cq}%
+  将名为 \meta{条目名2} 的章节标题命令除了编号/名字外的格式复制给名为 \meta{条目名1} 的标题命令。
+  \begin{ctexexam}
+  \ctexset{section/format = \sffamily\color{blue}}
+  \CopyTitleFormat{subsection}{section}
+  \end{ctexexam}
 \end{cnltxlist}
 
 \subsection[上标和下标]{上标和下标}
@@ -1451,6 +1457,7 @@
   \end{version}
   \shortversion{v = 2024ci,date = 2024/06/22,changes = 修复使用 \code{flush} 类型脚注报错。}
   \shortversion{v = 2024co,date = 2024/07/06,changes = 目录命令的可选参数支持 \CTeX 键值列表所有路径的章节标题样式选项。}
+  \shortversion{v = 2024cq,date = 2024/07/12,changes = 新增章节标题格式复制命令 \cs{CopyTitleFormat}。}
 \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	2024-07-13 20:28:17 UTC (rev 71790)
+++ trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx	2024-07-13 20:28:27 UTC (rev 71791)
@@ -14,7 +14,7 @@
 % This work has the LPPL maintenance status `maintained'.
 %<class|package>\NeedsTeXFormat{LaTeX2e}[2021/11/15]
 %<*class>
-\ProvidesExplClass{easybook}{2024/07/09}{2024cp}
+\ProvidesExplClass{easybook}{2024/07/12}{2024cq}
   {Easily typesetting Chinese theses or books}
 
 \bool_new:N \l__eb_compile_draft_bool
@@ -301,7 +301,7 @@
 %</class>
 %<*package>
 \RequirePackage{etoolbox}
-\ProvidesExplPackage{easybase}{2024/07/09}{2024cp}
+\ProvidesExplPackage{easybase}{2024/07/12}{2024cq}
   {Easily typesetting Chinese theses or books}
 
 \cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -1338,22 +1338,22 @@
     \skip_if_eq:nnF { \eb at toc@lol at skip } { \c_zero_skip }
       { \addtocontents{lol}{\protect\addvspace{\skip_use:N \eb at toc@lol at skip}} }
   }
-\cs_new_protected:Npn \eb_title_base_set_eq:nn #1#2
+\cs_new_protected:Npn \CopyTitleFormat #1#2
   {
-    \tl_set_eq:cc { CTEX@#2 at beforeskip } { CTEX@#1 at beforeskip }
-    \tl_set_eq:cc { CTEX@#2 at afterskip } { CTEX@#1 at afterskip }
-    \bool_set_eq:cc { CTEX@#2 at numbering } { CTEX@#1 at numbering }
-    \bool_set_eq:cc { CTEX@#2 at fixskip } { CTEX@#1 at fixskip }
-    \bool_set_eq:cc { CTEX@#2 at hang } { CTEX@#1 at hang }
-    \bool_set_eq:cc { CTEX@#2 at runin } { CTEX@#1 at runin }
-    \cs_set_eq:cc { CTEX@#2 at tocline } { CTEX@#1 at tocline }
-    \tl_set_eq:cc { CTEX@#2 at break } { CTEX@#1 at break }
-    \tl_set_eq:cc { CTEX@#2 at format } { CTEX@#1 at format }
-    \tl_set_eq:cc { CTEX@#2 at nameformat } { CTEX@#1 at nameformat }
-    \tl_set_eq:cc { CTEX@#2 at numberformat } { CTEX@#1 at numberformat }
-    \tl_set_eq:cc { CTEX@#2 at titleformat } { CTEX@#1 at titleformat }
-    \tl_set_eq:cc { CTEX@#2 at aftername } { CTEX@#1 at aftername }
-    \tl_set_eq:cc { CTEX@#2 at aftertitle } { CTEX@#1 at aftertitle }
+    \tl_set_eq:cc { CTEX@#1 at beforeskip } { CTEX@#2 at beforeskip }
+    \tl_set_eq:cc { CTEX@#1 at afterskip } { CTEX@#2 at afterskip }
+    \bool_set_eq:cc { CTEX@#1 at numbering } { CTEX@#2 at numbering }
+    \bool_set_eq:cc { CTEX@#1 at fixskip } { CTEX@#2 at fixskip }
+    \bool_set_eq:cc { CTEX@#1 at hang } { CTEX@#2 at hang }
+    \bool_set_eq:cc { CTEX@#1 at runin } { CTEX@#2 at runin }
+    \cs_set_eq:cc { CTEX@#1 at tocline } { CTEX@#2 at tocline }
+    \tl_set_eq:cc { CTEX@#1 at break } { CTEX@#2 at break }
+    \tl_set_eq:cc { CTEX@#1 at format } { CTEX@#2 at format }
+    \tl_set_eq:cc { CTEX@#1 at nameformat } { CTEX@#2 at nameformat }
+    \tl_set_eq:cc { CTEX@#1 at numberformat } { CTEX@#2 at numberformat }
+    \tl_set_eq:cc { CTEX@#1 at titleformat } { CTEX@#2 at titleformat }
+    \tl_set_eq:cc { CTEX@#1 at aftername } { CTEX@#2 at aftername }
+    \tl_set_eq:cc { CTEX@#1 at aftertitle } { CTEX@#2 at aftertitle }
   }
 \NewDocumentCommand{\NewTitleCommand}{omm}
   {
@@ -1375,7 +1375,7 @@
       { \CTEXnumberline{##1}##2 }
     \exp_args:Nc \providecommand { ttll@#2 }{#3}
     \exp_args:Nc \providecommand { toclevel@#2 }{#3}
-    \IfValueT{#1}{\eb_title_base_set_eq:nn {#1} {#2}}
+    \IfValueT{#1}{\CopyTitleFormat{#2}{#1}}
   }
 \NewDocumentCommand{\NewTitleEntryCommand}{O{toc}m}
   {
@@ -2665,7 +2665,7 @@
   }
 %</package>
 %<*tcolorbox>
-\ProvidesExplFile{eb-tcolorbox.cfg}{2024/07/09}{2024cp}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2024/07/12}{2024cq}
   {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	2024-07-13 20:28:17 UTC (rev 71790)
+++ trunk/Master/texmf-dist/tex/latex/easybook/easybase.sty	2024-07-13 20:28:27 UTC (rev 71791)
@@ -20,7 +20,7 @@
 %% This work has the LPPL maintenance status `maintained'.
 \NeedsTeXFormat{LaTeX2e}[2021/11/15]
 \RequirePackage{etoolbox}
-\ProvidesExplPackage{easybase}{2024/07/09}{2024cp}
+\ProvidesExplPackage{easybase}{2024/07/12}{2024cq}
   {Easily typesetting Chinese theses or books}
 
 \cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -1057,22 +1057,22 @@
     \skip_if_eq:nnF { \eb at toc@lol at skip } { \c_zero_skip }
       { \addtocontents{lol}{\protect\addvspace{\skip_use:N \eb at toc@lol at skip}} }
   }
-\cs_new_protected:Npn \eb_title_base_set_eq:nn #1#2
+\cs_new_protected:Npn \CopyTitleFormat #1#2
   {
-    \tl_set_eq:cc { CTEX@#2 at beforeskip } { CTEX@#1 at beforeskip }
-    \tl_set_eq:cc { CTEX@#2 at afterskip } { CTEX@#1 at afterskip }
-    \bool_set_eq:cc { CTEX@#2 at numbering } { CTEX@#1 at numbering }
-    \bool_set_eq:cc { CTEX@#2 at fixskip } { CTEX@#1 at fixskip }
-    \bool_set_eq:cc { CTEX@#2 at hang } { CTEX@#1 at hang }
-    \bool_set_eq:cc { CTEX@#2 at runin } { CTEX@#1 at runin }
-    \cs_set_eq:cc { CTEX@#2 at tocline } { CTEX@#1 at tocline }
-    \tl_set_eq:cc { CTEX@#2 at break } { CTEX@#1 at break }
-    \tl_set_eq:cc { CTEX@#2 at format } { CTEX@#1 at format }
-    \tl_set_eq:cc { CTEX@#2 at nameformat } { CTEX@#1 at nameformat }
-    \tl_set_eq:cc { CTEX@#2 at numberformat } { CTEX@#1 at numberformat }
-    \tl_set_eq:cc { CTEX@#2 at titleformat } { CTEX@#1 at titleformat }
-    \tl_set_eq:cc { CTEX@#2 at aftername } { CTEX@#1 at aftername }
-    \tl_set_eq:cc { CTEX@#2 at aftertitle } { CTEX@#1 at aftertitle }
+    \tl_set_eq:cc { CTEX@#1 at beforeskip } { CTEX@#2 at beforeskip }
+    \tl_set_eq:cc { CTEX@#1 at afterskip } { CTEX@#2 at afterskip }
+    \bool_set_eq:cc { CTEX@#1 at numbering } { CTEX@#2 at numbering }
+    \bool_set_eq:cc { CTEX@#1 at fixskip } { CTEX@#2 at fixskip }
+    \bool_set_eq:cc { CTEX@#1 at hang } { CTEX@#2 at hang }
+    \bool_set_eq:cc { CTEX@#1 at runin } { CTEX@#2 at runin }
+    \cs_set_eq:cc { CTEX@#1 at tocline } { CTEX@#2 at tocline }
+    \tl_set_eq:cc { CTEX@#1 at break } { CTEX@#2 at break }
+    \tl_set_eq:cc { CTEX@#1 at format } { CTEX@#2 at format }
+    \tl_set_eq:cc { CTEX@#1 at nameformat } { CTEX@#2 at nameformat }
+    \tl_set_eq:cc { CTEX@#1 at numberformat } { CTEX@#2 at numberformat }
+    \tl_set_eq:cc { CTEX@#1 at titleformat } { CTEX@#2 at titleformat }
+    \tl_set_eq:cc { CTEX@#1 at aftername } { CTEX@#2 at aftername }
+    \tl_set_eq:cc { CTEX@#1 at aftertitle } { CTEX@#2 at aftertitle }
   }
 \NewDocumentCommand{\NewTitleCommand}{omm}
   {
@@ -1094,7 +1094,7 @@
       { \CTEXnumberline{##1}##2 }
     \exp_args:Nc \providecommand { ttll@#2 }{#3}
     \exp_args:Nc \providecommand { toclevel@#2 }{#3}
-    \IfValueT{#1}{\eb_title_base_set_eq:nn {#1} {#2}}
+    \IfValueT{#1}{\CopyTitleFormat{#2}{#1}}
   }
 \NewDocumentCommand{\NewTitleEntryCommand}{O{toc}m}
   {

Modified: trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls	2024-07-13 20:28:17 UTC (rev 71790)
+++ trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls	2024-07-13 20:28:27 UTC (rev 71791)
@@ -19,7 +19,7 @@
 %% 
 %% This work has the LPPL maintenance status `maintained'.
 \NeedsTeXFormat{LaTeX2e}[2021/11/15]
-\ProvidesExplClass{easybook}{2024/07/09}{2024cp}
+\ProvidesExplClass{easybook}{2024/07/12}{2024cq}
   {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	2024-07-13 20:28:17 UTC (rev 71790)
+++ trunk/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg	2024-07-13 20:28:27 UTC (rev 71791)
@@ -18,7 +18,7 @@
 %% LaTeX version 2005/12/01 or later.
 %% 
 %% This work has the LPPL maintenance status `maintained'.
-\ProvidesExplFile{eb-tcolorbox.cfg}{2024/07/09}{2024cp}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2024/07/12}{2024cq}
   {Customization of tcolorbox for easybook}
 
 \cs_set_protected:Npn \addtotcbstyle #1#2



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