texlive[60788] Master/texmf-dist: easybook (17oct21)
commits+karl at tug.org
commits+karl at tug.org
Sun Oct 17 22:47:15 CEST 2021
Revision: 60788
http://tug.org/svn/texlive?view=revision&revision=60788
Author: karl
Date: 2021-10-17 22:47:14 +0200 (Sun, 17 Oct 2021)
Log Message:
-----------
easybook (17oct21)
Modified Paths:
--------------
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/easybook.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/easybook/easybook.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/easybook/easybook.tex 2021-10-17 20:46:59 UTC (rev 60787)
+++ trunk/Master/texmf-dist/doc/latex/easybook/easybook.tex 2021-10-17 20:47:14 UTC (rev 60788)
@@ -20,7 +20,7 @@
name = easybook,
color-scheme = blue,
title = EASYBOOK 使用手册,
- version = v1.3L,
+ version = v1.3N,
date = 2021/10/16,
authors = 瞿毅,
info = 排版简体中文学位论文和书籍,
@@ -1201,6 +1201,7 @@
\end{commands}
\appendix
+\clearpage
\nocite{*}
\end{document}
\ No newline at end of file
Modified: trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx 2021-10-17 20:46:59 UTC (rev 60787)
+++ trunk/Master/texmf-dist/source/latex/easybook/easybook.dtx 2021-10-17 20:47:14 UTC (rev 60788)
@@ -15,7 +15,7 @@
%<*class>
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\RequirePackage{l3keys2e}
-\ProvidesExplClass{easybook}{2021/10/16}{1.3L}
+\ProvidesExplClass{easybook}{2021/10/16}{1.3N}
{Typeset Chinese theses or books}
\bool_set_false:N \l__eb_compile_draft_bool
@@ -319,7 +319,7 @@
%<*package>
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\RequirePackage{l3keys2e,etoolbox}
-\ProvidesExplPackage{easybase}{2021/10/16}{1.3L}
+\ProvidesExplPackage{easybase}{2021/10/16}{1.3N}
{Typeset Chinese theses or books}
\cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -1017,8 +1017,8 @@
}
\cs_set_protected:Npn \footnote
{
- \@ifnextchar [
- {\@xfootnote}
+ \peek_meaning:NTF [
+ { \@xfootnote }
{
\exp_args:NV \stepcounter \@mpfn
\eb_current_label:n { @footnote }
@@ -1030,8 +1030,8 @@
}
\cs_set:Npn \footnotemark
{
- \@ifnextchar [
- {\@xfootnotemark}
+ \peek_meaning:NTF [
+ { \@xfootnotemark }
{
\stepcounter{footnote}
\protected at xdef\eb at thefnmark{\the at footnote}
@@ -1153,7 +1153,7 @@
[\dim_use:c { l__eb_toc_#1_indent_dim }]
{\tl_use:c { l__eb_toc_#1_format_tl }}
{
- \ifbool{eb at titletoc@hang at fix}
+ \bool_if:NT \eb at titletoc@hang at fix@bool
{
\contentspush
{
@@ -1162,7 +1162,7 @@
\thecontentslabel
\hspace{\use:c { eb at toc@#1 at numsep }}
}
- }{}
+ }
}{}
{\tl_use:c { l__eb_toc_#1_rule_tl }}
}
@@ -1212,8 +1212,8 @@
{
\CTEXifname
{
- \ifbool{eb at titletoc@hang at fix}
- {\eb at numberline{\use:c { CTEXthe#1 }}}
+ \bool_if:NTF \eb at titletoc@hang at fix@bool
+ { \eb at numberline{\use:c { CTEXthe#1 }} }
{
\use:c { CTEXthe#1 }
\hspace{\use:c { eb at toc@#1 at numsep }}
@@ -1222,7 +1222,6 @@
}
\cs_new:Npn \eb at numberline { \protect\numberline }
\cs_set_eq:NN \EBNumberLine \CTEXnumberline
-\newbool{eb at titletoc@hang at fix}
\ctex_define:nn { tocset }
{
lolskip .skip_set:N = \eb at toc@lolskip,
@@ -1233,13 +1232,9 @@
line-align .bool_set:N = \l__eb_toc_line_align_bool,
line-align .default:n = true,
line-align .initial:n = true,
-
- hang .choice:,
- hang/true .code:n = \booltrue{eb at titletoc@hang at fix},
- hang/false .code:n = { },
+ hang .bool_set:N = \eb at titletoc@hang at fix@bool,
hang .default:n = true,
hang .initial:n = false,
-
unknown .code:n = \eb_msg_unknown_option:n { tocset }
}
\ctex_set:n
@@ -1302,20 +1297,20 @@
figure/tocline =
{
\figurename\space #1
- \notbool{eb at titletoc@hang at fix}
- {\hspace{\eb at toc@figure at numsep}}{}
+ \bool_if:NF \eb at titletoc@hang at fix@bool
+ { \hspace{\eb at toc@figure at numsep} }
},
table/tocline =
{
\tablename\space #1
- \notbool{eb at titletoc@hang at fix}
- {\hspace{\eb at toc@table at numsep}}{}
+ \bool_if:NF \eb at titletoc@hang at fix@bool
+ { \hspace{\eb at toc@table at numsep} }
},
lstlisting/tocline =
{
\lstlistingname\space\thelstlisting
- \notbool{eb at titletoc@hang at fix}
- {\hspace{\eb at toc@lstlisting at numsep}}{}
+ \bool_if:NF \eb at titletoc@hang at fix@bool
+ { \hspace{\eb at toc@lstlisting at numsep} }
},
numsep-all = 1em
}
@@ -1330,10 +1325,11 @@
{
\addcontentsline{#1}{#2}
{
- \ifbool{eb at titletoc@hang at fix}{\eb at numberline}{}
+ \bool_if:NT \eb at titletoc@hang at fix@bool { \eb at numberline }
{\prop_item:Nn \l__eb_list_label_name_prop {#2}{#3}}#4
}
}
+\cs_set_eq:NN \eb at if@boolT \bool_if:NT
\ctex_patch_cmd:Nnn \lst at MakeCaption
{
\addcontentsline{lol}{lstlisting}
@@ -1342,7 +1338,7 @@
{
\addcontentsline{lol}{lstlisting}
{
- \ifbool{eb at titletoc@hang at fix}{\eb at numberline}{}
+ \eb at if@boolT\eb at titletoc@hang at fix@bool{\eb at numberline}
{\eb at toc@label at lstlisting{}}\lst@@caption
}
}
@@ -1932,6 +1928,7 @@
Please~load~the~tcolorbox~macro~package.
}
\cs_set_eq:NN \EBNewTheorem \DeclareTheorem
+
\prop_new:N \l__eb_thmtools_entry_prop
\clist_const:Nn \c__eb_thmtools_entry_clist
{
@@ -1958,6 +1955,15 @@
notebraces .tl_set:N = \l__eb_thm_notebraces_tl,
unknown .code:n = \eb_msg_unknown_option:n { thmset }
}
+\eb_at_end_patch_cmd:nnn \thmt at setheadstyle
+ { \def\NAME{\the\thm at headfont ##1} }
+ {
+ \def\NAME
+ {
+ \the\thm at headfont ##1
+ \peek_meaning:NT \NUMBER { \tl_if_blank:nF {##2} { \space } }
+ }
+ }
\ctex_set:nn { thmset }
{
spaceabove = 0.75ex plus .1ex,
@@ -2385,7 +2391,7 @@
}
%</package>
%<*tcolorbox>
-\ProvidesExplFile{eb-tcolorbox.cfg}{2021/10/16}{1.3L}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2021/10/16}{1.3N}
{Customization of tcolorbox for easybook}
\tl_gset:Nn \eb at tc@line at skip { 0.5\baselineskip }
Modified: trunk/Master/texmf-dist/tex/latex/easybook/easybase.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/easybook/easybase.sty 2021-10-17 20:46:59 UTC (rev 60787)
+++ trunk/Master/texmf-dist/tex/latex/easybook/easybase.sty 2021-10-17 20:47:14 UTC (rev 60788)
@@ -20,7 +20,7 @@
%% This work has the LPPL maintenance status `maintained'.
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\RequirePackage{l3keys2e,etoolbox}
-\ProvidesExplPackage{easybase}{2021/10/16}{1.3L}
+\ProvidesExplPackage{easybase}{2021/10/16}{1.3N}
{Typeset Chinese theses or books}
\cs_generate_variant:Nn \dim_set:Nn { NV }
@@ -718,8 +718,8 @@
}
\cs_set_protected:Npn \footnote
{
- \@ifnextchar [
- {\@xfootnote}
+ \peek_meaning:NTF [
+ { \@xfootnote }
{
\exp_args:NV \stepcounter \@mpfn
\eb_current_label:n { @footnote }
@@ -731,8 +731,8 @@
}
\cs_set:Npn \footnotemark
{
- \@ifnextchar [
- {\@xfootnotemark}
+ \peek_meaning:NTF [
+ { \@xfootnotemark }
{
\stepcounter{footnote}
\protected at xdef\eb at thefnmark{\the at footnote}
@@ -854,7 +854,7 @@
[\dim_use:c { l__eb_toc_#1_indent_dim }]
{\tl_use:c { l__eb_toc_#1_format_tl }}
{
- \ifbool{eb at titletoc@hang at fix}
+ \bool_if:NT \eb at titletoc@hang at fix@bool
{
\contentspush
{
@@ -863,7 +863,7 @@
\thecontentslabel
\hspace{\use:c { eb at toc@#1 at numsep }}
}
- }{}
+ }
}{}
{\tl_use:c { l__eb_toc_#1_rule_tl }}
}
@@ -913,8 +913,8 @@
{
\CTEXifname
{
- \ifbool{eb at titletoc@hang at fix}
- {\eb at numberline{\use:c { CTEXthe#1 }}}
+ \bool_if:NTF \eb at titletoc@hang at fix@bool
+ { \eb at numberline{\use:c { CTEXthe#1 }} }
{
\use:c { CTEXthe#1 }
\hspace{\use:c { eb at toc@#1 at numsep }}
@@ -923,7 +923,6 @@
}
\cs_new:Npn \eb at numberline { \protect\numberline }
\cs_set_eq:NN \EBNumberLine \CTEXnumberline
-\newbool{eb at titletoc@hang at fix}
\ctex_define:nn { tocset }
{
lolskip .skip_set:N = \eb at toc@lolskip,
@@ -934,13 +933,9 @@
line-align .bool_set:N = \l__eb_toc_line_align_bool,
line-align .default:n = true,
line-align .initial:n = true,
-
- hang .choice:,
- hang/true .code:n = \booltrue{eb at titletoc@hang at fix},
- hang/false .code:n = { },
+ hang .bool_set:N = \eb at titletoc@hang at fix@bool,
hang .default:n = true,
hang .initial:n = false,
-
unknown .code:n = \eb_msg_unknown_option:n { tocset }
}
\ctex_set:n
@@ -1003,20 +998,20 @@
figure/tocline =
{
\figurename\space #1
- \notbool{eb at titletoc@hang at fix}
- {\hspace{\eb at toc@figure at numsep}}{}
+ \bool_if:NF \eb at titletoc@hang at fix@bool
+ { \hspace{\eb at toc@figure at numsep} }
},
table/tocline =
{
\tablename\space #1
- \notbool{eb at titletoc@hang at fix}
- {\hspace{\eb at toc@table at numsep}}{}
+ \bool_if:NF \eb at titletoc@hang at fix@bool
+ { \hspace{\eb at toc@table at numsep} }
},
lstlisting/tocline =
{
\lstlistingname\space\thelstlisting
- \notbool{eb at titletoc@hang at fix}
- {\hspace{\eb at toc@lstlisting at numsep}}{}
+ \bool_if:NF \eb at titletoc@hang at fix@bool
+ { \hspace{\eb at toc@lstlisting at numsep} }
},
numsep-all = 1em
}
@@ -1031,10 +1026,11 @@
{
\addcontentsline{#1}{#2}
{
- \ifbool{eb at titletoc@hang at fix}{\eb at numberline}{}
+ \bool_if:NT \eb at titletoc@hang at fix@bool { \eb at numberline }
{\prop_item:Nn \l__eb_list_label_name_prop {#2}{#3}}#4
}
}
+\cs_set_eq:NN \eb at if@boolT \bool_if:NT
\ctex_patch_cmd:Nnn \lst at MakeCaption
{
\addcontentsline{lol}{lstlisting}
@@ -1043,7 +1039,7 @@
{
\addcontentsline{lol}{lstlisting}
{
- \ifbool{eb at titletoc@hang at fix}{\eb at numberline}{}
+ \eb at if@boolT\eb at titletoc@hang at fix@bool{\eb at numberline}
{\eb at toc@label at lstlisting{}}\lst@@caption
}
}
@@ -1633,6 +1629,7 @@
Please~load~the~tcolorbox~macro~package.
}
\cs_set_eq:NN \EBNewTheorem \DeclareTheorem
+
\prop_new:N \l__eb_thmtools_entry_prop
\clist_const:Nn \c__eb_thmtools_entry_clist
{
@@ -1659,6 +1656,15 @@
notebraces .tl_set:N = \l__eb_thm_notebraces_tl,
unknown .code:n = \eb_msg_unknown_option:n { thmset }
}
+\eb_at_end_patch_cmd:nnn \thmt at setheadstyle
+ { \def\NAME{\the\thm at headfont ##1} }
+ {
+ \def\NAME
+ {
+ \the\thm at headfont ##1
+ \peek_meaning:NT \NUMBER { \tl_if_blank:nF {##2} { \space } }
+ }
+ }
\ctex_set:nn { thmset }
{
spaceabove = 0.75ex plus .1ex,
Modified: trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls 2021-10-17 20:46:59 UTC (rev 60787)
+++ trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls 2021-10-17 20:47:14 UTC (rev 60788)
@@ -20,7 +20,7 @@
%% This work has the LPPL maintenance status `maintained'.
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\RequirePackage{l3keys2e}
-\ProvidesExplClass{easybook}{2021/10/16}{1.3L}
+\ProvidesExplClass{easybook}{2021/10/16}{1.3N}
{Typeset Chinese theses or books}
\bool_set_false: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 2021-10-17 20:46:59 UTC (rev 60787)
+++ trunk/Master/texmf-dist/tex/latex/easybook/eb-tcolorbox.cfg 2021-10-17 20:47:14 UTC (rev 60788)
@@ -18,7 +18,7 @@
%% LaTeX version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
-\ProvidesExplFile{eb-tcolorbox.cfg}{2021/10/16}{1.3L}
+\ProvidesExplFile{eb-tcolorbox.cfg}{2021/10/16}{1.3N}
{Customization of tcolorbox for easybook}
\tl_gset:Nn \eb at tc@line at skip { 0.5\baselineskip }
More information about the tex-live-commits
mailing list.