diff options
author | Norbert Preining <norbert@preining.info> | 2021-07-31 03:00:52 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-07-31 03:00:52 +0000 |
commit | 6476d9b56070f64c62d6a81514c0c9b25aad1eda (patch) | |
tree | bbcbbc5af76f023abb6d36c84ae8a2c2e46dc601 /macros/latex/contrib/minimalist/minimalist.sty | |
parent | 83b88676e8526454a292a894c5f30451eb75b828 (diff) |
CTAN sync 202107310300
Diffstat (limited to 'macros/latex/contrib/minimalist/minimalist.sty')
-rw-r--r-- | macros/latex/contrib/minimalist/minimalist.sty | 36 |
1 files changed, 27 insertions, 9 deletions
diff --git a/macros/latex/contrib/minimalist/minimalist.sty b/macros/latex/contrib/minimalist/minimalist.sty index 9ae2e948b5..9f972f569d 100644 --- a/macros/latex/contrib/minimalist/minimalist.sty +++ b/macros/latex/contrib/minimalist/minimalist.sty @@ -17,7 +17,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2020-10-01] \ProvidesPackage{minimalist} - [2021/07/27 A simple and clear style for articles and books] + [2021/07/30 A simple and clear style for articles and books] \RequirePackage{kvoptions} \RequirePackage{etoolbox} \SetupKeyvalOptions{% @@ -29,11 +29,17 @@ \DeclareBoolOption[false]{puretext} \DeclareBoolOption[false]{nothms} \DeclareBoolOption[false]{nothmnum} +\DeclareStringOption{thmnum}[minimalist@thmnum@default] +\DeclareBoolOption[true]{regionalref} +\DeclareBoolOption[false]{originalref} \DeclareBoolOption[false]{allowbf} \DeclareBoolOption[false]{classical} \DeclareBoolOption[false]{runin} \ProcessKeyvalOptions*\relax +\if@minimalist@originalref + \@minimalist@regionalreffalse +\fi \if@minimalist@draft \@minimalist@fasttrue \fi @@ -41,6 +47,21 @@ \@minimalist@nothmstrue \fi +\if@minimalist@fast + \PassOptionsToPackage{fast}{PJLdraft} + \PassOptionsToPackage{fast}{PJLthm} +\fi +\expandafter\ifstrempty\expandafter{\@minimalist@thmnum}{}{ + \expandafter\ifstrequal\expandafter{\@minimalist@thmnum}{minimalist@thmnum@default}{ + \PassOptionsToPackage{thmnum}{PJLthm} + }{ + \PassOptionsToPackage{thmnum=\@minimalist@thmnum}{PJLthm} + } +} +\if@minimalist@regionalref\else + \PassOptionsToPackage{originalref}{PJLthm} +\fi + \if@minimalist@allowbf \newcommand{\conditionalbfseries}{\bfseries\colorlet{PJLtempcolor}{.}\color{PJLtempcolor!83!paper}} \else @@ -681,12 +702,8 @@ \pretocmd{\remarknameES}{\itshape}{}{\FAIL} \pretocmd{\observationnameES}{\itshape}{}{\FAIL} +\AtEndPreamble{ \theoremstyle{simple} -\ifbool{IsBook}{ - \newaliascnt{highest}{chapter} -}{ - \newaliascnt{highest}{section} -} \if@minimalist@nothms\else \if@minimalist@nothmnum \CreateTheorem*{theorem} @@ -699,7 +716,7 @@ \CreateTheorem*{fact} \CreateTheorem*{conjecture} \else -\CreateTheorem{theorem}<highest> +\CreateTheorem@thmnum{theorem} \CreateTheorem{lemma}[theorem] \CreateTheorem{proposition}[theorem] \CreateTheorem{corollary}[theorem] @@ -755,12 +772,13 @@ \CreateTheorem*{remark} \CreateTheorem*{observation} \else -\CreateTheorem{remark}<highest> -\CreateTheorem{observation}<highest> +\CreateTheorem@thmnum{remark} +\CreateTheorem@thmnum{observation} \fi \CreateTheorem*{remark*} \CreateTheorem*{observation*} \fi +} \ifbool{IsBook}{}{% |