diff options
author | Norbert Preining <norbert@preining.info> | 2024-02-17 03:01:13 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-02-17 03:01:13 +0000 |
commit | 8886ad587a305595ce543a74b0fc779f0732a6e9 (patch) | |
tree | 25f6e576a52343cad4a3b56b2f669e09432211b8 /macros/latex/contrib/easybook/easybook.dtx | |
parent | a6e02d45ad0d10cfc3256fc91abe80d6228325a4 (diff) |
CTAN sync 202402170301
Diffstat (limited to 'macros/latex/contrib/easybook/easybook.dtx')
-rw-r--r-- | macros/latex/contrib/easybook/easybook.dtx | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/macros/latex/contrib/easybook/easybook.dtx b/macros/latex/contrib/easybook/easybook.dtx index 16f5b792c0..a69d7de48b 100644 --- a/macros/latex/contrib/easybook/easybook.dtx +++ b/macros/latex/contrib/easybook/easybook.dtx @@ -15,7 +15,7 @@ %<*class> \NeedsTeXFormat{LaTeX2e}[2021/11/15] \RequirePackage{l3keys2e} -\ProvidesExplClass{easybook}{2024/02/12}{2024ac} +\ProvidesExplClass{easybook}{2024/02/16}{2024ad} {Easily typesetting Chinese theses or books} \bool_set_false:N \l__eb_compile_draft_bool @@ -297,7 +297,7 @@ %<*package> \NeedsTeXFormat{LaTeX2e}[2021/11/15] \RequirePackage{l3keys2e,etoolbox} -\ProvidesExplPackage{easybase}{2024/02/12}{2024ac} +\ProvidesExplPackage{easybase}{2024/02/16}{2024ad} {Easily typesetting Chinese theses or books} \cs_generate_variant:Nn \dim_set:Nn { NV } @@ -1831,12 +1831,23 @@ \everymath{\displaystyle} \DeclareGraphicsExtensions{.pdf,.png,.jpg,.eps,.tif} +\dim_new:N \hangwd \cs_set_protected:Npn \hangpara #1#2 { \dim_set:Nn \hangindent {#1} \int_set:Nn \hangafter {#2} \noindent\ignorespaces } +\NewDocumentCommand{\hangfrom}{sO{\hangwd}mO{1}} + { + \hbox_set:Nn \l_tmpa_box {#3} + \dim_set:Nn \hangwd { \box_wd:N \l_tmpa_box } + \hangpara{#2}{#4} + \IfBooleanTF{#1} + {\hbox_to_wd:nn {#2} { }} + {\box_use_drop:N \l_tmpa_box} + \ignorespaces + } \DeclareDocumentEnvironment{hangparas}{mm+b} { \dim_zero:N \parindent @@ -2341,7 +2352,7 @@ } %</package> %<*tcolorbox> -\ProvidesExplFile{eb-tcolorbox.cfg}{2024/02/12}{2024ac} +\ProvidesExplFile{eb-tcolorbox.cfg}{2024/02/16}{2024ad} {Customization of tcolorbox for easybook} \cs_set_protected:Npn \addtotcbstyle #1#2 |