summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/minimalist/minimalist-stream.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/minimalist/minimalist-stream.sty')
-rw-r--r--Master/texmf-dist/tex/latex/minimalist/minimalist-stream.sty27
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]