diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/easybook/easybook.cls | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/easybook/easybook.cls b/Master/texmf-dist/tex/latex/easybook/easybook.cls index 5806182a9e7..6e9111e6a99 100644 --- a/Master/texmf-dist/tex/latex/easybook/easybook.cls +++ b/Master/texmf-dist/tex/latex/easybook/easybook.cls @@ -9,10 +9,11 @@ %% https://creativecommons.org/licenses/by/4.0/legalcode \NeedsTeXFormat{LaTeX2e} \RequirePackage{l3keys2e} -\ProvidesExplClass{easybook}{2021/01/13}{v1.21c}{} +\ProvidesExplClass{easybook}{2021/01/14}{1.21d}{} \cs_generate_variant:Nn \keys_define:nn {nx} \cs_generate_variant:Nn \int_to_arabic:n {v} +\cs_generate_variant:Nn \dim_add:Nn {NV} \cs_new_protected:Npn \__ctex_define:n #1 {\keys_define:nn {ctex/#1}} \cs_new_protected:Npn \__put_ctexbook:n #1 @@ -166,6 +167,9 @@ modifier = {by}, version = {4.0} ]{doclicense} +\cs_new_eq:NN \github\faGithub +\cs_new:Npn \git{\textcolor[HTML]{c71d23}{\faGit}} +\cs_new:Npn \edge{\textcolor[HTML]{00c2ff}{\faEdge}} \ctex_at_end_preamble:n { \tl_if_empty:NF \g__config_tl @@ -437,7 +441,7 @@ \__ctex_define:n {tocset} { part/format .tl_set:N = \l__toc_part_format_tl, - part/format .initial:n = + part/format .initial:n = {\addvspace{1pc}\sffamily\large}, part/indent .tl_set:N = \l__toc_part_indent_tl, part/indent .initial:n = 0\ccwd, @@ -471,7 +475,12 @@ lists/indent .tl_set:N = \l__toc_lists_indent_tl, lists/indent .initial:n = 0\ccwd, lists/rule .tl_set:N = \l__toc_lists_rule_tl, - lists/rule .initial:n = \tocrule{$\cdot$} + lists/rule .initial:n = \tocrule{$\cdot$}, + lists/lolskip .dim_set:N = \l__toc_lolskip_dim, + lists/lolskip .initial:n = 0.8pc, + + belowoffset .dim_set:N = \l__toc_offset_dim, + belowoffset .initial:n = -1pc } \NewDocumentCommand{\tocrule}{O{0.7pc}O{1.2}mO{}} @@ -547,7 +556,7 @@ \bool_if:NT \l__multoc_bool{\twocolumn} \fi \__title_mark:n {\contentsname} - \vspace*{-1pc} + \vspace*{\l__toc_offset_dim} \@starttoc{toc} \if@restonecol \twocolumn @@ -565,7 +574,7 @@ \bool_if:NT \l__multoc_bool{\twocolumn} \fi \__title_mark_intoc:n {\listfigurename} - \vspace*{-1pc} + \vspace*{\l__toc_offset_dim} \@starttoc{lof} \if@restonecol \twocolumn @@ -583,7 +592,7 @@ \bool_if:NT \l__multoc_bool{\twocolumn} \fi \__title_mark_intoc:n {\listtablename} - \vspace*{-1pc} + \vspace*{\l__toc_offset_dim} \@starttoc{lot} \if@restonecol \twocolumn @@ -605,7 +614,8 @@ \fi } \__title_mark_intoc:n {\lstlistlistingname} - \vspace*{-0.2pc} + \dim_add:NV \l__toc_offset_dim\l__toc_lolskip_dim + \vspace*{\l__toc_offset_dim} \@starttoc{lol} \@ifundefined{@restonecoltrue}{} { |