summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-05-22 20:15:22 +0000
committerKarl Berry <karl@freefriends.org>2021-05-22 20:15:22 +0000
commitd29c0d96e5919e13a9c47ac8ef890618bf8d3173 (patch)
treeee063074ed5dcff277365d983cfc3dde76d346a5 /Master/texmf-dist/tex
parentcbd9819c37936f04d14c37a011b6da6aa667d1a8 (diff)
easybook (22may21)
git-svn-id: svn://tug.org/texlive/trunk@59306 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/easybook/easybook.cls41
1 files changed, 21 insertions, 20 deletions
diff --git a/Master/texmf-dist/tex/latex/easybook/easybook.cls b/Master/texmf-dist/tex/latex/easybook/easybook.cls
index cb17d7f65a5..dc923ed08d4 100644
--- a/Master/texmf-dist/tex/latex/easybook/easybook.cls
+++ b/Master/texmf-dist/tex/latex/easybook/easybook.cls
@@ -13,7 +13,7 @@
%% https://creativecommons.org/licenses/by/4.0/legalcode
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\RequirePackage{l3keys2e,etoolbox}
-\ProvidesExplClass{easybook}{2021/05/19}{1.25m}{beta}
+\ProvidesExplClass{easybook}{2021/05/21}{1.25n}{beta}
\cs_generate_variant:Nn \eb_ctex_define:nn { nx }
\cs_generate_variant:Nn \int_to_arabic:n { v }
@@ -986,10 +986,10 @@
\ifbool{@twocolumn}
{
\booltrue{@restonecol}
- \bool_if:NTF \l__eb_multoc_bool { \twocolumn } { \onecolumn }
+ \bool_if:NF \l__eb_multoc_bool { \onecolumn }
}{
\boolfalse{@restonecol}
- \bool_if:NTF \l__eb_multoc_bool { \twocolumn } { \onecolumn }
+ \bool_if:NT \l__eb_multoc_bool { \twocolumn }
}
}
{ \tl_set:Nn \l__eb_toc_type_tl { article } }
@@ -1327,8 +1327,8 @@
itemsep = .75ex plus .1ex,topsep = .75ex plus .1ex,
partopsep = 0ex,parsep = 0ex
}
-\newlist{outlinelist}{itemize}{1}
-\setlist[outlinelist]{label = outline,itemsep = .5ex plus .1ex}
+\newlist{eb@outline@list}{itemize}{1}
+\setlist[eb@outline@list]{label = outline,itemsep = .5ex plus .1ex}
\setlist[itemize,1]{label = bullet}
\setlist[itemize,2]{label = endash}
\setlist[itemize,3]{label = asterisk}
@@ -1550,12 +1550,13 @@
fonttitle = \sffamily,
boxrule = \l__eb_rule_width_dim
}
+ \newtcbox[auto~counter]{\eb@exercise@box}[1]{tc-exercise,#1}
\NewDocumentEnvironment{outline}{O{}D(){\abstractname}o+b}
{
\begin{tcolorbox}[tc-outline,title = #2,IfValueT = {#3}{#3}]
- \begin{outlinelist}[#1]
+ \begin{eb@outline@list}[#1]
#4
- \end{outlinelist}
+ \end{eb@outline@list}
\end{tcolorbox}
}{}
\NewDocumentEnvironment{exercise}
@@ -1563,19 +1564,19 @@
{
\IfBooleanTF{#2}
{
- \tcbox[
- tc-exercise,
- fuzzy~halo = 5pt~with~#3,
- IfValueT = {#6}{#6},
- phantom =
- \IfBooleanF{#1}
- {
- \CTEX@ifnametrue
- \refstepcounter{section}
- \markright{\CTEXthesection\hspace{0.5\ccwd}#5}
- \CTEX@addtocline{section}{#5}
- }
- ]{\IfBooleanF{#1}{\CTEXthesection\hspace{0.5\ccwd}}#5}
+ \eb@exercise@box
+ {
+ fuzzy~halo = 5pt~with~#3,
+ IfValueT = {#6}{#6},
+ phantom =
+ \IfBooleanF{#1}
+ {
+ \markright{\thetcbcounter\hspace{0.5\ccwd}#5}
+ \addcontentsline{toc}{section}
+ {\thetcbcounter\hspace{\eb@toc@section@numsep}#5}
+ }
+ }
+ {\IfBooleanF{#1}{\thetcbcounter\hspace{0.5\ccwd}}#5}
}{
\group_begin:
\ctex_set:nn { section } { format += \centering }