diff options
author | Karl Berry <karl@freefriends.org> | 2025-02-16 21:02:56 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2025-02-16 21:02:56 +0000 |
commit | 2acc165d2115ccb9b9620c0db61b858fd8467803 (patch) | |
tree | 81547945d520fe9efbd90a48f5ed12c71b9ed216 | |
parent | 1740363df2e9b8d8179bbc7927475e4fc69f8de8 (diff) |
easybook (16feb25)
git-svn-id: svn://tug.org/texlive/trunk@74036 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/easybook/README.md | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/easybook/easybook.pdf | bin | 658114 -> 659547 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/easybook/easybook.tex | 9 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/easybook/easybook.dtx | 24 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/easybase.sty | 20 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/easybook.cls | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg | 2 |
7 files changed, 36 insertions, 23 deletions
diff --git a/Master/texmf-dist/doc/latex/easybook/README.md b/Master/texmf-dist/doc/latex/easybook/README.md index 8cca938e79a..76dc8c296ba 100644 --- a/Master/texmf-dist/doc/latex/easybook/README.md +++ b/Master/texmf-dist/doc/latex/easybook/README.md @@ -1,5 +1,5 @@ # The `easybook` document class -Easily typesetting Chinese theses or books (v2025p) +Easily typesetting Chinese theses or books (v2025q) ## 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. diff --git a/Master/texmf-dist/doc/latex/easybook/easybook.pdf b/Master/texmf-dist/doc/latex/easybook/easybook.pdf Binary files differindex b68a1d19155..a2fe6f5469b 100644 --- a/Master/texmf-dist/doc/latex/easybook/easybook.pdf +++ b/Master/texmf-dist/doc/latex/easybook/easybook.pdf diff --git a/Master/texmf-dist/doc/latex/easybook/easybook.tex b/Master/texmf-dist/doc/latex/easybook/easybook.tex index dcd6ead934b..b3744b817ed 100644 --- a/Master/texmf-dist/doc/latex/easybook/easybook.tex +++ b/Master/texmf-dist/doc/latex/easybook/easybook.tex @@ -23,8 +23,8 @@ name = easybook, color-scheme = blue, title = EASYBOOK使用手册, - version = v2025p, - date = 2025/02/14, + version = v2025q, + date = 2025/02/16, authors = 瞿毅, info = 简便地排版中文学位论文或书籍, email = toquyi@163.com, @@ -1316,6 +1316,11 @@ $\blacktriangleright$需要注意正确\textbf{编译索引}要增加 \code{-she \begin{ctexexam} \hangfrom[\hangwd + 1em]{悬挂标签\hspace{0.5em}}[1] \hangfrom*[3em]{} + \ctexset[section] % 与\ctexset{section/hang = true}等效 + { + hang = false, + nameformat+ = \hangfrom[\hangwd + 0.5em] + } \end{ctexexam} \environment{hangparas}[\marg{缩进长度}\marg{缩进开始行数}] 悬挂缩进环境 \env{hangparas} 有两个必选参数,使其中的段落均保持悬挂缩进。每个段落的缩进将以 \meta{缩进长度} 从 \meta{缩进开始行数} 开始。 diff --git a/Master/texmf-dist/source/latex/easybook/easybook.dtx b/Master/texmf-dist/source/latex/easybook/easybook.dtx index 1bc65fb3e28..93f570b4820 100644 --- a/Master/texmf-dist/source/latex/easybook/easybook.dtx +++ b/Master/texmf-dist/source/latex/easybook/easybook.dtx @@ -14,7 +14,7 @@ % This work has the LPPL maintenance status `maintained'. %<class|package>\NeedsTeXFormat{LaTeX2e}[2021/11/15] %<*class> -\ProvidesExplClass{easybook}{2025/02/14}{2025p} +\ProvidesExplClass{easybook}{2025/02/16}{2025q} {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/14}{2025p} +\ProvidesExplPackage{easybase}{2025/02/16}{2025q} {Easily typesetting Chinese theses or books} \cs_generate_variant:Nn \dim_set:Nn { NV } @@ -1515,6 +1515,7 @@ \cs_new:Npn \ebifbitoc { \ifbool{@bitoc} } \seq_new:N \l__eb_level_tmpa_seq \tl_new:N \l__eb_level_tmpa_tl +\tl_gset:Nn \g__eb_bilist_permute_value_tl { new } \cs_generate_variant:Nn \regex_extract_all:nnN { no } \cs_generate_variant:Nn \keys_define:nn { nx } \cs_generate_variant:Nn \ctex_set:nn { ox } @@ -1583,11 +1584,14 @@ { \str_if_eq:nnTF {#1} { mix } { - \tl_gset:Nn \g__eb_bilist_permute_value_tl {#1} - \AddToHook{cmd/CTEX@addtocline/before}[bitoc] - {\addtocontents{toc}{\boolfalse{@bitoc}}} - \AddToHook{cmd/CTEX@addbitocline/before}[bitoc] - {\addtocontents{toc}{\booltrue{@bitoc}}} + \tl_if_eq:NnF \g__eb_bilist_permute_value_tl { mix } + { + \tl_gset:Nn \g__eb_bilist_permute_value_tl {#1} + \AddToHook{cmd/CTEX@addtocline/before}[bitoc] + {\addtocontents{toc}{\boolfalse{@bitoc}}} + \AddToHook{cmd/CTEX@addbitocline/before}[bitoc] + {\addtocontents{toc}{\booltrue{@bitoc}}} + } } { \tl_if_eq:NnT \g__eb_bilist_permute_value_tl { mix } @@ -2338,8 +2342,8 @@ \dim_new:N \hangwd \cs_set_protected:Npn \hangpara #1#2 { - \dim_set:Nn \hangindent {#1} - \int_set:Nn \hangafter {#2} + \dim_gset:Nn \hangindent {#1} + \int_gset:Nn \hangafter {#2} \noindent\ignorespaces } \NewDocumentCommand{\hangfrom}{sO{\hangwd}mO{1}} @@ -3042,7 +3046,7 @@ } %</package> %<*tcolorbox> -\ProvidesExplFile{eb-tcolorbox.cfg}{2025/02/14}{2025p} +\ProvidesExplFile{eb-tcolorbox.cfg}{2025/02/16}{2025q} {Customization of tcolorbox for easybook} \cs_set_protected:Npn \addtotcbstyle #1#2 diff --git a/Master/texmf-dist/tex/latex/easybook/easybase.sty b/Master/texmf-dist/tex/latex/easybook/easybase.sty index ead14023c37..fb60a45e40b 100644 --- a/Master/texmf-dist/tex/latex/easybook/easybase.sty +++ b/Master/texmf-dist/tex/latex/easybook/easybase.sty @@ -20,7 +20,7 @@ %% This work has the LPPL maintenance status `maintained'. \NeedsTeXFormat{LaTeX2e}[2021/11/15] \RequirePackage{etoolbox} -\ProvidesExplPackage{easybase}{2025/02/14}{2025p} +\ProvidesExplPackage{easybase}{2025/02/16}{2025q} {Easily typesetting Chinese theses or books} \cs_generate_variant:Nn \dim_set:Nn { NV } @@ -1227,6 +1227,7 @@ \cs_new:Npn \ebifbitoc { \ifbool{@bitoc} } \seq_new:N \l__eb_level_tmpa_seq \tl_new:N \l__eb_level_tmpa_tl +\tl_gset:Nn \g__eb_bilist_permute_value_tl { new } \cs_generate_variant:Nn \regex_extract_all:nnN { no } \cs_generate_variant:Nn \keys_define:nn { nx } \cs_generate_variant:Nn \ctex_set:nn { ox } @@ -1295,11 +1296,14 @@ { \str_if_eq:nnTF {#1} { mix } { - \tl_gset:Nn \g__eb_bilist_permute_value_tl {#1} - \AddToHook{cmd/CTEX@addtocline/before}[bitoc] - {\addtocontents{toc}{\boolfalse{@bitoc}}} - \AddToHook{cmd/CTEX@addbitocline/before}[bitoc] - {\addtocontents{toc}{\booltrue{@bitoc}}} + \tl_if_eq:NnF \g__eb_bilist_permute_value_tl { mix } + { + \tl_gset:Nn \g__eb_bilist_permute_value_tl {#1} + \AddToHook{cmd/CTEX@addtocline/before}[bitoc] + {\addtocontents{toc}{\boolfalse{@bitoc}}} + \AddToHook{cmd/CTEX@addbitocline/before}[bitoc] + {\addtocontents{toc}{\booltrue{@bitoc}}} + } } { \tl_if_eq:NnT \g__eb_bilist_permute_value_tl { mix } @@ -2050,8 +2054,8 @@ \dim_new:N \hangwd \cs_set_protected:Npn \hangpara #1#2 { - \dim_set:Nn \hangindent {#1} - \int_set:Nn \hangafter {#2} + \dim_gset:Nn \hangindent {#1} + \int_gset:Nn \hangafter {#2} \noindent\ignorespaces } \NewDocumentCommand{\hangfrom}{sO{\hangwd}mO{1}} diff --git a/Master/texmf-dist/tex/latex/easybook/easybook.cls b/Master/texmf-dist/tex/latex/easybook/easybook.cls index 78cb858b27f..6da334f280d 100644 --- a/Master/texmf-dist/tex/latex/easybook/easybook.cls +++ b/Master/texmf-dist/tex/latex/easybook/easybook.cls @@ -19,7 +19,7 @@ %% %% This work has the LPPL maintenance status `maintained'. \NeedsTeXFormat{LaTeX2e}[2021/11/15] -\ProvidesExplClass{easybook}{2025/02/14}{2025p} +\ProvidesExplClass{easybook}{2025/02/16}{2025q} {Easily typesetting Chinese theses or books} \bool_new:N \l__eb_compile_draft_bool diff --git a/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg b/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg index 03491383c45..4adaa25d01e 100644 --- a/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg +++ b/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg @@ -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/14}{2025p} +\ProvidesExplFile{eb-tcolorbox.cfg}{2025/02/16}{2025q} {Customization of tcolorbox for easybook} \cs_set_protected:Npn \addtotcbstyle #1#2 |