diff options
Diffstat (limited to 'macros/latex/contrib/minimalist')
8 files changed, 41 insertions, 22 deletions
diff --git a/macros/latex/contrib/minimalist/README.md b/macros/latex/contrib/minimalist/README.md index a86486ba21..03402471ee 100644 --- a/macros/latex/contrib/minimalist/README.md +++ b/macros/latex/contrib/minimalist/README.md @@ -2,7 +2,7 @@ # `minimalist` bundle: write you documents in a simple and clear way -> **New documentations are being written and are expected to be completed by the end of 2023. In the meantime, only the core code would be included in TeX Live 2023 coming this April (old documentations have been removed from the distribution).** +> **New documentations are still being written. For now, only the core code is included in TeX Live 2023 (old documentations have been removed from the distribution).** ## Introduction @@ -36,16 +36,18 @@ It mainly consists of two parts. typesetting, and also use more beautiful fonts. ### How to get these files -You can get the `.sty` and `.cls` files mentioned above simply by compiling +You can get the `.sty` and `.cls` files mentioned above by compiling `minimalist.ins`: ``` latex minimalist.ins ``` +<!-- To get the `.tex` source files of the documentation, compile `minimalist-doc.ins`: ``` latex minimalist-doc.ins ``` +--> ## Features diff --git a/macros/latex/contrib/minimalist/minimalist-classical.sty b/macros/latex/contrib/minimalist/minimalist-classical.sty index 31bbbdf00b..43e69a81ff 100644 --- a/macros/latex/contrib/minimalist/minimalist-classical.sty +++ b/macros/latex/contrib/minimalist/minimalist-classical.sty @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {minimalist-classical} - {2023/03/07} {} + {2023/07/14} {} {The "classical" style of minimalist} \IfPackageLoadedTF { minimalist } {} @@ -340,10 +340,10 @@ } -\bool_if:NTF \l__minimalist_is_book_bool - { \setcounter{secnumdepth}{3} +\bool_if:NTF \l__minimalist_is_book_bool + { %% Part \titleclass{\part}{top} % make part like a chapter \titleformat{\part}[display] diff --git a/macros/latex/contrib/minimalist/minimalist-flow.sty b/macros/latex/contrib/minimalist/minimalist-flow.sty index 106d18dc0b..5eabb82c3b 100644 --- a/macros/latex/contrib/minimalist/minimalist-flow.sty +++ b/macros/latex/contrib/minimalist/minimalist-flow.sty @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {minimalist-flow} - {2023/03/07} {} + {2023/07/14} {} {The "flow" style of minimalist} \IfPackageLoadedTF { minimalist } {} @@ -338,10 +338,10 @@ } -\bool_if:NTF \l__minimalist_is_book_bool - { \setcounter{secnumdepth}{3} +\bool_if:NTF \l__minimalist_is_book_bool + { %% Part \titleclass{\part}{top} % make part like a chapter \titleformat{\part}[display] diff --git a/macros/latex/contrib/minimalist/minimalist-plain.sty b/macros/latex/contrib/minimalist/minimalist-plain.sty index 134fb89080..5ce38ad163 100644 --- a/macros/latex/contrib/minimalist/minimalist-plain.sty +++ b/macros/latex/contrib/minimalist/minimalist-plain.sty @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {minimalist-plain} - {2023/03/07} {} + {2023/07/14} {} {The "plain" style of minimalist} \IfPackageLoadedTF { minimalist } {} @@ -338,10 +338,10 @@ } -\bool_if:NTF \l__minimalist_is_book_bool - { \setcounter{secnumdepth}{3} +\bool_if:NTF \l__minimalist_is_book_bool + { %% Part \titleclass{\part}{top} % make part like a chapter \titleformat{\part}[display] diff --git a/macros/latex/contrib/minimalist/minimalist-stream.sty b/macros/latex/contrib/minimalist/minimalist-stream.sty index d81bcbd059..3f84aaedc5 100644 --- a/macros/latex/contrib/minimalist/minimalist-stream.sty +++ b/macros/latex/contrib/minimalist/minimalist-stream.sty @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {minimalist-stream} - {2023/03/07} {} + {2023/07/14} {} {The "stream" style of minimalist} \IfPackageLoadedTF { minimalist } {} @@ -308,12 +308,23 @@ \regex_replace_all:nnN { (\w) } { \c{minimalist_original_bfseries:}{\1} } \l_tmpa_tl \regex_replace_all:nnN { (\d) } { {\c{minimalist_title_numbering_apply_font:n}{\1}} } \l_tmpa_tl \exp_args:Nnx \regex_count:nnN { \. } {#1} \l_tmpa_int - \int_case:nn { \l_tmpa_int } + \bool_if:NTF \l__minimalist_is_book_bool { - { 0 } { \textcolor { main-text!39!paper } } - { 1 } { \textcolor { main-text!39!paper } } - { 2 } { \textcolor { main-text!39!paper } } - { 3 } { \smaller[2] \textcolor { main-text!24!paper } } + \int_case:nn { \l_tmpa_int } + { + { 0 } { \textcolor { main-text!39!paper } } + { 1 } { \textcolor { main-text!39!paper } } + { 2 } { \textcolor { main-text!39!paper } } + { 3 } { \smaller \textcolor { main-text!24!paper } } + } + } + { + \int_case:nn { \l_tmpa_int } + { + { 0 } { \textcolor { main-text!39!paper } } + { 1 } { \textcolor { main-text!39!paper } } + { 2 } { \smaller[2] \textcolor { main-text!24!paper } } + } } \l_tmpa_tl \group_end: @@ -341,10 +352,10 @@ \dim_new:N \l_minimalist_title_sep_dim \dim_set:Nn \l_minimalist_title_sep_dim { 1em } -\bool_if:NTF \l__minimalist_is_book_bool - { \setcounter{secnumdepth}{4} +\bool_if:NTF \l__minimalist_is_book_bool + { %% Part \titleclass{\part}{top} % make part like a chapter \titleformat{\part}[display] diff --git a/macros/latex/contrib/minimalist/minimalist.sty b/macros/latex/contrib/minimalist/minimalist.sty index 8eeb64e747..2cf94896b8 100644 --- a/macros/latex/contrib/minimalist/minimalist.sty +++ b/macros/latex/contrib/minimalist/minimalist.sty @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {minimalist} - {2023/03/07} {} + {2023/07/14} {} {A simple and clear style for articles and books} \keys_define:nn { minimalist } diff --git a/macros/latex/contrib/minimalist/minimart.cls b/macros/latex/contrib/minimalist/minimart.cls index 04e877e103..db63066809 100644 --- a/macros/latex/contrib/minimalist/minimart.cls +++ b/macros/latex/contrib/minimalist/minimart.cls @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplClass {minimart} - {2023/03/07} {} + {2023/07/14} {} {A simple and clear article style} \tl_const:Nn \l__minimclass_base_class_tl { article } @@ -67,6 +67,9 @@ , b5paper .bool_set:N = \l__minimclass_b_five_paper_bool , b5paper .initial:n = { false } + , oneside .code:n = { \PassOptionsToClass { \CurrentOption } { \l__minimclass_base_class_tl } } + , twoside .code:n = { \PassOptionsToClass { \CurrentOption } { \l__minimclass_base_class_tl } } + , 11pt .code:n = { \PassOptionsToClass { \CurrentOption } { \l__minimclass_base_class_tl } } , 12pt .code:n = { \PassOptionsToClass { \CurrentOption } { \l__minimclass_base_class_tl } } diff --git a/macros/latex/contrib/minimalist/minimbook.cls b/macros/latex/contrib/minimalist/minimbook.cls index 536a23fe55..6e52b41bff 100644 --- a/macros/latex/contrib/minimalist/minimbook.cls +++ b/macros/latex/contrib/minimalist/minimbook.cls @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplClass {minimbook} - {2023/03/07} {} + {2023/07/14} {} {A simple and clear book style} \tl_const:Nn \l__minimclass_base_class_tl { book } @@ -67,6 +67,9 @@ , b5paper .bool_set:N = \l__minimclass_b_five_paper_bool , b5paper .initial:n = { false } + , oneside .code:n = { \PassOptionsToClass { \CurrentOption } { \l__minimclass_base_class_tl } } + , twoside .code:n = { \PassOptionsToClass { \CurrentOption } { \l__minimclass_base_class_tl } } + , 11pt .code:n = { \PassOptionsToClass { \CurrentOption } { \l__minimclass_base_class_tl } } , 12pt .code:n = { \PassOptionsToClass { \CurrentOption } { \l__minimclass_base_class_tl } } |