summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/minimalist/minimalist.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/minimalist/minimalist.sty')
-rw-r--r--Master/texmf-dist/tex/latex/minimalist/minimalist.sty36
1 files changed, 27 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/minimalist/minimalist.sty b/Master/texmf-dist/tex/latex/minimalist/minimalist.sty
index 9ae2e948b5f..9f972f569d5 100644
--- a/Master/texmf-dist/tex/latex/minimalist/minimalist.sty
+++ b/Master/texmf-dist/tex/latex/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}{}{%