diff options
author | Norbert Preining <norbert@preining.info> | 2021-12-17 03:01:00 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-12-17 03:01:00 +0000 |
commit | 6827f87d3315fc677ae89a9260d455a312a90864 (patch) | |
tree | 88318243546c8d29294c2d21d5d7998ccd9d57a4 /macros/latex/contrib/minimalist/minimalist.sty | |
parent | 16b22a983bc0f05cbbb201a6e0f5cbbfc3c8fffb (diff) |
CTAN sync 202112170300
Diffstat (limited to 'macros/latex/contrib/minimalist/minimalist.sty')
-rw-r--r-- | macros/latex/contrib/minimalist/minimalist.sty | 45 |
1 files changed, 8 insertions, 37 deletions
diff --git a/macros/latex/contrib/minimalist/minimalist.sty b/macros/latex/contrib/minimalist/minimalist.sty index 418ffb55e4..85a64926d6 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/11/09 A simple and clear style for articles and books] + [2021/12/16 A simple and clear style for articles and books] \RequirePackage{kvoptions} \RequirePackage{etoolbox} \SetupKeyvalOptions{% @@ -198,40 +198,10 @@ %% Line numbers %%================================ \PassOptionsToPackage{pagewise,mathlines}{lineno} -\RequirePackage{lineno} +\RequirePackage{linenoamsmath} \renewcommand\linenumberfont{\ttfamily\color{maintext!7!paper}\footnotesize} \setlength\linenumbersep{1em} -\RequirePackage{mathtools} - -\ifdefined\linenomathpatch\else -\newcommand*\linenomathpatch[1]{% - \cspreto{#1}{\linenomath}% - \cspreto{#1*}{\linenomath}% - \csappto{end#1}{\endlinenomath}% - \csappto{end#1*}{\endlinenomath}% -} -\newcommand*\linenomathpatchAMS[1]{% - \cspreto{#1}{\linenomathAMS}% - \cspreto{#1*}{\linenomathAMS}% - \csappto{end#1}{\endlinenomath}% - \csappto{end#1*}{\endlinenomath}% -} -\expandafter\ifx\linenomath\linenomathWithnumbers - \let\linenomathAMS\linenomathWithnumbers - \patchcmd\linenomathAMS{\advance\postdisplaypenalty\linenopenalty}{}{}{} -\else - \let\linenomathAMS\linenomathNonumbers -\fi - -\linenomathpatch{equation} -\linenomathpatchAMS{gather} -\linenomathpatchAMS{multline} -\linenomathpatchAMS{align} -\linenomathpatchAMS{alignat} -\linenomathpatchAMS{flalign} -\fi - \newif\ifLNturnsON \def\LocallyStopLineNumbers{\LNturnsONfalse% \ifLineNumbers\LNturnsONtrue\fi\nolinenumbers} @@ -490,7 +460,7 @@ ref = \arabic{enumi}.\emph{\roman{enumii}}.\emph{\alph*}$)$} \setlist[description]{font=\normalfont\conditionalbfseries} \if@minimalist@classical -\newcommand\desculine{\bgroup\markoverwith{\color{maintext!27!paper}% +\newcommand\desculine{\colorlet{currentcolor}{.}\bgroup\markoverwith{\color{currentcolor!50!paper}% \rule[-.45ex]{2pt}{.75pt}}\ULon} \renewcommand{\descriptionlabel}[1]{% \hspace{\labelsep}\normalfont\desculine{#1}% @@ -498,10 +468,10 @@ \fi \setlist[itemize]{leftmargin=*} -\gappto{\PJLlang@langconfig@common}{\setlist[itemize,1]{label=\textcolor{maintext!25}{$\bullet$}}} -\gappto{\PJLlang@langconfig@FR}{\setlist[itemize,1]{label=\textcolor{maintext!50}{---}}} -\setlist[itemize,2]{label=\textcolor{maintext!27}{--}} -\setlist[itemize,3]{label=\textcolor{maintext!27}{\texttt{*}}} +\gappto{\PJLlang@langconfig@common}{\setlist[itemize,1]{label=\colorlet{currentcolor}{.}\textcolor{currentcolor!27!paper}{$\bullet$}}} +\gappto{\PJLlang@langconfig@FR}{\setlist[itemize,1]{label=\colorlet{currentcolor}{.}\textcolor{currentcolor!50!paper}{---}}} +\setlist[itemize,2]{label=\colorlet{currentcolor}{.}\textcolor{currentcolor!27!paper}{--}} +\setlist[itemize,3]{label=\colorlet{currentcolor}{.}\textcolor{currentcolor!27!paper}{\texttt{*}}} %%================================ %% Blank page @@ -525,6 +495,7 @@ %%================================ %% Theorems %%================================ +\RequirePackage{mathtools} \RequirePackage{amsthm} \if@minimalist@classical \def\simpleqedsymbol{% |