diff options
Diffstat (limited to 'macros/latex/contrib/minimalist/minimalist-plain.sty')
-rw-r--r-- | macros/latex/contrib/minimalist/minimalist-plain.sty | 56 |
1 files changed, 25 insertions, 31 deletions
diff --git a/macros/latex/contrib/minimalist/minimalist-plain.sty b/macros/latex/contrib/minimalist/minimalist-plain.sty index 705118b378..ed4d399512 100644 --- a/macros/latex/contrib/minimalist/minimalist-plain.sty +++ b/macros/latex/contrib/minimalist/minimalist-plain.sty @@ -2,7 +2,7 @@ %% This is file `minimalist/minimalist-plain.sty', %% generated with the docstrip utility. %% -%% Copyright (C) 2021-2022 by Jinwen XU +%% Copyright (C) 2021-2023 by Jinwen XU %% %% This is part of the minimalist class series. %% @@ -18,8 +18,8 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {minimalist-plain} - {2023/01/02} {} - {The plain style of minimalist} + {2023/01/05} {} + {The "plain" style of minimalist} \IfPackageLoadedTF { minimalist } {} { @@ -90,18 +90,6 @@ \RequirePackage { tikzpagenodes } % For `current page text area` } -\bool_if:NTF \l__minimalist_fast_bool - { - \tl_const:Nn \l_minimalist_sep_bar { $|$ } - } - { - \tl_const:Nn \l_minimalist_sep_bar - { - \skip_horizontal:n { .1em } - \tikz[baseline=.125em] \draw[line~width=.9pt] (0,0) -- (0,.9em); - \skip_horizontal:n { .1em } - } - } %%================================ %% Footer @@ -284,7 +272,7 @@ \tl_set:Nx \l_tmpa_tl { #1 } \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 - \textcolor { main-text!39!paper } { \normalfont \l_tmpa_tl } + \textcolor { .!39!paper } { \normalfont \l_tmpa_tl } } \cs_new_protected:Nn \minimalist_apply_title_numbering_style:n @@ -296,10 +284,10 @@ \exp_args:Nnx \regex_count:nnN { \. } {#1} \l_tmpa_int \int_case:nn { \l_tmpa_int } { - { 0 } { \textcolor { main-text!24!paper } } - { 1 } { \textcolor { main-text!39!paper } } - { 2 } { \textcolor { main-text!39!paper } } - { 3 } { \smaller[2] \textcolor { main-text!24!paper } } + { 0 } { \textcolor { .!24!paper } } + { 1 } { \textcolor { .!39!paper } } + { 2 } { \textcolor { .!39!paper } } + { 3 } { \smaller[2] \textcolor { .!24!paper } } } \l_tmpa_tl \group_end: @@ -324,6 +312,7 @@ \renewcommand{\partstring}{第 \nobreakspace\thepart\nobreakspace 部} } + \bool_if:NTF \l__minimalist_is_book_bool { \setcounter{secnumdepth}{3} @@ -469,6 +458,7 @@ \titlespacing{\subsubsection}{0pt}{.5\baselineskip plus .2\baselineskip minus .1\baselineskip}{.3\baselineskip plus .2\baselineskip minus .1\baselineskip} } + %%================================ %% ToC format %%================================ @@ -490,19 +480,19 @@ {\hspace*{-2em}} {\titlerule*[1em]{\textcolor{main-text!15!paper}{.}}\contentspage} \titlecontents{section} - [5em] % i.e., 2em (chapter) + 3em + [5.75em] % i.e., 2em (chapter) + 2.75em + 1em {\normalfont} {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{2.75em}} {\hspace*{-2.75em}} {\titlerule*[1em]{\textcolor{main-text!15!paper}{.}}\contentspage} \titlecontents{subsection} - [9em] % i.e., 5em (section) + 4em + [10.5em] % i.e., 5.75em (section) + 3.75em + 1em {\normalfont} {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{3.75em}} {\hspace*{-3.75em}} {\titlerule*[1em]{\textcolor{main-text!15!paper}{.}}\contentspage} \titlecontents{subsubsection} - [13.5em] % i.e., 9em (subsection) + 4.5em + [15.75em] % i.e., 10.5em (subsection) + 4.25em + 1em {\normalfont} {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{4.25em}} {\hspace*{-4.25em}} @@ -512,20 +502,20 @@ \titlecontents{section} [2em] % i.e., 0em (part) + 2em {\normalfont} - {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{1.75em}} - {\hspace*{-1.75em}} + {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{1.5em}} + {\hspace*{-1.5em}} {\titlerule*[1em]{\textcolor{main-text!15!paper}{.}}\contentspage} \titlecontents{subsection} - [5em] % i.e., 2em (section) + 3em + [5em] % i.e., 2em (section) + 2.5em + 0.5em {\normalfont} - {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{2.75em}} - {\hspace*{-2.75em}} + {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{2.5em}} + {\hspace*{-2.5em}} {\titlerule*[1em]{\textcolor{main-text!15!paper}{.}}\contentspage} \titlecontents{subsubsection} - [9em] % i.e., 5em (subsection) + 4em + [9.5em] % i.e., 5em (subsection) + 3.5em + 1em {\normalfont} - {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{3.75em}} - {\hspace*{-3.75em}} + {\contentslabel[ \minimalist_apply_title_numbering_style_static:n { \thecontentslabel } ]{3.5em}} + {\hspace*{-3.5em}} {\titlerule*[1em]{\textcolor{main-text!15!paper}{.}}\contentspage} } @@ -745,10 +735,14 @@ heading_suffix "}\n" } } + + \RequirePackage { projlib-theorem } \SetTheorem { proof, proof* } { qed-symbol = { \customqedsymbol } } + + \exp_args:No \SetTheorem { \c_projlib_theorem_supported_clist, theorem-with-name } { name style = { |