diff options
Diffstat (limited to 'macros/latex/contrib/minimalist/minimalist-flow.sty')
-rw-r--r-- | macros/latex/contrib/minimalist/minimalist-flow.sty | 49 |
1 files changed, 43 insertions, 6 deletions
diff --git a/macros/latex/contrib/minimalist/minimalist-flow.sty b/macros/latex/contrib/minimalist/minimalist-flow.sty index 9f3e52f939..7887188690 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/09/28} {} + {2023/09/30} {} {The "flow" style of minimalist} \IfPackageLoadedTF { minimalist } {} @@ -57,7 +57,7 @@ \bool_if:NF \l_minimalist_is_under_bfseries_bool { \colorlet{minimalist-temp-color}{.} - \color{minimalist-temp-color!70!paper} + \color{minimalist-temp-color!90!paper} } \minimalist_original_bfseries: \bool_set_true:N \l_minimalist_is_under_bfseries_bool @@ -732,6 +732,16 @@ heading_suffix "}\n" \PassOptionsToPackage { nopatch = eqnum } { microtype } +\def\simpleqedsymbol{ + \makebox[1em]{\rlap{\textcolor{.!12!paper}{\rule[-0.1em]{.95em}{.95em}}}{\kern.07em\raisebox{.07em}{\textcolor{paper}{\rule[-0.1em]{.81em}{.81em}}}\kern.07em}}} +\DeclareRobustCommand{\simpleqed}{% + \ifmmode \quad\hbox{\simpleqedsymbol} + \else + \leavevmode\unskip\penalty9999 \hbox{}\nobreak\hfill + \quad\hbox{\simpleqedsymbol}% + \fi +} + \bool_if:NTF \l__minimalist_theorem_in_new_line_bool { \newtheoremstyle{simple} @@ -748,6 +758,10 @@ heading_suffix "}\n" {\thmnumber{ \minimalist_apply_title_numbering_style:n { #2 } \hspace{.75em} }\thmname{#1}} {\color{main-text!50!paper}\thmnote{\hspace{.4em} \minimalist_insert_l_mathparen: #3 \minimalist_insert_r_mathparen: }} }}\hbox{\strut}\vspace{0pt}}} + \bool_if:NT \l__minimalist_theorem_with_qed_bool + { + \pushQED{\simpleqed} + } } \newtheoremstyle{simple-var} {.75\baselineskip}{} @@ -763,6 +777,10 @@ heading_suffix "}\n" {\thmnumber{ \minimalist_apply_title_numbering_style:n { #2 } \hspace{.75em} }\thmname{#1}} {\color{main-text!50!paper}\thmnote{\hspace{.4em} \minimalist_insert_l_mathparen: #3 \minimalist_insert_r_mathparen: }} }}\hbox{\strut}\vspace{0pt}}} + \bool_if:NT \l__minimalist_theorem_with_qed_bool + { + \pushQED{\simpleqed} + } } } { @@ -775,8 +793,14 @@ heading_suffix "}\n" }{} {\normalfont}{} {0pt} - {{\thmnumber{ \minimalist_apply_title_numbering_style:n { #2 } \hspace{.75em} }\thmname{#1}} - {\color{main-text!50!paper}\thmnote{\hspace{.4em} \minimalist_insert_l_mathparen: #3 \minimalist_insert_r_mathparen: }}\nobreakspace\nobreakspace{\normalfont\textcolor{main-text!27!paper}{---}}\nobreakspace\nobreakspace} + { + {\thmnumber{ \minimalist_apply_title_numbering_style:n { #2 } \hspace{.75em} }\thmname{#1}} + {\color{main-text!50!paper}\thmnote{\hspace{.4em} \minimalist_insert_l_mathparen: #3 \minimalist_insert_r_mathparen: }}\nobreakspace\nobreakspace{\normalfont\textcolor{main-text!27!paper}{---}}\nobreakspace\nobreakspace + \bool_if:NT \l__minimalist_theorem_with_qed_bool + { + \pushQED{\simpleqed} + } + } \newtheoremstyle{simple-var} {}{} { @@ -786,16 +810,29 @@ heading_suffix "}\n" }{} {\normalfont}{} {0pt} - {{\thmnumber{ \minimalist_apply_title_numbering_style:n { #2 } \hspace{.75em} }\thmname{#1}} - {\color{main-text!50!paper}\thmnote{\hspace{.4em} \minimalist_insert_l_mathparen: #3 \minimalist_insert_r_mathparen: }}\nobreakspace\nobreakspace{\normalfont\textcolor{main-text!27!paper}{---}}\nobreakspace\nobreakspace} + { + {\thmnumber{ \minimalist_apply_title_numbering_style:n { #2 } \hspace{.75em} }\thmname{#1}} + {\color{main-text!50!paper}\thmnote{\hspace{.4em} \minimalist_insert_l_mathparen: #3 \minimalist_insert_r_mathparen: }}\nobreakspace\nobreakspace{\normalfont\textcolor{main-text!27!paper}{---}}\nobreakspace\nobreakspace + \bool_if:NT \l__minimalist_theorem_with_qed_bool + { + \pushQED{\simpleqed} + } + } } \theoremstyle{simple} +\def\@endtheorem{\popQED\endtrivlist\@endpefalse} + \newcommand{\customqedsymbol}{ \makebox[1em]{\color{.!27!paper}\rule[-0.1em]{.95em}{.95em}}} \let\qedsymbol\customqedsymbol +%% Special treatments for the Q.E.D. symbol +\def\noQED{\let\popQED\relax} +\let\noqed\noQED +\def\proofless{\let\qedsymbol\customqedsymbol\let\simpleqedsymbol\customqedsymbol} + \bool_if:NTF \l__minimalist_fast_bool { \RequirePackage { hyperref } |