texlive[72748] Master/texmf-dist: easybook (2nov24)

commits+karl at tug.org commits+karl at tug.org
Sat Nov 2 20:38:17 CET 2024


Revision: 72748
          https://tug.org/svn/texlive?view=revision&revision=72748
Author:   karl
Date:     2024-11-02 20:38:17 +0100 (Sat, 02 Nov 2024)
Log Message:
-----------
easybook (2nov24)

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-11-02 00:41:59 UTC (rev 72747)
+++ trunk/Master/texmf-dist/doc/latex/easybook/README.md	2024-11-02 19:38:17 UTC (rev 72748)
@@ -1,5 +1,5 @@
 # The `easybook` document class
-Easily typesetting Chinese theses or books (v2024ex)
+Easily typesetting Chinese theses or books (v2024ez)
 
 ## 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-11-02 00:41:59 UTC (rev 72747)
+++ trunk/Master/texmf-dist/doc/latex/easybook/easybook.tex	2024-11-02 19:38:17 UTC (rev 72748)
@@ -23,8 +23,8 @@
     name            = easybook,
     color-scheme    = blue,
     title           = EASYBOOK使用手册,
-    version         = v2024ex,
-    date            = 2024/10/31,
+    version         = v2024ez,
+    date            = 2024/11/01,
     authors         = 瞿毅,
     info            = 简便地排版中文学位论文或书籍,
     email           = toquyi at 163.com,
@@ -781,10 +781,10 @@
   \makeatother
   \end{ctexexam}
   \end{cnltxlist}
-  \command{markrule}[\oarg{长度}\darg{颜色名}\marg{线宽}\baroarg{上间距,下间距}]
-  实线命令 \cs{markrule} 既可在 \meta{横线命令} 中用于绘制页眉页脚横线,也可以在正文中使用。\meta{长度} 默认为版心的宽度,上下间距为横线与上下方部件的间距,带有长度单位,上下间距之间用符号 \code{|} 分开,若只有一部分则表示 \meta{上间距}。下面举一个设置页眉内容的例子:
+  \command{markrule}[\oarg{长度}\darg{颜色名}\marg{高度}\oarg{深度}]
+  实线命令 \cs{markrule} 既可在 \meta{横线命令} 中用于绘制页眉页脚横线,也可以在正文中使用。实线的 \meta{长度} 默认为版心的宽度,\meta{高度} 为线向上的粗细需要指定,\meta{深度} 为线向下的粗细默认为 \code{0pt}。它们均为刚性长度且可以为负值,支持数学表达式,通过控制 \meta{高度} 和 \meta{深度} 的正负值可以决定实线上下偏移量。下面举一个设置页眉内容的例子:
   \begin{ctexexam}[labelref = exam:markrule]
-  \ebhdrset{headrule = \markrule(DarkOrchid){0.5pt}[2pt|2pt]}
+  \ebhdrset{headrule = \markrule(DarkOrchid){2pt + 1pt}[-2pt]}
   \fancyhead[ER]{\FirstMark{2e-left}} % 来自ltmarks的标记机制
   \fancyhead[OL]{\rightmark}
   \fancyhead[EL,OR]{\textbf{\thepage}}

