diff options
author | Karl Berry <karl@freefriends.org> | 2021-06-30 21:17:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-06-30 21:17:07 +0000 |
commit | fd0d685120ff1914dc1c329bbcacc2ca2852187e (patch) | |
tree | 6da0864e9214d5cf36e849208b208dec9da76f87 /Master/texmf-dist/tex/latex | |
parent | b848d4eda47ef20c92031ca30a494a63bf503e60 (diff) |
easybook (30jun21)
git-svn-id: svn://tug.org/texlive/trunk@59773 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/easybase.sty | 32 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/easybook.cls | 3 |
2 files changed, 26 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/easybook/easybase.sty b/Master/texmf-dist/tex/latex/easybook/easybase.sty index f9cc91ea5c3..2e3a361bfea 100644 --- a/Master/texmf-dist/tex/latex/easybook/easybase.sty +++ b/Master/texmf-dist/tex/latex/easybook/easybase.sty @@ -13,7 +13,8 @@ %% https://creativecommons.org/licenses/by/4.0/legalcode \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{etoolbox} -\ProvidesExplPackage{easybase}{2021/06/28}{1.26m}{beta} +\ProvidesExplPackage{easybase}{2021/06/30}{1.26n} + {Typeset Chinese books or notes} \cs_generate_variant:Nn \eb_ctex_define:nn { nx } \cs_generate_variant:Nn \int_to_arabic:n { v } @@ -112,7 +113,8 @@ { list = off } { bicaption }, { many } { tcolorbox }, { xindy } { imakeidx }, - { upint } { newtxmath } + { upint } { newtxmath }, + { svgnames } { xcolor } } { \PassOptionsToPackage #1 } \ProcessKeysOptions{easybase} @@ -200,13 +202,12 @@ \eb@package@load { - xcolor[svgnames]+ footmisc[stable,bottom]+ spbmark[ctex]+ ulem[normalem]+ enumitem[shortlabels,inline]+ - amsmath+amsthm+thmtools+ chemformula+siunitx+pifont+ + amsthm+thmtools+ geometry+marginnote+nccfoots+ pdfpages+multicol+ fancyhdr+titletoc+caption+ @@ -742,6 +743,22 @@ \newcounter{bichapter} \newcounter{bisection}[bichapter] \newcounter{bisubsection}[bisection] +\NewDocumentCommand{\EBUseCounter}{soD(){arabic}mmO{.}} + { + \IfBooleanF{#1}{\stepcounter{#4}} + \tl_set:cn { eb@the#4 } + { + \IfValueT{#2}{\use:c { the#2 }#6} + \use:c {#3}{#4}\space #5 + } + \tl_use:c { eb@the#4 } + \tl_remove_once:cn { eb@the#4 } {#5} + \tl_set:Nx \@currentlabel + { + \use:c { p@eb@#4 } + \use:c { eb@the#4 } + } + } \cs_new:Npn \eb_arabic:n #1 { \int_to_arabic:v { c@#1 } } \cs_new:Npn \eb_section_counter_prefix:n #1 { @@ -1506,7 +1523,7 @@ { standard~jigsaw, nobeforeafter,tcbox~raise~base, - top = 1.25t,bottom = 1.25t,left = 1.25t,right = 1.25t, + top = 1.25pt,bottom = 1.25pt,left = 1.25pt,right = 1.25pt, boxrule = 0.75pt,arc = 1pt, colback = #1,opacityback = 0.12,colframe = #1,#3 }{#2} @@ -1521,6 +1538,7 @@ \eb_ctex_define:nn { bibset } { backend .choice:, + backend .value_required:n = true, backend/bibtex .code:n = { }, backend/biblatex .code:n = { \bool_set_false:N \l__eb_backend_bibtex_bool }, @@ -1544,7 +1562,6 @@ cite-style .code:n = { \tl_set:Nn \l__eb_bib_citestyle_tl {#1} }, datafile .clist_set:N = \l__eb_bib_datafile_clist, - bitoc-title .tl_set:N = \l__eb_bib_bitoc_title, bitoc-title .initial:n = Reference } @@ -1726,6 +1743,7 @@ \eb_ctex_define:nn { refset } { linktype .choice:, + linktype .value_required:n = true, linktype/edge .code:n = { }, linktype/none .code:n = \eb_put_hyperref:n { hidelinks }, linktype/various .code:n = @@ -1733,8 +1751,6 @@ \bool_set_true:N \l__eb_toc_number_color_bool \eb_put_hyperref:n { colorlinks } }, - linktype .value_required:n = true, - linktype .initial:n = edge, linktoc .choice:, linktoc/unknown .code:n = diff --git a/Master/texmf-dist/tex/latex/easybook/easybook.cls b/Master/texmf-dist/tex/latex/easybook/easybook.cls index a3134c51fae..a5aefe2fcb0 100644 --- a/Master/texmf-dist/tex/latex/easybook/easybook.cls +++ b/Master/texmf-dist/tex/latex/easybook/easybook.cls @@ -13,7 +13,8 @@ %% https://creativecommons.org/licenses/by/4.0/legalcode \NeedsTeXFormat{LaTeX2e}[2020/10/01] \RequirePackage{l3keys2e} -\ProvidesExplClass{easybook}{2021/06/28}{1.26m}{beta} +\ProvidesExplClass{easybook}{2021/06/30}{1.26n} + {Typeset Chinese books or notes} \bool_set_false:N \l__eb_compile_draft_bool \bool_set_false:N \l__eb_title_newline_bool |