diff options
author | Norbert Preining <norbert@preining.info> | 2023-10-01 03:01:18 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-10-01 03:01:18 +0000 |
commit | 8a05034cb5d7ae61b2de6857258caa3e43b496aa (patch) | |
tree | b9c266e7f98a034ed060178b3c0c162598e68948 /macros/latex/contrib/minimalist/minimalist-stream.sty | |
parent | 61bc2520e547446bddedc290572684496c9347a0 (diff) |
CTAN sync 202310010301
Diffstat (limited to 'macros/latex/contrib/minimalist/minimalist-stream.sty')
-rw-r--r-- | macros/latex/contrib/minimalist/minimalist-stream.sty | 45 |
1 files changed, 33 insertions, 12 deletions
diff --git a/macros/latex/contrib/minimalist/minimalist-stream.sty b/macros/latex/contrib/minimalist/minimalist-stream.sty index afe534e03c..daea466465 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/09/28} {} + {2023/09/30} {} {The "stream" 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 @@ -801,6 +801,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 +} + \newtheoremstyle{simple-newline} {-.2\baselineskip plus 2pt minus .1\baselineskip}{.3\baselineskip plus 2pt minus .1\baselineskip} {\normalfont}{} @@ -818,6 +828,10 @@ heading_suffix "}\n" {\color{main-text!50!paper}\thmnote{\hspace{.4em} \minimalist_insert_l_mathparen: #3 \minimalist_insert_r_mathparen: }} \phantom{q} % To provide something below the baseline }}\hbox{\strut}\vspace{0pt}}} + \bool_if:NT \l__minimalist_theorem_with_qed_bool + { + \pushQED{\simpleqed} + } } \newtheoremstyle{simple-newline-var} {-.2\baselineskip plus 2pt minus .1\baselineskip}{.3\baselineskip plus 2pt minus .1\baselineskip} @@ -836,6 +850,10 @@ heading_suffix "}\n" {\color{main-text!50!paper}\thmnote{\hspace{.4em} \minimalist_insert_l_mathparen: #3 \minimalist_insert_r_mathparen: }} \phantom{q} % To provide something below the baseline }}\hbox{\strut}\vspace{0pt}}} + \bool_if:NT \l__minimalist_theorem_with_qed_bool + { + \pushQED{\simpleqed} + } } \dim_new:N \l_minimalist_space_before_inline_theorem_dim @@ -862,6 +880,10 @@ heading_suffix "}\n" {\thmname{#1}} {\color{main-text!50!paper}\thmnote{\hspace{.4em} \minimalist_insert_l_mathparen: #3 \minimalist_insert_r_mathparen: }} . \hspace{.5em} + \bool_if:NT \l__minimalist_theorem_with_qed_bool + { + \pushQED{\simpleqed} + } } \newtheoremstyle{simple-inline-var} % {.3\baselineskip plus 2pt minus .1\baselineskip}{.3\baselineskip plus 2pt minus .1\baselineskip} @@ -878,6 +900,10 @@ heading_suffix "}\n" {\thmname{#1}} {\color{main-text!50!paper}\thmnote{\hspace{.4em} \minimalist_insert_l_mathparen: #3 \minimalist_insert_r_mathparen: }} . \hspace{.5em} + \bool_if:NT \l__minimalist_theorem_with_qed_bool + { + \pushQED{\simpleqed} + } } \bool_if:NTF \l__minimalist_theorem_in_new_line_bool @@ -902,22 +928,17 @@ heading_suffix "}\n" . \hspace{.5em} } -\def\simpleqedsymbol{ - \makebox[1em]{\rlap{\textcolor{main-text!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 -} - \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 } |