diff options
author | Karl Berry <karl@freefriends.org> | 2023-07-14 21:05:11 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-07-14 21:05:11 +0000 |
commit | 4f4a6fbdcff9c424b96574e43efe30c376e6ea33 (patch) | |
tree | 8d380d0e8b502eee1bc72982537eee8e7d52568e /Master/texmf-dist/tex/latex/minimalist/minimalist-stream.sty | |
parent | ac0972ebf6b5b92c6cc75542aa4add3bc6f8b15c (diff) |
jxu (14jul23)
git-svn-id: svn://tug.org/texlive/trunk@67629 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/minimalist/minimalist-stream.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/minimalist/minimalist-stream.sty | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/minimalist/minimalist-stream.sty b/Master/texmf-dist/tex/latex/minimalist/minimalist-stream.sty index d81bcbd0593..3f84aaedc50 100644 --- a/Master/texmf-dist/tex/latex/minimalist/minimalist-stream.sty +++ b/Master/texmf-dist/tex/latex/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] |