Modified: trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx	2024-11-02 00:41:59 UTC (rev 72747)
+++ trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx	2024-11-02 19:38:17 UTC (rev 72748)
@@ -14,7 +14,7 @@
 % This work has the LPPL maintenance status `maintained'.
 %<class|package>\NeedsTeXFormat{LaTeX2e}[2021/11/15]
 %<*class>
-\ProvidesExplClass{easybook}{2024/10/31}{2024ex}
+\ProvidesExplClass{easybook}{2024/11/01}{2024ez}
   {Easily typesetting Chinese theses or books}
 
 \bool_new:N \l__eb_compile_draft_bool
@@ -302,7 +302,7 @@
 %</class>
 %<*package>
 \RequirePackage{etoolbox}
-\ProvidesExplPackage{easybase}{2024/10/31}{2024ex}
+\ProvidesExplPackage{easybase}{2024/11/01}{2024ez}
   {Easily typesetting Chinese theses or books}
 
 \cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -596,14 +596,16 @@
     \pagenumbering{arabic}
   }
 \NewDocumentCommand{\markrule}
-  {O{\textwidth}D(){ctex at frame}m>{\SplitArgument{1}{|}}O{}}
-  {\eb_draw_markrule:nnnnn {#1} {#2} {#3} #4}
-\cs_new_protected:Npn \eb_draw_markrule:nnnnn #1#2#3#4#5
+  {O{\textwidth}D(){ctex at frame}mO{0pt}}
   {
     \group_begin:
-    \tl_if_blank:nF {#4} { \vspace*{#4} }
-    \color{#2}\hrule\@width #1\@height #3
-    \tl_if_novalue:nF {#5} { \vspace*{#5} }
+    \color{#2}
+    \exp_last_unbraced:Nx \hrule
+      {
+        \@width \dim_eval:n {#1}
+        \@height \dim_eval:n {#3}
+        \@depth \dim_eval:n {#4}
+      }
     \group_end:
   }
 \cs_new:Npn \eb_mark_uppercase_case_init:n
@@ -662,7 +664,11 @@
     footrule .tl_gset:N       = \footrule,
     footrule .initial:n       = { },
     footnoterule .tl_gset:N   = \footnoterule,
-    footnoterule .initial:n = \markrule[0.35\textwidth]{\eb at footnote@rule at wd}[|3pt]
+    footnoterule .initial:n   =
+      {
+        \markrule[0.35\textwidth]{\eb at footnote@rule at wd}
+        \vspace*{3pt}
+      }
   }
 
 \cs_set:Npn \markdouble #1 { \markboth{#1}{\ifbool{@twoside}{#1}{}} }
@@ -2967,7 +2973,7 @@
   }
 %</package>
 %<*tcolorbox>
-\ProvidesExplFile{eb-tcolorbox.cfg}{2024/10/31}{2024ex}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2024/11/01}{2024ez}
   {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-11-02 00:41:59 UTC (rev 72747)
+++ trunk/Master/texmf-dist/tex/latex/easybook/easybase.sty	2024-11-02 19:38:17 UTC (rev 72748)
@@ -20,7 +20,7 @@
 %% This work has the LPPL maintenance status `maintained'.
 \NeedsTeXFormat{LaTeX2e}[2021/11/15]
 \RequirePackage{etoolbox}
-\ProvidesExplPackage{easybase}{2024/10/31}{2024ex}
+\ProvidesExplPackage{easybase}{2024/11/01}{2024ez}
   {Easily typesetting Chinese theses or books}
 
 \cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -314,14 +314,16 @@
     \pagenumbering{arabic}
   }
 \NewDocumentCommand{\markrule}
-  {O{\textwidth}D(){ctex at frame}m>{\SplitArgument{1}{|}}O{}}
-  {\eb_draw_markrule:nnnnn {#1} {#2} {#3} #4}
-\cs_new_protected:Npn \eb_draw_markrule:nnnnn #1#2#3#4#5
+  {O{\textwidth}D(){ctex at frame}mO{0pt}}
   {
     \group_begin:
-    \tl_if_blank:nF {#4} { \vspace*{#4} }
-    \color{#2}\hrule\@width #1\@height #3
-    \tl_if_novalue:nF {#5} { \vspace*{#5} }
+    \color{#2}
+    \exp_last_unbraced:Nx \hrule
+      {
+        \@width \dim_eval:n {#1}
+        \@height \dim_eval:n {#3}
+        \@depth \dim_eval:n {#4}
+      }
     \group_end:
   }
 \cs_new:Npn \eb_mark_uppercase_case_init:n
@@ -380,7 +382,11 @@
     footrule .tl_gset:N       = \footrule,
     footrule .initial:n       = { },
     footnoterule .tl_gset:N   = \footnoterule,
-    footnoterule .initial:n = \markrule[0.35\textwidth]{\eb at footnote@rule at wd}[|3pt]
+    footnoterule .initial:n   =
+      {
+        \markrule[0.35\textwidth]{\eb at footnote@rule at wd}
+        \vspace*{3pt}
+      }
   }
 
 \cs_set:Npn \markdouble #1 { \markboth{#1}{\ifbool{@twoside}{#1}{}} }

Modified: trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls	2024-11-02 00:41:59 UTC (rev 72747)
+++ trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls	2024-11-02 19:38:17 UTC (rev 72748)
@@ -19,7 +19,7 @@
 %% 
 %% This work has the LPPL maintenance status `maintained'.
 \NeedsTeXFormat{LaTeX2e}[2021/11/15]
-\ProvidesExplClass{easybook}{2024/10/31}{2024ex}
+\ProvidesExplClass{easybook}{2024/11/01}{2024ez}
   {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-11-02 00:41:59 UTC (rev 72747)
+++ trunk/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg	2024-11-02 19:38:17 UTC (rev 72748)
@@ -18,7 +18,7 @@
 %% LaTeX version 2005/12/01 or later.
 %% 
 %% This work has the LPPL maintenance status `maintained'.
-\ProvidesExplFile{eb-tcolorbox.cfg}{2024/10/31}{2024ex}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2024/11/01}{2024ez}
   {Customization of tcolorbox for easybook}
 
 \cs_set_protected:Npn \addtotcbstyle #1#2



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