From d1d6cfcf29eb1210b0af247a208dc064ce7411de Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Wed, 11 Aug 2021 20:17:23 +0000
Subject: jxu (11aug21)

git-svn-id: svn://tug.org/texlive/trunk@60223 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/colorist/colorist.sty | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/colorist/colorist.sty')

diff --git a/Master/texmf-dist/tex/latex/colorist/colorist.sty b/Master/texmf-dist/tex/latex/colorist/colorist.sty
index 0374aec6142..348f23ee1a7 100644
--- a/Master/texmf-dist/tex/latex/colorist/colorist.sty
+++ b/Master/texmf-dist/tex/latex/colorist/colorist.sty
@@ -17,7 +17,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[2020-10-01]
 \ProvidesPackage{colorist}
-    [2021/08/09 A colorful style for articles and books]
+    [2021/08/11 A colorful style for articles and books]
 \RequirePackage{kvoptions}
 \RequirePackage{etoolbox}
 \SetupKeyvalOptions{%
@@ -28,6 +28,7 @@
 \DeclareBoolOption[false]{fast}
 \DeclareBoolOption[false]{puretext}
 \DeclareBoolOption[false]{nothms}
+\DeclareBoolOption[false]{delaythms}
 \DeclareBoolOption[false]{nothmnum}
 \DeclareStringOption{thmnum}[colorist@thmnum@default]
 \DeclareBoolOption[true]{regionalref}
@@ -170,13 +171,13 @@
 \gappto{\PJLlang@langconfig@common}{%
 \renewcommand{\partstring}{\MakeUppercase{{\partname~\protect\thepart}}}%
 }
-\gappto{\PJLlang@langconfig@schinese}{%
+\gappto{\PJLlang@langconfig@CN}{%
 \renewcommand{\partstring}{第~\thepart~部分}%
 }
-\gappto{\PJLlang@langconfig@tchinese}{%
+\gappto{\PJLlang@langconfig@TC}{%
 \renewcommand{\partstring}{第~\thepart~部分}%
 }
-\gappto{\PJLlang@langconfig@japanese}{%
+\gappto{\PJLlang@langconfig@JP}{%
 \renewcommand{\partstring}{第~\thepart~部}%
 }
 
@@ -400,7 +401,7 @@
 
 \setlist[itemize]{leftmargin=*}
 \gappto{\PJLlang@langconfig@common}{\setlist[itemize,1]{label=\textcolor{maintext!25}{$\bullet$}}}
-\gappto{\PJLlang@langconfig@french}{\setlist[itemize,1]{label=\textcolor{maintext!50}{---}}}
+\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{*}}}
 
@@ -747,7 +748,7 @@
 \expandafter\def\csname definition-propositionnameRU\endcsname{\normalfont\colorist@sffamily\color{orange}\conditionalbfseries{Определение}-\propositionnameRU}
 \expandafter\def\csname definition-theoremnameRU\endcsname{\normalfont\colorist@sffamily\color{orange}\conditionalbfseries{Определение}-\theoremnameRU}
 
-\AtEndPreamble{
+\def\colorist@definethms{
 \if@colorist@nothms\else
 \theoremstyle{basic}
 \if@colorist@nothmnum
@@ -829,6 +830,12 @@
 \fi
 }
 
+\if@colorist@delaythms
+    \AtEndPreamble{\colorist@definethms}
+\else
+    \colorist@definethms
+\fi
+
 \theoremstyle{simple}
 
 \creflabelformat{PJLtheorem}{#2{\normalfont\colorist@sffamily\color{orange}\conditionalbfseries#1}#3}
-- 
cgit v1.2.3

